back port sysclone support

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16280 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2013-05-14 02:33:37 +00:00
parent d302ccb027
commit b3a9a398dc

View File

@ -108,6 +108,8 @@ if dmidecode|grep IPMI > /dev/null; then
modprobe ipmi_si
modprobe ipmi_devintf
fi
DEVICE=$bootnic
export DEVICE
XCATPORT=3001
export XCATPORT
for parm in `cat /proc/cmdline`; do
@ -117,6 +119,7 @@ for parm in `cat /proc/cmdline`; do
XCATPORT=`echo $parm|awk -F= '{print $2}'|awk -F: '{print $2}'`
fi
done
export XCATMASTER
if [ "$destiny" != "discover" ]; then #we aren't discoverying, we probably can and should get a cert
/bin/getcert $XCATMASTER:$XCATPORT
fi
@ -159,6 +162,10 @@ while :; do
reboot -f
elif [ "$dest" = "install" -o "$dest" = "netboot" ]; then
reboot -f
elif [ "$dest" = sysclone ]; then
/bin/dosysclone
destiny=''
dest=''
elif [ "$dest" = standby ]; then
destiny=''
dest=''