Anyone got any idea why it didn't work in %pre?
R.
--
I would think because the %post part of any kickstart actually happens in a chroot jail of
the installed os. %pre and %post -nochroot happen outside of the chroot.
Basically...
%pre and %post -nochroot happen before/after Anaconda is running. Hence things happen on
the mounted initrd based install image.
When %post gets called, it actually chroot logins to the mounted dir structure that
Anaconda installs to (ottomh, /mnt/sysimage/blah or similar). Hence anything in %post
happens within the chroot. Everything outside of the chroot structure is not accessible.
In your case the tools you wgetted.
I've hit this issue in the past when trying to do something similar (not using
Cobbler, just Kickstart and PXE). You just have to be a bit *imaginative* about your %post
scripts :)
Either (as you have done) wget the files from within the chroot or wget in %pre but run
the scripts in %post -nochroot. I'd do the former, the nochroot environment can get
awfully confusing and has a limited toolset welded in the Anaconda initrd image.
HTH
Dan
--