[Fedora-livecd-list] [PATCH] add --global-config

Jeremy Katz katzj at redhat.com
Thu Oct 30 14:50:21 UTC 2008


On Thu, 2008-10-30 at 12:35 +0100, Alan Pevec wrote:
> Jeremy Katz wrote:
> > On Wed, 2008-10-29 at 22:49 +0100, Alan Pevec wrote:
> >> to use default YUM config i.e. /etc/yum.conf
> >> With this option you don't have to supply repo kickstart commands.
> > 
> > This makes it so that your images aren't reproducible without knowing
> > what was installed on the system which was building the images.  This
> > circumvents one of the single biggest things about livecd-tools --
> > reproducibility 
> 
> Just knowing repo URLs doesn't help reproducibility - repo content can change.
> --global-config was added for experiments running livecd-creator in mock/koji/brew
> Mock adds repos from its config to /etc/yum.conf in the buildroot, and this, combined with exact koji repo ID, gets us real reproducibility.

It helps quite a bit because you actually know what repos are being used
as opposed to random stuff littered on the filesystem.  Using the system
yum config for livecd-creator is a non-starter.  
 
> >> Also add --cacheonly option to run entirely from YUM cache.
> > 
> > This could be okay, although what's the use case?  Also, one patch per
> > suggested change please.
> 
> Right, I'll do that. It should work like yum -C, the target use-case is to re-use mock yum_cache, 
> where all packages from kickstart are pulled in by mock as BRs. 

Umm... this really feels like going the wrong way to try to build
livecds in mock for one thing.  And reusing the cache can already work,
just use --cachedir.  Yes, if there are more things needed they'll get
grabbed.  But otherwise, it's just going to be a failure mode which I
have a hard time seeing as "better"

> See work-in-progress spec files, 

Umm, sudo for the builder in spec files?  No thanks.  If you're going to
do that, you might as well just not use mock and build as root.

Jeremy




More information about the Fedora-livecd-list mailing list