From: Lubomir Rintel Date: Thu, 30 Aug 2018 14:21:17 +0000 (+0200) Subject: iscsi: do not replace the configuration in the host system X-Git-Tag: 049~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e82732dd412a49cbdf9c4b998f04ac0a39e393f;p=thirdparty%2Fdracut.git iscsi: do not replace the configuration in the host system 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. --- diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh index d8405fcec..04beae4c9 100755 --- a/modules.d/95iscsi/module-setup.sh +++ b/modules.d/95iscsi/module-setup.sh @@ -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}"