From 8fbdd380c8d75a4fcd67918d55b82b008690ebb3 Mon Sep 17 00:00:00 2001 From: teldra Date: Fri, 12 Mar 2021 18:37:09 +0100 Subject: [PATCH] restructure --- modules/50-bootloader/install | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/50-bootloader/install b/modules/50-bootloader/install index fe87487..cdbdc2a 100644 --- a/modules/50-bootloader/install +++ b/modules/50-bootloader/install @@ -6,9 +6,8 @@ diskid="${cfg[diskid]//-/_}" if [[ ! "${cfg[fde_key_store]}" == "none" ]] && [[ ! "${cfg[fde_key_store]}" == "once" ]]; then if ! grep -q "GRUB_ENABLE_CRYPTODISK" "${dest}"/etc/default/grub; then echo "GRUB_ENABLE_CRYPTODISK=y" >> "${dest}"/etc/default/grub + fi - - if [[ ! -f "${dest}"/boot/volume.key ]] && [[ ! "${cfg[fde_key_store]}" == "twice" ]]; then dd bs=1 count=64 if=/dev/urandom of="${dest}"/boot/volume.key echo -n "${cfg[diskpw]}" | cryptsetup luksAddKey "${cfg[diskname]}${cfg[target_part]}" "${dest}"/boot/volume.key -d -