[Fedora-livecd-list] 2 commits - imgcreate/kickstart.py imgcreate/yuminst.py

Jeremy Katz katzj at fedoraproject.org
Thu Apr 9 17:50:27 UTC 2009


 imgcreate/kickstart.py |    2 +-
 imgcreate/yuminst.py   |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit e08034c7738a22edaddbdddf3f8d63991cafb2b6
Author: Marc Herbert <Marc.Herbert at gmail.com>
Date:   Thu Apr 9 18:19:03 2009 +0100

    quiet restorecon
    
    In my configuration, the attached patch is reducing the output of
    livecd-creator from 2000 lines to 700 lines.
    
    I suspect that these 1300 lines of output from restorecon are not very
    useful to anyone, are they?

diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index 5afe8f9..83a62e4 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -419,7 +419,7 @@ class SelinuxConfig(KickstartConfig):
         if not os.path.exists(self.path("/sbin/restorecon")):
             return
 
-        self.call(["/sbin/restorecon", "-l", "-v", "-r", "-F", "-e", "/proc", "-e", "/sys", "-e", "/dev", "-e", "/selinux", "/"])
+        self.call(["/sbin/restorecon", "-l", "-r", "-F", "-e", "/proc", "-e", "/sys", "-e", "/dev", "-e", "/selinux", "/"])
 
     def apply(self, ksselinux):
         if os.path.exists(self.path("/usr/sbin/lokkit")):


commit 727e6a818b8e542ee484021febea6cb9db8adaff
Author: Jesse Keating <jkeating at redhat.com>
Date:   Thu Apr 9 09:22:23 2009 -0700

    Add options to force fetching of repomd.xml every run.
    
    This will make repomd.xml "timeout" every run and force yum to fetch
    a new one.  However if it matches the rest of the repodata no other files
    will be downloaded.  This helps when using the same cachedir for 32bit and
    64bit runs.  Also expire the mirrorlist every run to ensure we get proper mirrors.

diff --git a/imgcreate/yuminst.py b/imgcreate/yuminst.py
index 080034b..d3f36ac 100644
--- a/imgcreate/yuminst.py
+++ b/imgcreate/yuminst.py
@@ -144,6 +144,8 @@ class LiveCDYum(yum.YumBase):
         repo.basecachedir = self.conf.cachedir
         repo.failovermethod = "priority"
         repo.metadata_expire = 0
+        repo.mirrorlist_expire = 0
+        repo.timestamp_check = 0
         # disable gpg check???
         repo.gpgcheck = 0
         repo.enable()





More information about the Fedora-livecd-list mailing list