On 10/15/2009 04:17 AM, David Mehler wrote:
Hello, I'm trying to do an unattended CentOS 5.3 install. For the most part it's working. As of right now i'm statically assigning the machine an IP which i believe will allow %post to resolve names? I also like knowing where the box will show up.
Start by enable logging of your %post section:
%post --log /mnt/sysimage/root/post-install.log
You can test if network is working by removing the yum update and add a:
/usr/bin/nslookup www.someaddressthatshouldwork.com
to your %post section and check the /root/post-install.log after installation.
I use network commands during my %post section (NFS mounts to a named server) and it works.
However, as others have pointed out, don't do "yum update", it is much faster to add the updates repo at the beginning, then you don't have to install the packages that have updates twice.
I use:
url --url http://ftp.crc.dk/centos/5/os/i386 repo --name=base --baseurl=http://ftp.crc.dk/centos/5/os/i386 repo --name=updates --baseurl=http://ftp.crc.dk/centos/5/updates/i386
Replace ftp.crc.dk with your favourite mirror.
Mogens