From ef6b9a9094c9d753dcc77c360143a90faae34f1e Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Wed, 27 Jun 2001 03:38:00 +0000 Subject: install grub if it doesn't exist and grub is going to be used --- upgrade.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'upgrade.py') 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 -- cgit