summaryrefslogtreecommitdiffstats
path: root/livecd.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-10-20 11:15:33 -0400
committerChris Lumens <clumens@redhat.com>2009-10-20 17:00:53 -0400
commit516c91aecc21278f22565d55cb43feae2dd404cd (patch)
treef5e9e75c42a5f23346208f6a1bcc73c794e73d41 /livecd.py
parent735b20c7a8d7588806f36f2290dddd2811e9a6eb (diff)
downloadanaconda-516c91aecc21278f22565d55cb43feae2dd404cd.tar.gz
anaconda-516c91aecc21278f22565d55cb43feae2dd404cd.tar.xz
anaconda-516c91aecc21278f22565d55cb43feae2dd404cd.zip
Use rpm to determine how to set bootloader args and default runlevel (#527520).
We were previously using tests that have diverged from what's going on in yuminstall.py, so this brings the two backend tests into using the same concept.
Diffstat (limited to 'livecd.py')
-rw-r--r--livecd.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/livecd.py b/livecd.py
index 685e172ed..795798c07 100644
--- a/livecd.py
+++ b/livecd.py
@@ -348,6 +348,8 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
rc = proc.poll()
def doPostInstall(self, anaconda):
+ import rpm
+
self._doFilesystemMangling(anaconda)
# setup /etc/rpm/ for the post-install environment
@@ -355,11 +357,7 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
storage.writeEscrowPackets(anaconda)
- # maybe heavy handed, but it'll do
- 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)
+ packages.rpmSetupGraphicalSystem(anaconda)
# now write out the "real" fstab and mtab
anaconda.id.storage.write(anaconda.rootPath)