From 8bcaf5dae401f0b33b239938bab8a5a1ad7c96a4 Mon Sep 17 00:00:00 2001 From: maride Date: Sat, 5 Aug 2017 23:58:37 +0200 Subject: [PATCH] Set up grub config and mkinitcpio for encryption --- steps/50-configure.step | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/steps/50-configure.step b/steps/50-configure.step index c89f8d7..7df8783 100755 --- a/steps/50-configure.step +++ b/steps/50-configure.step @@ -21,3 +21,10 @@ echo "~> Configuring 'grub'" arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=Arch_GRUB echo "GRUB_CMDLINE_LINUX='cryptdevice=UUID=`blkid -o value /dev/sda2 | head -n 1`'" > /mnt/etc/default/grub arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg + +echo "~> Patching mkinitcpio.conf for encryption magic" +arch-chroot /mnt sed -i "s/^HOOKS/#HOOKS/g" /etc/mkinitcpio.conf +echo "HOOKS=\"base udev autodetect modconf block keyboard keymap encrypt filesystems fsck\"" >> /mnt/etc/mkinitcpio.conf + +echo "~> ... and recompile the kernel" +arch-chroot /mnt mkinitcpio -p linux