mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-21 09:01:34 -05:00
Switch to LUKS2
GRUB 2.06 added support for LUKS2, so I am also adding it here.
This commit is contained in:
parent
9ea825dc72
commit
7dff5fb6ac
@ -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 --type luks1 luksFormat $cryptroot
|
||||
cryptsetup luksFormat $cryptroot
|
||||
echo "Opening the newly created LUKS Container."
|
||||
cryptsetup open $cryptroot cryptroot
|
||||
BTRFS="/dev/mapper/cryptroot"
|
||||
@ -267,7 +267,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 &>/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 png jpeg part_msdos loadenv luks2" --disable-shim-lock &>/dev/null
|
||||
#sed -i 's#"rootflags=subvol=${rootsubvol} ##g' /etc/grub.d/10_linux
|
||||
#sed -i 's#"rootflags=subvol=${rootsubvol} ##g' /etc/grub.d/20_linux_xen
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user