#!/bin/sh echo "Updating grub config." grub-mkconfig -o /boot/grub/grub.cfg echo "Reinstalling grub." grub-install --removable #grub-install --target=x86_64-efi --efi-directory=esp --bootloader-id=GRUB #grub-install --target=i386-pc /dev/sdX