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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@icq
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux