From f9acdf97b849a14a3f49e8d3f278258d4147952f Mon Sep 17 00:00:00 2001 From: funk-on-code <113871227+funk-on-code@users.noreply.github.com> Date: Sun, 5 May 2024 23:30:12 +1000 Subject: [PATCH] Update mkinitcpio hooks, enables systems to boot. (#29) Fixes #26 mkinitcpio has had several changes since 2023, after much trial-and-error, rewriting the entire line is a more robust way of fixing this problem. Signed-off-by: funk-on-code <113871227+funk-on-code@users.noreply.github.com> --- server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.sh b/server.sh index dd29fe0..8ebe9cf 100644 --- a/server.sh +++ b/server.sh @@ -233,7 +233,7 @@ echo "KEYMAP=$kblayout" > /mnt/etc/vconsole.conf # Configuring /etc/mkinitcpio.conf echo "Configuring /etc/mkinitcpio for ZSTD compression and LUKS hook." sed -i 's,#COMPRESSION="zstd",COMPRESSION="zstd",g' /mnt/etc/mkinitcpio.conf -sed -i 's,modconf block filesystems keyboard,keyboard modconf block encrypt filesystems,g' /mnt/etc/mkinitcpio.conf +sed -i 's,HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems fsck),HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block encrypt filesystems fsck),g' /mnt/etc/mkinitcpio.conf # Enabling LUKS in GRUB and setting the UUID of the LUKS container. UUID=$(blkid $cryptroot | cut -f2 -d'"')