On Tue, 2011-04-05 at 07:47 -0600, Orion Poplawski wrote: > On 04/05/2011 03:28 AM, Ahmed El Zein wrote: > > ----- Original Message ----- > > From: Ahmed El Zein <[email protected]> > > Date: Tuesday, April 5, 2011 6:23 pm > > Subject: kickstart resolv.conf problem with SL6 > > To: [email protected] > > > > > > > > Dear SL users,I am testing SL6 and my kickstart scripts are failing. > > Specifically wgets are unable to resolve the hostname of the spacewalk > > server. > > > > > > > > > I took a look and both /etc/resolv.conf and > > /mnt/sysimage/etc/resolv.conf are missing the nameserver line. They both > > just have a single line: > > > ---- > > > search <domain> > > > ------ > > > > > > > > > These kickstart scipts work just find on my Centos 5.5 systems, so I > > am not sure if this is a SL6 issue or some change in the kickstart > > options that I am not aware of. I have looked but I can't find any > > relevant difference between the RHEL5 and RHEL6 kickstart doco. > > > > > > > > > And help/info in this regard would be much appreciated. > > > > > A quick follow up; After some more testing I noticed that when anaconda > > first runs the resolv.conf file is fine. By the time the pre script runs > > the resolv.conf is just the one line as I described it. > > By any chance are you using DHCP with short lease times? There was an > issue with clocks getting skewed during the install and leases expiring > and not getting renewed. Looking at /tmp/anaconda.log and > /tmp/system.log from the VT2 terminal should tell you the story.
I am looking at the logs and the only network related log that coincides with the resolv.conf file changing is: <29> Arp 6 06:40:49 NetworkManager[542]: ifcfg-rh: updating /etc/sysconfig/network-scripts/ifcfg-eth0 at that point /etc/sysconfig/network-scripts/ifcfg-eth0 changes and gets an NM_CONTROLLED="yes" added to it and the /etc/resolv.conf file is replaced with the single lined one. -- Ahmed H. El Zein Data Services Specialist ANU Supercomputer Facility Room 315, Leonard Huxley Building (#56), Mills Road The Australian National University Canberra ACT 0200 Australia T: +61 2 6125 0539 F: +61 2 6125 8199 M: +61 4 4913 5073 W: http://anusf.anu.edu.au/ CRICOS Provider #00120C --------------------------------------------
