diff options
author | Chris Lumens <clumens@redhat.com> | 2009-10-20 11:15:33 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-10-20 17:00:53 -0400 |
commit | 516c91aecc21278f22565d55cb43feae2dd404cd (patch) | |
tree | f5e9e75c42a5f23346208f6a1bcc73c794e73d41 /livecd.py | |
parent | 735b20c7a8d7588806f36f2290dddd2811e9a6eb (diff) | |
download | anaconda-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.py | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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) |