summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/yuminstall.py b/yuminstall.py
index 29db6af08..8b6b73dbd 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -929,6 +929,21 @@ class YumBackend(AnacondaBackend):
log.debug("selecting kernel-smp-devel")
self.selectPackage("kernel-smp-devel.%s" % (kpkg.arch,))
+ if not foundkernel and isys.isPaeAvailable():
+ try:
+ kpae = getBestKernelByArch("kernel-PAE", self.ayum)
+ except PackageSackError:
+ kpae = None
+ log.debug("no kernel-PAE package")
+
+ if kpae and kpae.returnSimple("arch") == kpkg.returnSimple("arch"):
+ foundkernel = True
+ log.info("select kernel-PAE package for kernel")
+ self.ayum.install(po=kpae)
+ if len(self.ayum.tsInfo.matchNaevr(name="gcc")) > 0:
+ log.debug("selecting kernel-PAE-devel")
+ self.selectPackage("kernel-PAE-devel.%s" % (kpkg.arch,))
+
if not foundkernel:
log.info("selected kernel package for kernel")
self.ayum.install(po=kpkg)