summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bootloader.py b/bootloader.py
index aaa45a285..b9eea2b8e 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -54,6 +54,11 @@ def bootloaderSetupChoices(dispatch, bl, fsset, diskSet, dir):
log("MBR not suitable as boot device; installing to partition")
bl.defaultDevice = "boot"
bl.setDevice(choices[bl.defaultDevice][0])
+ elif choices and choices.has_key("mbr"):
+ bl.setDevice(choices["mbr"][0])
+ elif choices and choices.has_key("boot"):
+ bl.setDevice(choices["boot"][0])
+
bootDev = fsset.getEntryByMountPoint("/")
if not bootDev: