]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
iscsi: do not replace the configuration in the host system
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 30 Aug 2018 14:21:17 +0000 (16:21 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 21 Sep 2018 09:32:01 +0000 (11:32 +0200)
  ln: failed to create symbolic link '/usr/lib/systemd/system/sockets.target.wants/iscsid.socket': Permission denied
  ln: failed to create symbolic link '/usr/lib/systemd/system/sockets.target.wants/iscsiuio.socket': Permission denied

No way. Just ensure the links are there in the initramfs image. In fact,
that is already the case for iscsiuio.socket. Add iscsid.socket too.

modules.d/95iscsi/module-setup.sh

index d8405fcec3e8788652200311a9dd00ce5d0bebcc..04beae4c93c99fc2e945517ef16073fccbfef1c2 100755 (executable)
@@ -208,9 +208,6 @@ install() {
     inst_libdir_file 'libgcc_s.so*'
     inst_multiple umount hostname iscsi-iname iscsiadm iscsid
 
-    ln -sf $systemdsystemunitdir/iscsid.socket $systemdsystemunitdir/sockets.target.wants/iscsid.socket
-    ln -sf $systemdsystemunitdir/iscsiuio.socket $systemdsystemunitdir/sockets.target.wants/iscsiuio.socket
-
     inst_multiple -o \
         $systemdsystemunitdir/iscsid.socket \
         $systemdsystemunitdir/iscsid.service \
@@ -243,6 +240,7 @@ install() {
 
         mkdir -p "${initdir}/$systemdsystemunitdir/sockets.target.wants"
         for i in \
+                iscsid.socket \
                 iscsiuio.socket \
             ; do
             ln_r "$systemdsystemunitdir/${i}" "$systemdsystemunitdir/sockets.target.wants/${i}"