[PATCH] use cache outside the installtree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Brian C. Lane" <bcl@xxxxxxxxxx>

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
---
 src/sbin/lorax |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/sbin/lorax b/src/sbin/lorax
index 14b7d96..5b93b96 100755
--- a/src/sbin/lorax
+++ b/src/sbin/lorax
@@ -149,17 +149,17 @@ def get_yum_base_object(installroot, repositories, mirrorlists=[],
     repositories = filter(bool, repositories)
     mirrorlists = filter(bool, mirrorlists)
 
-    #cachedir = os.path.join(tempdir, "yum.cache")
-    #if not os.path.isdir(cachedir):
-    #    os.mkdir(cachedir)
+    cachedir = os.path.join(tempdir, "yum.cache")
+    if not os.path.isdir(cachedir):
+        os.mkdir(cachedir)
 
     yumconf = os.path.join(tempdir, "yum.conf")
     c = ConfigParser.ConfigParser()
 
     # add the main section
     section = "main"
-    data = {#"cachedir": cachedir,
-            #"keepcache": 0,
+    data = {"cachedir": cachedir,
+            "keepcache": 0,
             "gpgcheck": 0,
             "plugins": 0,
             "reposdir": "",
-- 
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux