From e6ea09fa53e90014e72154499acc397479999f80 Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Thu, 15 Apr 2021 16:46:36 +0200 Subject: [PATCH] Update easy-arch.sh --- easy-arch.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index a97e28e..6b73e5f 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -138,16 +138,14 @@ cat > /mnt/etc/hosts <> /mnt/etc/default/grub - -# Adding keyfile to the initramfs to avoid double password. +echo -e "\n# Booting with BTRFS subvolume\nGRUB_BTRFS_OVERRIDE_BOOT_PARTITION_DETECTION=true" >> /mnt/etc/default/grub dd bs=512 count=4 if=/dev/random of=/mnt/root/cryptroot.keyfile iflag=fullblock &>/dev/null chmod 000 /mnt/root/cryptroot.keyfile &>/dev/null cryptsetup -v luksAddKey /dev/disk/by-partlabel/Cryptroot /mnt/root/cryptroot.keyfile