From 996e2e974159bb0bf0b6e013763921bd2988f83e Mon Sep 17 00:00:00 2001 From: sjing Date: Wed, 10 Apr 2013 06:23:55 +0000 Subject: [PATCH] use genesis kernel/initrd for sysclone. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15917 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-genesis-scripts/bin/doxcat | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT-genesis-scripts/bin/doxcat b/xCAT-genesis-scripts/bin/doxcat index 59d45da30..4d9e2f204 100755 --- a/xCAT-genesis-scripts/bin/doxcat +++ b/xCAT-genesis-scripts/bin/doxcat @@ -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=''