[Fedora-livecd-list] Fix yum to not look at host config

Mark McLoughlin markmc at redhat.com
Fri Apr 13 17:13:20 UTC 2007


Hey,
	So, I've been seeing two symptoms which suggested that yum was looking
at the hosts config/cache, when clearly the code is trying it's best not
to:

  1) If a repo in the host's config was broken, it would die in 
     doConfigSetup() - e.g. if the host which the repo is on couldn't 
     be contacted

  2) The livecd repos were clearly being at least partly cached outside 
     the install root - e.g. because /var/cache/yum/a-dev gets created.

	Attached is a patch which fixes this, I think. It writes out its own
yum.conf so that the host's repos never get initialised and uses the
installroot config item which seems to do a better job of restricting
yum to the install root.

	Oh, another side effect is that you can now use a repo called
fedora-development :-)

	There's one fly in the ointment, though - now that we're properly
caching in the install root, we hit a bug whereby we can't tell yum to
close these caches before we unmount. See:

   https://bugzilla.redhat.com/236409

	The second patch I've attached is a pretty brute force workaround for
this.

Cheers,
Mark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: livecd-yum-config.patch
Type: text/x-patch
Size: 2383 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-livecd-list/attachments/20070413/476cd80a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: livecd-close-fds.patch
Type: text/x-patch
Size: 894 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-livecd-list/attachments/20070413/476cd80a/attachment-0001.bin>


More information about the Fedora-livecd-list mailing list