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 -