[PATCH 1/2] Fix handling of skipped LUKS devices the second time through. (#727814)

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

 



---
 pyanaconda/storage/devicetree.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 5ecdc63..2d7f129 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -197,7 +197,7 @@ class DeviceTree(object):
         self.__luksDevs = {}
         if luksDict and isinstance(luksDict, dict):
             self.__luksDevs = luksDict
-            self.__passphrases.extend(luksDict.values())
+            self.__passphrases.extend([p for p in luksDict.values() if p])
 
         self._ignoredDisks = []
         for disk in getattr(conf, "ignoredDisks", []):
@@ -1162,6 +1162,9 @@ class DeviceTree(object):
             passphrase = self.__luksDevs.get(device.format.uuid)
             if passphrase:
                 device.format.passphrase = passphrase
+            elif device.format.uuid in self.__luksDevs:
+                log.info("skipping previously-skipped luks device %s"
+                            % device.name)
             elif self._cleanup:
                 # if we're only building the devicetree so that we can
                 # tear down all of the devices we don't need a passphrase
-- 
1.7.3.4

_______________________________________________
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