From 1d28f1bd29ea9ce40f16e13cacccbcda7661aab2 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Mon, 29 Apr 2019 20:27:35 -0700 Subject: [PATCH] install grub before outputting config file Otherwise `grub-mkconfig` will complain that `/boot/grub` does not exist. --- INSTALL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index ba6626f..b7c594b 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -122,8 +122,8 @@ Configure GRUB. # BIOS mode - set the UUID of the encrypted root device $ ROOTUUID=$(blkid /dev/sda1 | awk '{print $2}' | cut -d '"' -f2) $ sed -i "s/^GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX=\"cryptdevice=UUID="$ROOTUUID":lvm:allow-discards resume=\/dev\/mapper\/arch-swap\"/" /etc/default/grub - $ grub-mkconfig -o /boot/grub/grub.cfg $ grub-install /dev/sda + $ grub-mkconfig -o /boot/grub/grub.cfg $ chmod -R g-rwx,o-rwx /boot # UEFI mode - set the UUID of the encrypted root device