use cache outside the installtree

reenable the yum cache in the tmpdir, this means it doesn't end
up on the final squashfs.img, reducing the boot.iso size from
400M to 154M
This commit is contained in:
Brian C. Lane 2012-03-23 10:17:20 -07:00
parent b389d87c8d
commit e686b67882

View File

@ -149,17 +149,17 @@ def get_yum_base_object(installroot, repositories, mirrorlists=[],
repositories = filter(bool, repositories) repositories = filter(bool, repositories)
mirrorlists = filter(bool, mirrorlists) mirrorlists = filter(bool, mirrorlists)
#cachedir = os.path.join(tempdir, "yum.cache") cachedir = os.path.join(tempdir, "yum.cache")
#if not os.path.isdir(cachedir): if not os.path.isdir(cachedir):
# os.mkdir(cachedir) os.mkdir(cachedir)
yumconf = os.path.join(tempdir, "yum.conf") yumconf = os.path.join(tempdir, "yum.conf")
c = ConfigParser.ConfigParser() c = ConfigParser.ConfigParser()
# add the main section # add the main section
section = "main" section = "main"
data = {#"cachedir": cachedir, data = {"cachedir": cachedir,
#"keepcache": 0, "keepcache": 0,
"gpgcheck": 0, "gpgcheck": 0,
"plugins": 0, "plugins": 0,
"reposdir": "", "reposdir": "",