[PATCH] Handle editing of LUKS partitions for which we have no key. (#502310)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 iw/partition_dialog_gui.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index d38aa4e..9002175 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -215,7 +215,10 @@ class PartitionEditor:
                 # preexisting partition
                 request = self.origrequest
                 if request.format.type == "luks":
-                    usedev = self.storage.devicetree.getChildren(request)[0]
+                    try:
+                        usedev = self.storage.devicetree.getChildren(request)[0]
+                    except IndexError:
+                        usedev = request
                 else:
                     usedev = request
 
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux