How to preseed encryption cipher?

Asked by StackCoder

I'm trying to preseed Ubuntu 12.04 alternate with LVM on an encrypted partition. But I won't use the default cipher AES.

With following code partman will use cryptsetup always with AES:

 d-i partman-auto/method string crypto
 # -or-
 partman-crypto partman-crypto/cipher select serpent
 partman-crypto partman-crypto/cipher seen false
 # -or-
 partman-crypto partman-crypto/text/cryptdev_description CIPHER serpent
 partman-crypto partman-crypto/text/cryptdev_description seen false
 # -or-
 d-i partman-crypto/cipher select serpent
 d-i partman-crypto/cipher seen false
 # -or-
 d-i partman-crypto/text/cryptdev_description CIPHER serpent
 d-i partman-crypto/text/cryptdev_description seen false

How it's possible to preseed encryption cipher? Any comments are welcome...

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu partman-auto-crypto Edit question
Assignee:
No assignee Edit question
Solved by:
StackCoder
Solved:
Last query:
Last reply:
Revision history for this message
StackCoder (stackcoder) said :
#1

A workaround would be changing cryptobase.sh with early_command: (Thanks to Colin Watson)

d-i partman/early_command string sed -i '/echo aes > \$part\/cipher/s/aes/serpent/' /lib/partman/lib/crypto-base.sh