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