git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10283 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
otubo 2011-08-13 18:02:24 +00:00
parent e58d4adf3d
commit 5527e17e3a
2 changed files with 3 additions and 2 deletions

View File

@ -755,6 +755,9 @@ sub mkinstall
# I don't need the timeout for ubuntu, but for debian there is a problem with getting dhcp in a timely manner
$kcmdline .= " netcfg/dhcp_timeout=120";
# safer way to set hostname, avoid problems with nameservers
$kcmdline .= " hostname=".$node;
$bptab->setNodeAttribs(
$node,
{

View File

@ -25,8 +25,6 @@ for i in $(echo #TABLE:site:key=nameservers:value# | tr ',' ' ')
do
echo "nameserver $i"
done >>/etc/resolv.conf
export HOSTNAME=$(host $IP 2>/dev/null | awk '{print $5}' | awk -F. '{print $1}')
hostname $HOSTNAME
#
# Run xCAT post install
#