summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--upgrade.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/upgrade.py b/upgrade.py
index 3ee3916fa..cdde5b164 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -309,6 +309,13 @@ def upgradeFindPackages (intf, method, id, instPath):
if not rec:
log ("GNOME: Adding %s", package)
package.select()
+
+ if iutil.getArch() == "i386" and id.bootloader.useGrub():
+ if id.hdList.has_key("grub") and not id.hdList["grub"].isSelected()
+ try:
+ db.findbyname ("grub")
+ except rpm.error:
+ id.hdList["grub"].select()
del db