1
0
mirror of https://github.com/tommytran732/Arch-Setup-Script synced 2024-11-22 17:41:33 -05:00

Compare commits

...

2 Commits

Author SHA1 Message Date
funk-on-code
96bd5a0dec
Merge 44a3d11b84 into f9acdf97b8 2024-05-11 01:38:11 -04:00
funk-on-code
f9acdf97b8
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>
2024-05-05 06:30:12 -07:00

View File

@ -233,7 +233,7 @@ echo "KEYMAP=$kblayout" > /mnt/etc/vconsole.conf
# Configuring /etc/mkinitcpio.conf # Configuring /etc/mkinitcpio.conf
echo "Configuring /etc/mkinitcpio for ZSTD compression and LUKS hook." 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,#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. # Enabling LUKS in GRUB and setting the UUID of the LUKS container.
UUID=$(blkid $cryptroot | cut -f2 -d'"') UUID=$(blkid $cryptroot | cut -f2 -d'"')