]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
iscsi/iscsiroot.sh: do not trust iscsistart return value
authorHarald Hoyer <harald@redhat.com>
Tue, 7 Jan 2014 15:40:50 +0000 (16:40 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 13 Jan 2014 08:51:04 +0000 (09:51 +0100)
modules.d/95iscsi/iscsiroot.sh

index ef090f7f551923069d97675284f2b0ab6b3ff9e3..abdea5cfa812d009866ee2545af09dfb6a31d276 100755 (executable)
@@ -44,7 +44,8 @@ if getargbool 0 rd.iscsi.firmware -d -y iscsi_firmware ; then
        iscsi_param="$iscsi_param --param $p"
     done
 
-    if ! [ -e /tmp/iscsistarted-firmware ] && iscsistart -b $iscsi_param; then
+    if ! [ -e /tmp/iscsistarted-firmware ]; then
+        iscsistart -b $iscsi_param
         echo 'started' > "/tmp/iscsistarted-iscsi"
         echo 'started' > "/tmp/iscsistarted-firmware"
         need_shutdown