From d9f46bb5131266f979734895feaaf921f49d30af Mon Sep 17 00:00:00 2001 From: craig Date: Mon, 11 Oct 2010 00:21:05 +0200 Subject: [PATCH] Add iBFT support for iSCSI --- defaults/initrd.scripts | 8 +++++++- defaults/linuxrc | 5 ++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 249b721..f7f01de 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -689,10 +689,16 @@ startVolumes() { } startiscsi() { + + if [ ! -n "${ISCSI_NOIBFT}" ] + then + good_msg "Activating iSCSI via iBFT" + iscsistart -b + fi if [ -n "${ISCSI_INITIATORNAME}" ] && [ -n "${ISCSI_TARGET}" ] && [ -n "${ISCSI_ADDRESS}" ] then - good_msg "Activating iSCSI" + good_msg "Activating iSCSI via cmdline" if [ "${ISCSI_TGPT}" ] then diff --git a/defaults/linuxrc b/defaults/linuxrc index f1e124b..ae0535b 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -294,7 +294,10 @@ start_dev_mgr [ "${DO_slowusb}" ] && sleep 10 # Start iSCSI -startiscsi +if [ -e /bin/iscsistart ] +then + startiscsi +fi # Setup btrfs, see bug 303529 setup_btrfsctl -- 2.26.2