summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorbfox <bfox>2001-08-01 16:29:52 +0000
committerbfox <bfox>2001-08-01 16:29:52 +0000
commit37b8e297ba9085384eef7c0611819280ff8352e8 (patch)
tree9b186f129caca07a39fb5405f8da13e7952a9f94 /iw
parent98d9f6cf61e60e992127217b66427082bc94ea81 (diff)
downloadanaconda-37b8e297ba9085384eef7c0611819280ff8352e8.tar.gz
anaconda-37b8e297ba9085384eef7c0611819280ff8352e8.tar.xz
anaconda-37b8e297ba9085384eef7c0611819280ff8352e8.zip
prompt the user if they click the RAID button and less than two software RAID partitions currently exist
Diffstat (limited to 'iw')
-rw-r--r--iw/partition_gui.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 3bf89efb0..30d7ee1d1 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -1285,6 +1285,14 @@ class PartitionWindow(InstallWindow):
self.partitions,
raidrequest)
+ # if no raid partitions exist, raise an error message and return
+ if len(availraidparts) < 2:
+ dlg = GnomeMessageBox(_("At least two software RAID partitions are needed."),
+ MESSAGE_BOX_ERROR,STOCK_BUTTON_OK)
+ dlg.show()
+ dlg.run_and_close
+ return
+
# Mount Point entry
maintable.attach(createAlignedLabel(_("Mount Point:")),
0, 1, row, row + 1)