From 350d9ca3f35578d13927d8bb22f7afa0a4bcfe81 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 25 Feb 2008 14:43:53 +0000 Subject: [PATCH] Fix reading of /etc/resolv.conf to address bug 1823024 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@564 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/xCAT.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index a47766ffb..eb6ed2587 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -159,7 +159,7 @@ if [ "$1" = "1" ]; then #Only if installing for the fist time.. $RPM_INSTALL_PREFIX0/sbin/mknb x86_64 fi $RPM_INSTALL_PREFIX0/sbin/makenetworks - XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab key=nameservers site.value=`grep nameserver /etc/resolv.conf|awk '{printf $2 ","}'|sed -e s/,$//` + XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/chtab key=nameservers site.value=`sed -e 's/#.*//' /etc/resolv.conf|grep nameserver|awk '{printf $2 ","}'|sed -e s/,$//` service httpd restart chkconfig httpd on echo "xCAT is now installed, it is recommended to tabedit networks and set a dynamic ip address range on any networks where nodes are to be discovered"