]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
iscsi: correctly install the timeout iscsiroot dummy call
authorHarald Hoyer <harald@redhat.com>
Wed, 11 Jun 2014 12:55:11 +0000 (14:55 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Jul 2014 10:00:42 +0000 (12:00 +0200)
initqueue parses $1 as the executable command

(cherry picked from commit 486a8f33e2edaf249e3a09c98a910094e201cf9e)

modules.d/95iscsi/parse-iscsiroot.sh

index 4be9d5612131fc45e1d4396e5ed9784273be4235..52a4805a59671df7e14f8e2c1b363093cc0bf80e 100755 (executable)
@@ -64,7 +64,7 @@ if [ -n "$iscsi_firmware" ] ; then
     netroot=${netroot:-iscsi:}
     modprobe -q iscsi_boot_sysfs 2>/dev/null
     modprobe -q iscsi_ibft
-    initqueue --onetime --timeout "/sbin/iscsiroot dummy '$netroot' '$NEWROOT'"
+    initqueue --onetime --timeout /sbin/iscsiroot dummy "'$netroot'" "'$NEWROOT'"
 fi
 
 # If it's not iscsi we don't continue