diff options
author | Martin Sivak <msivak@redhat.com> | 2009-04-17 10:35:19 +0200 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2009-04-17 10:36:28 +0200 |
commit | 5cde938a6fd0c0691377f2bef90bf17f0d3f9bdc (patch) | |
tree | b1b9b8e6da1c981b0765b5a8f1c182172b4796d0 /storage/__init__.py | |
parent | f4ef688844cf1f0bd5fae8e8ee3f8f2fb0d9fe6e (diff) | |
download | anaconda-5cde938a6fd0c0691377f2bef90bf17f0d3f9bdc.tar.gz anaconda-5cde938a6fd0c0691377f2bef90bf17f0d3f9bdc.tar.xz anaconda-5cde938a6fd0c0691377f2bef90bf17f0d3f9bdc.zip |
[PATCH] Possible fix for some encryption related bugs during the Custom Layout editation (#495848)
Diffstat (limited to 'storage/__init__.py')
-rw-r--r-- | storage/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/storage/__init__.py b/storage/__init__.py index d6b73303a..e5dba78a9 100644 --- a/storage/__init__.py +++ b/storage/__init__.py @@ -516,6 +516,13 @@ class Storage(object): else: return _("This device is part of a LVM volume " "group.") + elif device.format.type == "luks": + try: + luksdev = self.devicetree.getChildren(device)[0] + except IndexError: + pass + else: + return self.deviceImmutable(luksdev) elif isinstance(device, PartitionDevice) and device.isExtended: reasons = {} for dep in self.deviceDeps(device): |