summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2008-10-13 12:34:33 -0500
committerDavid Lehman <dlehman@redhat.com>2008-10-13 12:36:43 -0500
commit34c88b9fef1437f20342cf37acad3966c609d025 (patch)
tree29ab27f1cc3f14c0e301b2974211023964dbc394
parent821e3df8d8699180a3fe139e021a7c179b04846a (diff)
downloadanaconda-34c88b9fef1437f20342cf37acad3966c609d025.tar.gz
anaconda-34c88b9fef1437f20342cf37acad3966c609d025.tar.xz
anaconda-34c88b9fef1437f20342cf37acad3966c609d025.zip
Prevent creation of encrypted swraid partitions. (#456283)
Previous fix put the pieces in place, and prevented encryption of pre-existing swraid partitions, but did not pass in the checkbutton when creating new partitions. This fixes it.
-rw-r--r--iw/partition_dialog_gui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index debaec1e3..6e7b6cf60 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -316,11 +316,12 @@ class PartitionEditor:
if self.origrequest.type == REQUEST_NEW:
lbl = createAlignedLabel(_("File System _Type:"))
maintable.attach(lbl, 0, 1, row, row + 1)
-
+ self.lukscb = gtk.CheckButton(_("_Encrypt"))
self.newfstypeCombo = createFSTypeMenu(self.origrequest.fstype,
fstypechangeCB,
self.mountCombo,
- availablefstypes = restrictfs)
+ availablefstypes = restrictfs,
+ lukscb = self.lukscb)
lbl.set_mnemonic_widget(self.newfstypeCombo)
maintable.attach(self.newfstypeCombo, 1, 2, row, row + 1)
else:
@@ -485,7 +486,6 @@ class PartitionEditor:
maintable.attach(self.primonlycheckbutton, 0, 2, row, row+1)
row = row + 1
- self.lukscb = gtk.CheckButton(_("_Encrypt"))
self.lukscb.set_data("formatstate", 1)
if self.origrequest.encryption: