X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot%2Fmount-iscsi.sh;h=fd29d915ec087f9efce5c0c3e1f94a303f1a729a;hb=97c0e08bd0f00264eb3c2c5896a28e25a89d9f6f;hp=e9cd9cf15e13685869a5ad147e7db2c9aea48607;hpb=c48696a0ebe9ffc938b84b921db90ac620339a52;p=live-boot-grml.git diff --git a/scripts/boot/mount-iscsi.sh b/scripts/boot/mount-iscsi.sh index e9cd9cf..fd29d91 100755 --- a/scripts/boot/mount-iscsi.sh +++ b/scripts/boot/mount-iscsi.sh @@ -1,12 +1,14 @@ #!/bin/sh +#set -e + do_iscsi() { do_netsetup #modprobe ib_iser modprobe iscsi_tcp local debugopt="" - [ "${DEBUG}" = "Yes" ] && debugopt="-d 8" + [ "${DEBUG}" = "true" ] && debugopt="-d 8" #FIXME this name is supposed to be unique - some date + ifconfig hash? ISCSI_INITIATORNAME="iqn.1993-08.org.debian.live:01:$(echo "${HWADDR}" | sed -e s/://g)" export ISCSI_INITIATORNAME