Thanks, that's a far better solution than the ones I was coming up with. I tested with a fresh kickstart and it appears your solution indeed works. I'll move on to my next issues where I have a different set of channels prescribed for the kickstart vs. the activation key. I specifically get an error about installing a "libutempter" package when I have my Updates channel included on the KS but otherwise get messages about missing a iscsi-initiator-utils package. I can figure this one out through a series of further testing.
Thanks again for the tip. -- Jon Miller On Wed, Apr 24, 2013 at 12:05 AM, Jeremy Maes <j...@schaubroeck.be> wrote: > Op 19/04/2013 22:57, Jon Miller schreef: > > I'm inching closer to my problem / solution. What I have realized is that > the conflicting packages are actually being located from the CentOS yum > repositories on the internet. My channels are currently locked down and > sync to CentOS 6.2 whereas the default yum repos files that are distributed > via the centos-release package are pointing to the latest set of packages. > > An equivalent question to solve my problem may be: How do you disable > local yum repos from conflicting with what channels you have configured in > Spacewalk? > I currently have a post-chroot script setup in my kickstart profile > that renames any /etc/yum.repos.d/*.repo file with a ".off" extension but > apparently this isn't quick enough. Is there a more effective way in > disabling local repos quicker? > > Thanks, > Jon Miller > > I have this via a snippet in a *pre* script to create a yum config file > for the kickstart to use. This file gets copied to /etc/yum.conf after the > installation so the web-repositories will stay disabled unless you move the > repo files or change the yum.conf back to the default. > > ## Change yum.repos.d default dir so base CentOS repositories aren't > enabled during kickstart. > ## This way registration and installation works as it should without any > repo errors. > > mkdir -p /tmp/ks-tree-shadow/etc/yum.repos.d/custom > > cat << EOF > /tmp/ks-tree-shadow/etc/yum.conf > [main] > cachedir=/var/cache/yum/$basearch/$releasever > reposdir=/etc/yum.repos.d/custom/ > keepcache=0 > debuglevel=2 > logfile=/var/log/yum.log > distroverpkg=centos-release > exactarch=1 > obsoletes=1 > gpgcheck=1 > plugins=1 > installonly_limit=5 > category=yum > > # Note: yum-RHN-plugin doesn't honor this. > metadata_expire=1h > > > # PUT YOUR REPOS HERE OR IN separate files named file.repo > # in /etc/yum.repos.d/custom > EOF > > Regards, > Jeremy > > **** DISCLAIMER **** > http://www.schaubroeck.be/maildisclaimer.htm >
_______________________________________________ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list