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

(cherry picked from commit bb8c16d12178373f17553294603ff5187e318b51)

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

index 52a4805a59671df7e14f8e2c1b363093cc0bf80e..b48be38778a34dd80791a1ba8b523f7d661b97f1 100755 (executable)
@@ -88,7 +88,7 @@ fi
 
 if [ -n "$netroot" ] && [ "$root" != "/dev/root" ] && [ "$root" != "dhcp" ]; then
     if ! getargbool 1 rd.neednet >/dev/null || ! getarg "ip="; then
-        initqueue --onetime --settled "/sbin/iscsiroot dummy '$netroot' '$NEWROOT'"
+        initqueue --onetime --settled /sbin/iscsiroot dummy "'$netroot'" "'$NEWROOT'"
     fi
 fi