Harald Hoyer 9d5d75
From 9e82732dd412a49cbdf9c4b998f04ac0a39e393f Mon Sep 17 00:00:00 2001
Harald Hoyer 9d5d75
From: Lubomir Rintel <lkundrak@v3.sk>
Harald Hoyer 9d5d75
Date: Thu, 30 Aug 2018 16:21:17 +0200
Harald Hoyer 9d5d75
Subject: [PATCH] iscsi: do not replace the configuration in the host system
Harald Hoyer 9d5d75
Harald Hoyer 9d5d75
  ln: failed to create symbolic link '/usr/lib/systemd/system/sockets.target.wants/iscsid.socket': Permission denied
Harald Hoyer 9d5d75
  ln: failed to create symbolic link '/usr/lib/systemd/system/sockets.target.wants/iscsiuio.socket': Permission denied
Harald Hoyer 9d5d75
Harald Hoyer 9d5d75
No way. Just ensure the links are there in the initramfs image. In fact,
Harald Hoyer 9d5d75
that is already the case for iscsiuio.socket. Add iscsid.socket too.
Harald Hoyer 9d5d75
---
Harald Hoyer 9d5d75
 modules.d/95iscsi/module-setup.sh | 4 +---
Harald Hoyer 9d5d75
 1 file changed, 1 insertion(+), 3 deletions(-)
Harald Hoyer 9d5d75
Harald Hoyer 9d5d75
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
Harald Hoyer 9d5d75
index d8405fce..04beae4c 100755
Harald Hoyer 9d5d75
--- a/modules.d/95iscsi/module-setup.sh
Harald Hoyer 9d5d75
+++ b/modules.d/95iscsi/module-setup.sh
Harald Hoyer 9d5d75
@@ -208,9 +208,6 @@ install() {
Harald Hoyer 9d5d75
     inst_libdir_file 'libgcc_s.so*'
Harald Hoyer 9d5d75
     inst_multiple umount hostname iscsi-iname iscsiadm iscsid
Harald Hoyer 9d5d75
 
Harald Hoyer 9d5d75
-    ln -sf $systemdsystemunitdir/iscsid.socket $systemdsystemunitdir/sockets.target.wants/iscsid.socket
Harald Hoyer 9d5d75
-    ln -sf $systemdsystemunitdir/iscsiuio.socket $systemdsystemunitdir/sockets.target.wants/iscsiuio.socket
Harald Hoyer 9d5d75
-
Harald Hoyer 9d5d75
     inst_multiple -o \
Harald Hoyer 9d5d75
         $systemdsystemunitdir/iscsid.socket \
Harald Hoyer 9d5d75
         $systemdsystemunitdir/iscsid.service \
Harald Hoyer 9d5d75
@@ -243,6 +240,7 @@ install() {
Harald Hoyer 9d5d75
 
Harald Hoyer 9d5d75
         mkdir -p "${initdir}/$systemdsystemunitdir/sockets.target.wants"
Harald Hoyer 9d5d75
         for i in \
Harald Hoyer 9d5d75
+                iscsid.socket \
Harald Hoyer 9d5d75
                 iscsiuio.socket \
Harald Hoyer 9d5d75
             ; do
Harald Hoyer 9d5d75
             ln_r "$systemdsystemunitdir/${i}" "$systemdsystemunitdir/sockets.target.wants/${i}"
Harald Hoyer 9d5d75