use genesis kernel/initrd for sysclone.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15921 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
sjing 2013-04-10 06:36:22 +00:00
parent 40fe923477
commit ab76120c96

View File

@ -3,4 +3,14 @@
echo "Updating hostname to $HOSTNAME"
sed -i "s/HOSTNAME=.*/HOSTNAME=$HOSTNAME/g" /etc/sysconfig/network
hostname $HOSTNAME
hostname $HOSTNAME
echo "Old ifcfg-$DEVICE is:"
cat /etc/sysconfig/network-scripts/ifcfg-$DEVICE
HWADDR=`ifconfig $DEVICE|grep HWaddr|awk '{print $5}'`
sed -i "s/HWADDR=.*/HWADDR="$HWADDR"/g" /etc/sysconfig/network-scripts/ifcfg-$DEVICE
sed -i "s/UUID=.*//g" /etc/sysconfig/network-scripts/ifcfg-$DEVICE
echo "New ifcfg-$DEVICE is:"
cat /etc/sysconfig/network-scripts/ifcfg-$DEVICE