From 9408a2ac330970e98dc4d289ec3ffb163f0517d1 Mon Sep 17 00:00:00 2001 From: Derek Higgins Date: Thu, 26 Oct 2017 15:29:42 +0100 Subject: [PATCH] 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. --- modules.d/95iscsi/iscsiroot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules.d/95iscsi/iscsiroot.sh b/modules.d/95iscsi/iscsiroot.sh index 379cc296..aefd263d 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