Fix for bug #3391032
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:
parent
e58d4adf3d
commit
5527e17e3a
@ -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,
|
||||
{
|
||||
|
@ -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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user