From aa1775da338a93494ef952dfb355157e192a7724 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Tue, 13 Nov 2012 01:33:18 -0500 Subject: [PATCH 5/6] Add the 'fedup' plymouth theme if available --- src/pylorax/__init__.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 20a84c3..95f912f 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -47,7 +47,7 @@ from treebuilder import RuntimeBuilder, TreeBuilder from buildstamp import BuildStamp from treeinfo import TreeInfo from discinfo import DiscInfo -from executils import runcmd +from executils import runcmd, runcmd_output class ArchData(DataHolder): lib64_arches = ("x86_64", "ppc64", "sparc64", "s390x", "ia64") @@ -286,6 +286,14 @@ class Lorax(BaseLoraxClass): # Build upgrade.img. It'd be nice if these could coexist in the same # image, but that would increase the size of the anaconda initramfs, # which worries some people (esp. PPC tftpboot). So they're separate. + try: + # If possible, use the 'fedup' plymouth theme + themes = runcmd_output(['plymouth-set-default-theme', '--list'], + root=installroot) + if 'fedup' in themes.splitlines(): + os.environ['PLYMOUTH_THEME_NAME'] = 'fedup' + except RuntimeError: + pass upgrade_args = dracut_args + ["--add", "system-upgrade"] treebuilder.rebuild_initrds(add_args=upgrade_args, prefix="upgrade") -- 1.8.0