If the device is reused for the installation, blivet uses the originalFormat object to setup the device. Thus we need to set the passphrase in both places.
(cherry-picked commit cb851ed7b5e2d6ca83904c4d8ffe44325a9a7230)
Signed-off-by: Vratislav Podzimek vpodzime@redhat.com --- pyanaconda/ui/gui/spokes/custom.py | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py index 592247b..fb4e92c 100644 --- a/pyanaconda/ui/gui/spokes/custom.py +++ b/pyanaconda/ui/gui/spokes/custom.py @@ -2585,6 +2585,9 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker): "<a href="">Click for details.</a>")) return
+ # set the passphrase also to the originalFormat of the device (a + # different object than '.format', but the same contents) + device.originalFormat.passphrase = passphrase log.info("unlocked %s, now going to populate devicetree...", device.name) with ui_storage_logger(): luks_dev = LUKSDevice(device.format.mapName,