From 8126c5a2c5c25f38fccd022f54f0e76d42b3b688 Mon Sep 17 00:00:00 2001 From: TommyTran732 <57488583+tommytran732@users.noreply.github.com> Date: Wed, 14 Apr 2021 19:40:59 -0400 Subject: [PATCH] Add the key to mkinitcpio's config --- easy-arch.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/easy-arch.sh b/easy-arch.sh index 5b8ac5a..a97e28e 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -152,6 +152,7 @@ dd bs=512 count=4 if=/dev/random of=/mnt/root/cryptroot.keyfile iflag=fullblock chmod 000 /mnt/root/cryptroot.keyfile &>/dev/null cryptsetup -v luksAddKey /dev/disk/by-partlabel/Cryptroot /mnt/root/cryptroot.keyfile sed -i -e "s,quiet,quiet cryptdevice=UUID=$UUID:cryptroot root=$BTRFS cryptkey=rootfs:/root/cryptroot.keyfile,g" /mnt/etc/default/grub +sed -i 's#FILES=()#FILES=(/root/cryptroot.keyfile)#g' /mnt/etc/mkinitcpio.conf # Configuring the system. arch-chroot /mnt /bin/bash -e <