]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(iscsi): do not include /etc/iscsi/iscsid.conf in generic mode
authorJo Zzsi <jozzsicsataban@gmail.com>
Sat, 27 Sep 2025 01:26:36 +0000 (21:26 -0400)
committerNeal Gompa (ニール・ゴンパ) <ngompa13@gmail.com>
Sun, 28 Sep 2025 00:53:36 +0000 (20:53 -0400)
Files under /etc on the host are considered host specific.
Do not include them in the generic initramfs.

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

index 79f18ebfe3f2b5e67b763d9af732229116e1478f..af361c1453c0ea70b2a214c98b276729331cb37b 100755 (executable)
@@ -192,8 +192,8 @@ install() {
     inst_multiple umount iscsi-iname iscsiadm iscsid
     inst_binary sort
 
-    inst_simple /etc/iscsi/iscsid.conf
     if [[ $hostonly ]]; then
+        inst_simple /etc/iscsi/iscsid.conf
         inst_simple /etc/iscsi/initiatorname.iscsi
     fi