[PATCH] Only run selectBestKernel, selectBootloader, etc. for new installs.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since we run selectBestKernel, selectBootloader, etc. for new
installs, upgrades will always have a kernel and bootloader and
other necessary packages installed. It used to be harmless to run
them anyway, but now forcing things into the package set will break
preupgrade. See RHBZ #476714.
---
 yuminstall.py |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index c62c09b..4826c03 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1325,11 +1325,12 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
         self.ayum.dsCallback = dscb
 
         # do some sanity checks for kernel and bootloader
-        self.selectBestKernel(anaconda)
-        self.selectBootloader()
-        self.selectFSPackages(anaconda.id.fsset, anaconda.id.diskset)
-
-        self.selectAnacondaNeeds()
+        if not anaconda.id.getUpgrade():
+            # New installs only - upgrades will already have all this stuff.
+            self.selectBestKernel(anaconda)
+            self.selectBootloader()
+            self.selectFSPackages(anaconda.id.fsset, anaconda.id.diskset)
+            self.selectAnacondaNeeds()
 
         if anaconda.id.getUpgrade():
             self.ayum.update()
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux