From: Derek Higgins Date: Thu, 26 Oct 2017 14:29:42 +0000 (+0100) Subject: Skip iscsi attachment if no info X-Git-Tag: 047~82^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F298%2Fhead;p=thirdparty%2Fdracut.git Skip iscsi attachment if no info If no iscsi session information can be retrieved from the firmware then skip the iscsi attachment and allow the boot process to continue. Ensure the timeout scripts don't hit their timeout waiting for /tmp/iscsistarted-firmware to be created. This will allow a common image to be used for servers with both a local and iscsi root with rd.iscsi.firmware set. --- diff --git a/modules.d/95iscsi/iscsiroot.sh b/modules.d/95iscsi/iscsiroot.sh index 379cc2964..aefd263da 100755 --- a/modules.d/95iscsi/iscsiroot.sh +++ b/modules.d/95iscsi/iscsiroot.sh @@ -44,8 +44,9 @@ fi handle_firmware() { if ! iscsistart -f; then - warn "iscistart: Could not get list of targets from firmware." - return 1 + warn "iscistart: Could not get list of targets from firmware. Skipping." + echo 'skipped' > "/tmp/iscsistarted-firmware" + return 0 fi for p in $(getargs rd.iscsi.param -d iscsi_param); do