From f8006122aa990d8fc14c1b384d91b5a2ce7c4403 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 7 Jul 2008 17:39:48 -0400 Subject: Set up rhgb for plymouth on live. And conditionalize rhgb + runlevel 5 --- livecd.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'livecd.py') diff --git a/livecd.py b/livecd.py index 58c66ca0f..5da7311a1 100644 --- a/livecd.py +++ b/livecd.py @@ -339,8 +339,10 @@ class LiveCDCopyBackend(backend.AnacondaBackend): iutil.writeRpmPlatform(anaconda.rootPath) # maybe heavy handed, but it'll do - anaconda.id.bootloader.args.append("rhgb quiet") - anaconda.id.desktop.setDefaultRunLevel(5) + if os.path.exists(anaconda.rootPath + "/usr/bin/rhgb") or os.path.exists(anaconda.rootPath + "/usr/bin/plymouth"): + anaconda.id.bootloader.args.append("rhgb quiet") + if os.path.exists(anaconda.rootPath + "/usr/sbin/gdm") or os.path.exists(anaconda.rootPath + "/usr/bin/kdm"): + anaconda.id.desktop.setDefaultRunLevel(5) # now write out the "real" fstab and mtab anaconda.id.fsset.write(anaconda.rootPath) -- cgit