[Spacewalk-list] spacewalk cobbler issue

John Hodrien J.H.Hodrien at leeds.ac.uk
Fri Feb 26 08:48:39 UTC 2010


On Thu, 25 Feb 2010, Jeremy Mueller wrote:

> We had the same problem with a proxy and the CentOS mirrors.  At the beginning of our %post section we put in this sed statement:
>
> sed -i 's/^\[\([^]]*\)\]/[\1]\nenabled=0/g' /etc/yum.repos.d/CentOS-*

I thought putting it in a post didn't work because the rhnreg happened first,
so any packages installed via the activation key caused problems at that
stage.

I also (still) think disabling them that way is just setting yourself up for
problems later.  Next time you upgrade centos-release, are you not setting
yourself up for another sed?  Or does rpmnew save you?

jh




More information about the Spacewalk-list mailing list