mirror of
https://github.com/tommytran732/Arch-Setup-Script
synced 2024-11-22 01:21:34 -05:00
Use systemd hook
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
3e74eab90d
commit
eefffc2d8b
@ -325,7 +325,7 @@ echo "KEYMAP=$kblayout" > /mnt/etc/vconsole.conf
|
|||||||
## Configure /etc/mkinitcpio.conf
|
## Configure /etc/mkinitcpio.conf
|
||||||
output 'Configuring /etc/mkinitcpio for ZSTD compression and LUKS hook.'
|
output '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/^HOOKS=.*/HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems fsck encrypt)/g' /mnt/etc/mkinitcpio.conf
|
sed -i 's/^HOOKS=.*/HOOKS=(systemd autodetect microcode modconf kms keyboard sd-vconsole block sd-encrypt filesystems)/g' /mnt/etc/mkinitcpio.conf
|
||||||
|
|
||||||
## Enable LUKS in GRUB and setting the UUID of the LUKS container.
|
## Enable LUKS in GRUB and setting the UUID of the LUKS container.
|
||||||
UUID=$(blkid $cryptroot | cut -f2 -d'"')
|
UUID=$(blkid $cryptroot | cut -f2 -d'"')
|
||||||
|
Loading…
Reference in New Issue
Block a user