Fix for nodeset fails if site.nameservers is empty. dhcp client handles the /etc/resolv.conf creating.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9678 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
1e289290e6
commit
6b82ec81fe
@ -30,11 +30,7 @@ then
|
||||
dhclient eth0
|
||||
IP=$(ifconfig $PRINIC | grep inet | awk '{print $2}' | awk -F: '{print $2}')
|
||||
fi
|
||||
echo "search #TABLE:site:key=domain:value#" >/etc/resolv.conf
|
||||
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
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user