diff options
author | Matt Wilson <msw@redhat.com> | 2001-06-27 03:38:00 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-06-27 03:38:00 +0000 |
commit | ef6b9a9094c9d753dcc77c360143a90faae34f1e (patch) | |
tree | 55c2d17f7317c1b7276651c927c05b2392ced2ef /upgrade.py | |
parent | b086c72129dc0690708ec868e2db3e0280767a5a (diff) | |
download | anaconda-ef6b9a9094c9d753dcc77c360143a90faae34f1e.tar.gz anaconda-ef6b9a9094c9d753dcc77c360143a90faae34f1e.tar.xz anaconda-ef6b9a9094c9d753dcc77c360143a90faae34f1e.zip |
install grub if it doesn't exist and grub is going to be used
Diffstat (limited to 'upgrade.py')
-rw-r--r-- | upgrade.py | 7 |
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 |