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

[PATCH f14 master] Remove old kernels with new bootloader (#633234)



NOTE: I've tested this against f13 to f14 update with new bootloader and with upgrade bootloader. Works fine.

This fixes 0783c488cdda8e7157511df1365ccc5ec95a2d33 so that old kernels
are removed only when a new bootloader is installed, but not for a
bootloader upgrade.
---
 pyanaconda/yuminstall.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 876a843..11f014a 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -408,7 +408,7 @@ class AnacondaYum(YumSorter):
                 self.anaconda.methodstr = self.anaconda.intf.methodstrRepoWindow(self.anaconda.methodstr or "cdrom:")
 
         self.doConfigSetup(root=self.anaconda.rootPath)
-        if not self.anaconda.upgrade:
+        if not self.anaconda.bootloader.doUpgradeOnly:
             self.conf.installonlypkgs = []
 
     def _switchCD(self, discnum):
-- 
1.7.2.2


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