[anaconda:rhel7/master 8/8] Make sure LUKS devices can say they have a key (#1060255)
mulhern
amulhern at redhat.com
Mon Feb 10 15:28:40 UTC 2014
Resolves: rhbz#1060255
If we're prompting for a passphrase then we should set up the LUKS devices
with something so that they don't fail the sanity check.
Signed-off-by: mulhern <amulhern at redhat.com>
---
pyanaconda/ui/gui/spokes/storage.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 2868c0d..bdd48ef 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -728,6 +728,12 @@ class StorageSpoke(NormalSpoke, StorageChecker):
return False
self.passphrase = dialog.passphrase
+
+ for device in self.storage.devices:
+ if device.format.type == "luks" and not device.format.exists:
+ if not device.format.hasKey:
+ device.format.passphrase = self.passphrase
+
return True
def on_back_clicked(self, button):
--
1.8.3.1
More information about the anaconda-patches
mailing list