[CentOS] continuing issues with %post
mk at crc.dk
Fri Oct 16 08:05:41 UTC 2009
On 10/15/2009 04:17 AM, David Mehler wrote:
> 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:
to your %post section and check the /root/post-install.log after
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.
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 Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Mobile: +45 22 12 53 25
Email: mk at crc.dk Homepage: http://www.crc.dk
More information about the CentOS