summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-16 23:04:28 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-16 23:04:28 +0000
commit7f1fca42ec581607fd57d708685c9702f4c8e59a (patch)
tree7b9cabe4d9c320dd3c26beaa2d5e1e040b846a3d
parent35d6aa6b71c6e1c0fe86d9c7d3ae821cafcee158 (diff)
downloadanaconda-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
-rw-r--r--fsset.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index ded060f8c..aa250d503 100644
--- a/fsset.py
+++ b/fsset.py
@@ -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