diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-12-14 14:51:56 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-12-14 15:56:43 -0500 |
commit | d618cb3f847b5fd7d358f64d8f6ff24aaff63576 (patch) | |
tree | effc34847ab41e30ede5dc4530ac989cc7ad0872 /cryptodev.py | |
parent | aff923cacd1d45b22ae232a195bb53ab50420505 (diff) | |
download | anaconda-d618cb3f847b5fd7d358f64d8f6ff24aaff63576.tar.gz anaconda-d618cb3f847b5fd7d358f64d8f6ff24aaff63576.tar.xz anaconda-d618cb3f847b5fd7d358f64d8f6ff24aaff63576.zip |
Add support for encryption via autopart.
This allows autopart (of LVM) to set up encrypted PVs to be used and adds
the UI for enabling that in graphical mode.
It's a little bit hacky as we rely on the fact request.encryption is set
and has a passphrase for this to work
Diffstat (limited to 'cryptodev.py')
-rw-r--r-- | cryptodev.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cryptodev.py b/cryptodev.py index 0b6967bd9..2b9fb7107 100644 --- a/cryptodev.py +++ b/cryptodev.py @@ -36,6 +36,8 @@ class LUKSDevice: def getScheme(self): """Returns the name of the encryption scheme used by the device.""" + if self.passphrase == "": + return None return self.scheme def setDevice(self, device): |