Hi Glenn:
In my build scripts I basically whacked the repo files
That is an excellent idea.
How do you do that?
I tried removing them in the anaconda %post section (Fedora, RHEL, CentOS) but they don't go away or, possibly, they magically re-appear.
Cheers,
Joe
-----Original Message----- From: cobbler-bounces@lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Glenn Bailey Sent: Tuesday, January 04, 2011 11:18 AM To: cobbler mailing list Subject: RE: cobbler PXE boot problem -- can't get rid of/etc/yum.repos.d/CentOS*.repo
I am currently experimenting with removing those files in the
kickstart
but I was hoping that there was a more elegant solution. I would
like to
tell cobbler not to install the default CentOS-Base.repo and CentOS-Media.repo for a specific system or profile.
I'm pretty sure anaconda is dropping those file in place. Having anaconda not drop those files would be a question for anaconda or the CentOS devs.
It looks like these files are being added by the centos-release package:
$ sudo rpm -qf /etc/yum.repos.d/CentOS-Base.repo centos-release-5-5.el5.centos
However, given the list of files in the centos-release package, I
don't
recommend removing it. So if you don't want these files present for certain systems/profiles, you'll need to modify the appropriate kickstart scripts accordingly as you are already doing.
I was having issues with the centos-release package re-adding those repo's which was causing yum to time out on updates as we manage local repo's and the systems don't have access to the public internet. In my build scripts I basically whacked the repo files, touched them, and then chattr +i each file. Is a hack, but it works ..
glenn - terremark _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler