View Full Version : Preserving packages downloaded durin liveCD creation
metaylor
2009-03-24, 12:33 PM CDT
I use the following command to create liveCD
livecd-creator --config=/usr/share/livecd-tools/livecd-fedora-9-desktop-ipdt-test-build.ks --fslabel=F9-desktop-ipdt-test-R04-liveCD
As it turns out, I have to do regular updates to customization which I added that require re-running. This is time consuming because I have download the packages each time.
Is there a way to preserve the packages so I don't have to dowload each time I re-run?
sideways
2009-03-24, 05:02 PM CDT
yes, create a cache directory and use it like this
mkdir livecdcache
livecd-creator -c livecd-test.ks --cache=livecdcache/
metaylor
2009-03-24, 05:24 PM CDT
So it looks like I append the --cache to the end of the command I am using? is that correct?
sideways
2009-03-24, 05:26 PM CDT
yes, that's right.
metaylor
2009-03-24, 05:34 PM CDT
great! one last question (I think). I have creaded the livecdcache directory and I am re-running the utility now. For future reference, what is the option I need to include in the command to point to the livecdcache directory?
sideways
2009-03-24, 05:41 PM CDT
eh? Didn't I just answer that?
On the first run the livecdcache directory will get populated with the rpm packages, then on subsequent runs the packages will be loaded from this (permanent) cache instead of being downloaded.
You just specify '--cache=livecdcache/' each time you run livecd-creator.
marko
2009-03-24, 05:48 PM CDT
I guess he means is it smart enough to figure out that the cache is stale and some of the rpms on the repos are newer so then it would then get those updated ones and put them in the cache. Probably not?
sideways
2009-03-24, 05:56 PM CDT
I think it just takes the package from cache if it's there, otherwise goes to the repo specified in the kickstart file, but I haven't built a cd for a while so it may have changed.
Perhaps if you specify an updates repo it will check the version in cache against the metadata.
metaylor
2009-03-24, 07:15 PM CDT
Pardon my "slowness". It was not obvious to me that subsequent runs the packages will be loaded from cache.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.