diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-01-21 21:24:40 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-01-21 21:24:40 +0000 |
commit | 8842f3f725af9dbfc41ce884da520f97a53d2a4f (patch) | |
tree | 64bc5c3ff1da2da1910f4b5dfe7254810448b685 /fsset.py | |
parent | a0908acbe832d7f76be25fe3fdd1288f25464d36 (diff) | |
download | anaconda-8842f3f725af9dbfc41ce884da520f97a53d2a4f.tar.gz anaconda-8842f3f725af9dbfc41ce884da520f97a53d2a4f.tar.xz anaconda-8842f3f725af9dbfc41ce884da520f97a53d2a4f.zip |
land boot loader changes to use booty backend infrastructure and switch
over to new screens. tagged as before_bootloader_merge and
after_bootloader_merge appropriately
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -712,6 +712,7 @@ class FileSystemSet: def bootloaderChoices(self, diskSet): mntDict = {} + ret = {} for entry in self.entries: mntDict[entry.mountpoint] = entry.device @@ -724,13 +725,14 @@ class FileSystemSet: bootDev = mntDict['/'] if bootDev.getName() == "LoopbackDevice": - return None + return ret elif bootDev.getName() == "RAIDDevice": - return [ ( bootDev.device, "RAID Device" ) ] - - return [ (diskSet.driveList()[0], N_("Master Boot Record (MBR)") ), - (bootDev.device, N_("First sector of boot partition")) - ] + ret['boot'] = (bootDev.device, N_("RAID Device")) + return ret + + ret['boot'] = (bootDev.device, N_("First sector of boot partition")) + ret['mbr'] = (bootDev.device, N_("Master Boot Record (MBR)")) + return ret # set active partition on disks # if an active partition is set, leave it alone; if none set @@ -739,10 +741,8 @@ class FileSystemSet: choices = self.bootloaderChoices(diskset) if not choices: bootDev = None - elif len(choices) == 1: - bootDev = self.bootloaderChoices(diskset)[0][0] else: - bootDev = self.bootloaderChoices(diskset)[1][0] + bootDev = choices['boot'][0] # stupid itanium if iutil.getArch() == "ia64": |