Skip to content

Commit

Permalink
iscsi/parse-iscsiroot.sh: correct handling if netroot isn't set
Browse files Browse the repository at this point in the history
corrects bfe65f9
  • Loading branch information
haraldh committed Sep 17, 2015
1 parent bcc2132 commit 7fd112f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules.d/95iscsi/parse-iscsiroot.sh
Expand Up @@ -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"

Expand Down

0 comments on commit 7fd112f

Please sign in to comment.