-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
This commit is contained in:
parent
b334465059
commit
d25e5519b4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user