Hi, I've attached a patch that de-bashifies iscsi_discovery. The default shell in Ubuntu is dash [1] and the attached patch is applied so that iscsi_discovery can be run in the installer environment.
[1]: http://en.wikipedia.org/wiki/Debian_Almquist_shell -- Mathias Gug Ubuntu Developer http://www.ubuntu.com
--- open-iscsi-2.0.870.1.orig/utils/iscsi_discovery +++ open-iscsi-2.0.870.1/utils/iscsi_discovery @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # # Copyright (C) Voltaire Ltd. 2006. ALL RIGHTS RESERVED. # @@ -133,7 +133,7 @@ ret=$? if [ ${ret} = 0 ]; then echo "Set target ${target} to automatic login over ${transport} to portal ${portal}" - ((connected++)) + connected=$(($connected + 1)) if [ "$log_out" = "1" ]; then iscsiadm -m node --targetname ${target} --portal ${portal} --logout fi
signature.asc
Description: Digital signature