From c114e9f808d1379989b28a3e9405208aaa81b655 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Wed, 21 Jul 2021 18:07:10 -0400 Subject: [PATCH] use up to date luks settings --- fai/config/hooks/partition.DEFAULT | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fai/config/hooks/partition.DEFAULT b/fai/config/hooks/partition.DEFAULT index a058acc..afbca5a 100755 --- a/fai/config/hooks/partition.DEFAULT +++ b/fai/config/hooks/partition.DEFAULT @@ -186,8 +186,7 @@ luks-setup() { # cryptsetup luksAddKey --pbkdf pbkdf2 # then remove the new format keys with cryptsetup luksRemoveKey # then cryptsetup convert DEV --type luks1, then readd old keys and remove temp. - yes YES | cryptsetup luksFormat $luksdev $luks_file \ - --type luks1 -c aes-cbc-essiv:sha256 -s 256 || [[ $? == 141 ]] + yes YES | cryptsetup luksFormat $luksdev $luks_file || [[ $? == 141 ]] yes "$lukspw" | \ cryptsetup luksAddKey --key-file $luks_file \ $luksdev || [[ $? == 141 ]] -- 2.30.2