Hi After a kickstart install how do you get a yum update to run as the final stage of the install? a 'yum update' in the %post does not seem to do anything at all - no errors just nothing? thanks
Tom Brown wrote:> Hi > > After a kickstart install how do you get a yum update to run as the > final stage of the install? > > a 'yum update' in the %post does not seem to do anything at all - no > errors just nothing? >Try this in your kickstart file: %post --interpreter /bin/bash yes | yum update Without the '--interpreter /bin/bash' the code will (I think) be interpreted as python. Also, when you run 'yum update' you are prompted to confirm that you want to go ahead and update the listed packages, and so you need to pipe 'yes' through it. Hope this helps, Joe
On Friday 02 June 2006 09:13, Tom Brown wrote:> After a kickstart install how do you get a yum update to run as the > final stage of the install?Hijack the firstboot mechanism.> a 'yum update' in the %post does not seem to do anything at all - no > errors just nothing?You shouldn't try to do anything near that complicated in a %post inside Anaconda during install. While you may get it to work, the firstboot mechanism is design for this; I seem to remember a beta one time that asked to do an update during firstboot, but I don't remember which version; it was pre-yum (up2date was used) and it has been several years. -- Lamar Owen Director of Information Technology Pisgah Astronomical Research Institute 1 PARI Drive Rosman, NC 28772 (828)862-5554 www.pari.edu
On Friday 02 June 2006 17:13, Tom Brown wrote:> > Hijack the firstboot mechanism. > > how would one do that??See /etc/init.d/firstboot and /usr/sbin/firstboot. Modify them in your %post to do what you want. Make an update module, or something similar. Since you're doing kickstart, you could drop in your own custom firstboot RPM that could do whatever it is you want on firstboot after installation. -- Lamar Owen Director of Information Technology Pisgah Astronomical Research Institute 1 PARI Drive Rosman, NC 28772 (828)862-5554 www.pari.edu