iscsi/parse-iscsiroot.sh: correct handling if netroot isn't set
corrects bfe65f913a
parent
bcc2132dab
commit
7fd112f20e
|
|
@ -84,7 +84,9 @@ if [ -n "$iscsi_firmware" ]; then
|
|||
initqueue --unique --onetime --settled /sbin/iscsiroot online "iscsi:" "'$NEWROOT'"
|
||||
fi
|
||||
|
||||
[ -z "$netroot" ] || [ "${netroot%%:*}" = "iscsi" ] || return 1
|
||||
if [ -z "$netroot" ] || ! [ "${netroot%%:*}" = "iscsi" ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
initqueue --unique --onetime --timeout /sbin/iscsiroot timeout "$netroot" "$NEWROOT"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue