[PATCH 1/5] Fix handling of LUKS when using onpart. (#840890)

David Lehman dlehman at redhat.com
Thu Jun 5 17:45:54 UTC 2014


---
 kickstart.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index df24c04..51c5bc7 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -985,7 +985,7 @@ class PartitionData(commands.partition.RHEL6_PartData):
 
             cert = getEscrowCertificate(anaconda, self.escrowcert)
             if self.onPart:
-                luksformat = format
+                luksformat = kwargs["format"]
                 device.format = getFormat("luks", passphrase=self.passphrase, device=device.path,
                                           cipher=self.cipher,
                                           escrow_cert=cert,
@@ -1136,7 +1136,7 @@ class RaidData(commands.raid.RHEL6_RaidData):
 
             cert = getEscrowCertificate(anaconda, self.escrowcert)
             if self.preexist:
-                luksformat = format
+                luksformat = kwargs["format"]
                 device.format = getFormat("luks", passphrase=self.passphrase, device=device.path,
                                           cipher=self.cipher,
                                           escrow_cert=cert,
-- 
1.9.0



More information about the anaconda-patches mailing list