Fwd: [PATCH]Add --cacheonly to livecd-create (and to olpc-os-builder)
dsd at laptop.org
Tue Jul 24 15:20:15 EDT 2012
On Tue, Jul 24, 2012 at 1:14 PM, Jerry Vonau <jvonau at shaw.ca> wrote:
> Been thinking of this for awhile now, before /intermediates/shared/ came
> into use, but is not at the top of my list of things to do. Going to
> need pass --cacheonly from OOB anyway to force the use of the cache
> after the first pass of OOB, so why bother with the upstream patches.
> You are more or less creating a local mirror of the remote repo but with
> just the to be installed rpms present.
> Think we can do that now with what is in imgcreate after the first pass
> of OOB by passing a new global option use_cache= in OOB's .ini file to
> repos.py. This new option could link new path to path then run
> createrepo against path and change baseurl= to be file:///path for
> each repo found by repos.py. This should keep yum's metadata straight
> between the "main cache" in imgcreate when online and the offline "repo"
> as the metadata would be updated before the repos are used.
> 1. build/intermediates/shared/repos/<repo used from repos.py>/packages
> 2. build/cache/imgcreate/<repo>/packages
> 3. build/intermediates/shared/repos/<repo used from repos.py>/
> 4. build/intermediates/shared/repos/<repo>/
Maybe it is subjective, but Martin's patch on the upstream approach
seems like a much simpler and cleaner solution to me.
More information about the Devel