]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95iscsi: Fix /etc/iscsi installation
authorKairui Song <kasong@redhat.com>
Fri, 29 Nov 2019 13:29:58 +0000 (21:29 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Tue, 14 Jan 2020 08:25:29 +0000 (09:25 +0100)
Previous all files are installed with inst_dir, which will not install
the files under /etc/iscsi/, and it create folders with the same of the
files which is wrong.

Now only use inst_dir to install the config dir and ensure it
exists, and use inst_multiple to install the config files.

Signed-off-by: Kairui Song <kasong@redhat.com>
modules.d/95iscsi/module-setup.sh

index b7f07d042577bd4af2ac27693cf6e595acae0b41..b172828d4f3b0bfd54a5b290b5ca021f0f4a6d36 100755 (executable)
@@ -228,7 +228,8 @@ install() {
         $systemdsystemunitdir/sockets.target.wants/iscsiuio.socket
 
     if [[ $hostonly ]]; then
-        inst_dir $(/usr/bin/find /etc/iscsi)
+        inst_dir /etc/iscsi
+        inst_multiple $(find /etc/iscsi -type f)
     else
         inst_simple /etc/iscsi/iscsid.conf
     fi