archtoolbox/grub-restore.sh

5 lines
186 B
Bash

#!/bin/bash
echo "Reinstalling GRUB"
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
echo "GRUB has been reinstalled"