summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-08-24 19:12:29 +0000
committerChris Lumens <clumens@redhat.com>2006-08-24 19:12:29 +0000
commitbafe7b1a8184a23a14efe35f083c2fcb190cdc24 (patch)
treefc2f06794ba5f63b06faa5582a46cecb7a498cb4 /yuminstall.py
parent74349fcf340626d99737a0b0a8079e8602d76e43 (diff)
downloadanaconda-bafe7b1a8184a23a14efe35f083c2fcb190cdc24.tar.gz
anaconda-bafe7b1a8184a23a14efe35f083c2fcb190cdc24.tar.xz
anaconda-bafe7b1a8184a23a14efe35f083c2fcb190cdc24.zip
Make sure programs anaconda runs post-install are installed (#203216). I
don't think this is the best possible way to solve this problem, but I also don't think there really is a good way. So here is a way. Feel free to come up with something you like better.
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/yuminstall.py b/yuminstall.py
index cc239a718..4198ad217 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -884,6 +884,15 @@ class YumBackend(AnacondaBackend):
self.selectPackage("iscsi-initiator-utils")
break
+ # anaconda requires several programs on the installed system to complete
+ # installation, but we have no guarantees that some of these will be
+ # installed (they could have been removed in kickstart). So we'll force
+ # it.
+ def selectAnacondaNeeds(self):
+ for pkg in ['authconfig', 'chkconfig', 'mkinitrd',
+ 'system-config-securitylevel-tui']:
+ self.selectPackage(pkg)
+
def doPostSelection(self, anaconda):
# Only solve dependencies on the way through the installer, not the way back.
if anaconda.dir == DISPATCH_BACK:
@@ -894,6 +903,8 @@ class YumBackend(AnacondaBackend):
self.selectBootloader()
self.selectFSPackages(anaconda.id.fsset, anaconda.id.diskset)
+ self.selectAnacondaNeeds()
+
if anaconda.id.getUpgrade():
from upgrade import upgrade_remove_blacklist
self.upgradeFindPackages()