From 6b82ec81feb898a3654a29ff4186c18c4f970512 Mon Sep 17 00:00:00 2001 From: sjing Date: Wed, 25 May 2011 02:27:44 +0000 Subject: [PATCH] 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 --- xCAT-server/share/xcat/install/scripts/post.rh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xCAT-server/share/xcat/install/scripts/post.rh b/xCAT-server/share/xcat/install/scripts/post.rh index 6ac2f5d7c..fbf8a2214 100644 --- a/xCAT-server/share/xcat/install/scripts/post.rh +++ b/xCAT-server/share/xcat/install/scripts/post.rh @@ -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 #