iscsi/iscsiroot.sh: do not trust iscsistart return value

master
Harald Hoyer 2014-01-07 16:40:50 +01:00
parent 9a3676a88f
commit 8c828f329b
1 changed files with 2 additions and 1 deletions

View File

@ -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