From 1eb205603668d3f742c34e28a3043910c47ae3cb Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Wed, 15 Sep 2021 20:49:26 +0200 Subject: having networkmanager is useful --- airootfs/root/.loader | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'airootfs/root/.loader') diff --git a/airootfs/root/.loader b/airootfs/root/.loader index 2b50ba4..2daeab8 100755 --- a/airootfs/root/.loader +++ b/airootfs/root/.loader @@ -30,12 +30,14 @@ OLD="GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet\"" NEW="GRUB_CMDLINE_LINUX_DEFAULT=\"loglevel=3 quiet cryptdevice=UUID=$UUID:cryptroot root=/dev/mapper/cryptroot\"" sed -i "s|$OLD|$NEW|g" /etc/default/grub -grub-install "$1" if ! test -e "/sys/firmware/efi/efivars"; then - grub-mkconfig -o /boot/grub/grub.cfg + grub-install "$1" else - grub-mkconfig -o /boot/grub/grub.cfg --efi-directory=/boot/ + grub-install "$1" --efi-directory=/boot/ fi + +grub-mkconfig -o /boot/grub/grub.cfg + passwd rm /root/loader echo "good to go !" -- cgit v1.2.3