[PATCH 1/3] Add support for specifying encryption cipher mode via kickstart.

David Lehman dlehman at redhat.com
Fri Oct 12 19:58:08 UTC 2012


(cherry picked from commit 8351c72e533237591e9f0c461ed5bcd9ff3eecdd)

Related: rhbz#838736
---
 kickstart.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index bac6ab0..02448cb 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -572,6 +572,7 @@ class LogVolData(commands.logvol.RHEL6_LogVolData):
             if self.preexist:
                 luksformat = format
                 device.format = getFormat("luks", passphrase=self.passphrase, device=device.path,
+                                          cipher=self.cipher,
                                           escrow_cert=cert,
                                           add_backup_passphrase=self.backuppassphrase)
                 luksdev = LUKSDevice("luks%d" % storage.nextID,
@@ -580,6 +581,7 @@ class LogVolData(commands.logvol.RHEL6_LogVolData):
             else:
                 luksformat = request.format
                 request.format = getFormat("luks", passphrase=self.passphrase,
+                                           cipher=self.cipher,
                                            escrow_cert=cert,
                                            add_backup_passphrase=self.backuppassphrase)
                 luksdev = LUKSDevice("luks%d" % storage.nextID,
@@ -900,6 +902,7 @@ class PartitionData(commands.partition.RHEL6_PartData):
             if self.onPart:
                 luksformat = format
                 device.format = getFormat("luks", passphrase=self.passphrase, device=device.path,
+                                          cipher=self.cipher,
                                           escrow_cert=cert,
                                           add_backup_passphrase=self.backuppassphrase)
                 luksdev = LUKSDevice("luks%d" % storage.nextID,
@@ -908,6 +911,7 @@ class PartitionData(commands.partition.RHEL6_PartData):
             else:
                 luksformat = request.format
                 request.format = getFormat("luks", passphrase=self.passphrase,
+                                           cipher=self.cipher,
                                            escrow_cert=cert,
                                            add_backup_passphrase=self.backuppassphrase)
                 luksdev = LUKSDevice("luks%d" % storage.nextID,
@@ -1049,6 +1053,7 @@ class RaidData(commands.raid.F12_RaidData):
             if self.preexist:
                 luksformat = format
                 device.format = getFormat("luks", passphrase=self.passphrase, device=device.path,
+                                          cipher=self.cipher,
                                           escrow_cert=cert,
                                           add_backup_passphrase=self.backuppassphrase)
                 luksdev = LUKSDevice("luks%d" % storage.nextID,
@@ -1057,6 +1062,7 @@ class RaidData(commands.raid.F12_RaidData):
             else:
                 luksformat = request.format
                 request.format = getFormat("luks", passphrase=self.passphrase,
+                                           cipher=self.cipher,
                                            escrow_cert=cert,
                                            add_backup_passphrase=self.backuppassphrase)
                 luksdev = LUKSDevice("luks%d" % storage.nextID,
-- 
1.7.7.6



More information about the anaconda-patches mailing list