Red Hat Bugzilla – Bug 501344
livecd-creator defaults causes excessive load on mirrors
Last modified: 2009-10-31 01:19:45 EDT
Description of problem:
The defaults for livecd-creator causes all rpms to be downloaded with yum every time an image is build.
I realize that this behaviour sometimes is necessary, but it shouldn't be the default. I suggest an option to disable caching instead - and perhaps one to clean the cache, similar to what "yum clean all" does for the running system.
Version-Release number of selected component (if applicable):
The default behavior is very intentionally that after running, the only thing different on your filesystem is the addition of the iso you've created. Leaving around a cache directory is complex (share with yum? pungi? some say yes, some say no) and so it's easier to always use temporary space and ensure that we clean up at the end of the process.
If you wish to use a persistent cache directory, you can run with --cachedir and specify where you want to put the cache and then it's up to you to clean it up
Are you saying that specifying a --cache option will prevent the cache from being deleted.
I just tried a run with --cache=/var/cache/yum and it deleted 5G of files I had there.
Is there currently any way to prevent the cache from being deleted?