From d25e5519b494fe9b6a8d889ecbed8317437e1f04 Mon Sep 17 00:00:00 2001
From: mxi1 <mxi1@8638fb3e-16cb-4fca-ae20-7b5d299a9bcd>
Date: Wed, 14 Oct 2009 13:15:24 +0000
Subject: [PATCH] -fix the bug: the in-correct <resolv.conf> file is always
 produced for the diskless sles11 system. dhcpcd has done most of the works
 for us

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4387 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
---
 xCAT-server/share/xcat/netboot/sles/genimage | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/xCAT-server/share/xcat/netboot/sles/genimage b/xCAT-server/share/xcat/netboot/sles/genimage
index 3fac1a58c..9e06470a8 100755
--- a/xCAT-server/share/xcat/netboot/sles/genimage
+++ b/xCAT-server/share/xcat/netboot/sles/genimage
@@ -623,11 +623,7 @@ EOMS
    }
 
    print $inifile <<END;
-cat /var/lib/dhcpcd/*info | grep DOMAIN | uniq | awk -F= '{print \"search\",\$2}' | sed \"s/'//g\" >> /etc/resolv.conf
 cat /var/lib/dhcpcd/*info | grep HOSTNAME | uniq | awk -F= '{print \$2}'| sed \"s/'//g\" >> /etc/HOSTNAME
-for names in \$(cat /var/lib/dhcpcd/*info | grep DNS | uniq | awk -F= '{print \$2}' | sed 's/,/\\n/'); do
-  echo nameserver \$names >> /etc/resolv.conf
-done
 END
 
    close($inifile);