[CentOS] how to 'yum update' in a %post

Fri Jun 2 14:38:23 UTC 2006
Karanbir Singh <mail-lists at karan.org>

Tom Brown wrote:
> 
>> Try this in your kickstart file:
>>
>> %post --interpreter /bin/bash
>> yes | yum update
>>
> the interpreter bit is now causing the end of the kickstart to bomb out
> with the error of '/usr/local/bin/bash can not be run' as this is where
> bash is it seems. This is the %post bit of the kickstart
> 
> %post --nochroot --interpreter /usr/local/bin/bash
> /usr/bin/yum -y update


you need to run this without the --nochroot option, there is no yum
included in the installer system, and the only yum you will get working
is the one inside the chroot.

also, what made you install bash in /usr/local/bin ????

- KB

-- 
Karanbir Singh : http://www.karan.org/ : 2522219 at icq