1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-09 04:01:33 -05:00

Switch back to LUKS1

Grub does not nicely work with LUKS2 Argon yet, and grub-install is broken with LUKS2
This commit is contained in:
TommyTran732 2021-06-21 23:46:40 -04:00 committed by tommytran732
parent 19702d39ea
commit f6f6b7f3a3
No known key found for this signature in database
GPG Key ID: 060B29EB996BD9F2

View File

@ -77,7 +77,7 @@ mkfs.fat -F 32 $ESP &>/dev/null
# Creating a LUKS Container for the root partition.
echo "Creating LUKS Container for the root partition."
cryptsetup luksFormat $cryptroot
cryptsetup luksFormat --type luks1 $cryptroot
echo "Opening the newly created LUKS Container."
cryptsetup open $cryptroot cryptroot
BTRFS="/dev/mapper/cryptroot"
@ -270,7 +270,7 @@ arch-chroot /mnt /bin/bash -e <<EOF
# Installing GRUB.
echo "Installing GRUB on /boot."
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --modules="normal test efi_gop efi_uga search echo linux all_video gfxmenu gfxterm_background gfxterm_menu gfxterm loadenv cryptodisk luks2 tpm" --disable-shim-lock &>/dev/null
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --modules="normal test efi_gop efi_uga search echo linux all_video gfxmenu gfxterm_background gfxterm_menu gfxterm loadenv configfile" --disable-shim-lock &>/dev/null
# Creating grub config file.
echo "Creating GRUB config file."