diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-07-07 17:39:48 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-07-07 17:53:44 -0400 |
commit | f8006122aa990d8fc14c1b384d91b5a2ce7c4403 (patch) | |
tree | 11aff342538ca29550eceae4adab6e8733a132d6 /livecd.py | |
parent | 2f5026401be98be4e163ed148abd85b4b782e15c (diff) | |
download | anaconda-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.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |