From 8943eeec64d9f985f747af1bba992064e0239d8e Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Mon, 29 Apr 2019 20:29:54 -0700 Subject: [PATCH] mkinitcpio vars should be arrays, not strings --- INSTALL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index b7c594b..6119d7b 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -97,7 +97,7 @@ Change root into the base install and perform [base configuration tasks][12]. Set your mkinitcpio encrypt/lvm2 hooks and rebuild. - $ sed -i 's/^HOOKS=.*/HOOKS="base udev autodetect modconf block keyboard encrypt lvm2 resume filesystems fsck"/' /etc/mkinitcpio.conf + $ sed -i 's/^HOOKS=.*/HOOKS=(base udev autodetect modconf block keyboard encrypt lvm2 resume filesystems fsck)/' /etc/mkinitcpio.conf $ mkinitcpio -p linux (BIOS mode) Add a keyfile to decrypt the root volume and properly set the hooks. @@ -105,7 +105,7 @@ Set your mkinitcpio encrypt/lvm2 hooks and rebuild. $ dd bs=512 count=8 if=/dev/urandom of=/crypto_keyfile.bin $ cryptsetup luksAddKey /dev/sda1 /crypto_keyfile.bin $ chmod 000 /crypto_keyfile.bin - $ sed -i 's/^FILES=.*/FILES="\/crypto_keyfile.bin"/' /etc/mkinitcpio.conf + $ sed -i 's/^FILES=.*/FILES=(\/crypto_keyfile.bin)/' /etc/mkinitcpio.conf $ mkinitcpio -p linux (UEFI mode) Add a keyfile to decrypt and mount the boot volume during startup.