From 7f43546f853e4ff6e14678a4c6d69cd9fc06c56c Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sun, 22 Jan 2023 21:22:02 +0100 Subject: uuid didn't come up in chroot, fix vars from -e, new mkinitcpio hooks --- airootfs/root/.loader | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'airootfs/root/.loader') diff --git a/airootfs/root/.loader b/airootfs/root/.loader index 763bae2..c396aa0 100755 --- a/airootfs/root/.loader +++ b/airootfs/root/.loader @@ -20,14 +20,13 @@ echo "127.0.0.1 localhost" > /etc/hosts echo "::1 localhost" >> /etc/hosts echo "127.0.1.1 $2.lan $2" >> /etc/hosts -OLD="HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)" -NEW="HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt filesystems fsck)" +OLD="HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block filesystems fsck)" +NEW="HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block encrypt filesystems fsck)" sed -i "s|$OLD|$NEW|g" /etc/mkinitcpio.conf mkinitcpio -P -UUID=$(lsblk --output UUID,PATH | grep "$3" | cut -f 1 -d ' ') OLD="GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet\"" -NEW="GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet cryptdevice=UUID=$UUID:cryptroot root=/dev/mapper/cryptroot\"" +NEW="GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet cryptdevice=UUID=$3:cryptroot root=/dev/mapper/cryptroot\"" sed -i "s|$OLD|$NEW|g" /etc/default/grub if ! test -e "/sys/firmware/efi/efivars"; then -- cgit v1.2.3