diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-07-16 23:04:28 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-07-16 23:04:28 +0000 |
commit | 7f1fca42ec581607fd57d708685c9702f4c8e59a (patch) | |
tree | 7b9cabe4d9c320dd3c26beaa2d5e1e040b846a3d /fsset.py | |
parent | 35d6aa6b71c6e1c0fe86d9c7d3ae821cafcee158 (diff) | |
download | anaconda-7f1fca42ec581607fd57d708685c9702f4c8e59a.tar.gz anaconda-7f1fca42ec581607fd57d708685c9702f4c8e59a.tar.xz anaconda-7f1fca42ec581607fd57d708685c9702f4c8e59a.zip |
now we shouldn't die setting things active if you're trying to use a raid /boot
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -581,7 +581,13 @@ class FileSystemSet: # if an active partition is set, leave it alone; if none set # set either our boot partition or the first partition on the drive active def setActive(self, diskset): - bootDev = self.bootloaderChoices(diskset)[1][0] + 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] for drive in diskset.disks.keys(): foundActive = 0 |