Correctly follow chain to netboot and install events in genesis

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11357 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-01-05 21:52:24 +00:00
parent 61037f8329
commit d22f5139d2

View File

@ -105,6 +105,7 @@ while :; do
fi
destparameter=`echo $destiny|awk -F= '{print $2}'`
destiny=`echo $destiny|awk -F= '{print $1}'`
dest=`echo $destiny|awk '{print $1}'` #could probably use bash but oh well
if [ "$destiny" = "discover" ]; then #skip a query to xCAT when /proc/cmdline will do
/bin/dodiscovery
/bin/getcert $XCATMASTER:$XCATPORT
@ -131,6 +132,8 @@ while :; do
elif [ "$destiny" = "reboot" -o "$destiny" = "boot" ]; then
/bin/nextdestiny $XCATMASTER:$XCATPORT
reboot -f
elif [ "$dest" = "install" -o "$dest" = "netboot" ]; then
reboot -f
elif [ "$destiny" = standby ]; then
destiny=''
delay=$((30+$RANDOM%270))