diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2021-09-15 20:49:26 +0200 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2021-09-15 20:49:26 +0200 |
commit | 1eb205603668d3f742c34e28a3043910c47ae3cb (patch) | |
tree | 897029f63e5bb728b295ac874c04604920740f36 /airootfs/root/.loader | |
parent | fff917132ec4ddb5ef8f34ac790d9959963dd74a (diff) |
having networkmanager is useful
Diffstat (limited to 'airootfs/root/.loader')
-rwxr-xr-x | airootfs/root/.loader | 8 |
1 files changed, 5 insertions, 3 deletions
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 !" |