diff options
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 !" |