summaryrefslogtreecommitdiffstats
path: root/livecd.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-07-07 17:39:48 -0400
committerJeremy Katz <katzj@redhat.com>2008-07-07 17:53:44 -0400
commitf8006122aa990d8fc14c1b384d91b5a2ce7c4403 (patch)
tree11aff342538ca29550eceae4adab6e8733a132d6 /livecd.py
parent2f5026401be98be4e163ed148abd85b4b782e15c (diff)
downloadanaconda-f8006122aa990d8fc14c1b384d91b5a2ce7c4403.tar.gz
anaconda-f8006122aa990d8fc14c1b384d91b5a2ce7c4403.tar.xz
anaconda-f8006122aa990d8fc14c1b384d91b5a2ce7c4403.zip
Set up rhgb for plymouth on live. And conditionalize rhgb + runlevel 5
Diffstat (limited to 'livecd.py')
-rw-r--r--livecd.py6
1 files changed, 4 insertions, 2 deletions
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)