Add iBFT support for iSCSI
authorcraig <craig@haquarter.de>
Sun, 10 Oct 2010 22:21:05 +0000 (00:21 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 8 Feb 2011 16:56:51 +0000 (17:56 +0100)
defaults/initrd.scripts
defaults/linuxrc

index 249b721d8dfd869aafe11c02d14b8b586e2973ea..f7f01dedddddbd5bbc8fa94641b248cc1b95ad5e 100755 (executable)
@@ -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
index f1e124b7cc3ba2c26d77d43a4dc0d707c3598feb..ae0535b9093552915d6f5bf71b75db171c9ce060 100755 (executable)
@@ -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