scripts/bash/fixgrub.bash

18 lines
500 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# On Sedric Fedora keeps overwriting my grub modifications so I keep
# meeting a strange system including graphical boot screen and not telling
# me what is going on. This is an ugly workaround.
set -x
# This script is Fedora specific for now.
# There is no reason to run if dnf hasn't moved the proper config aside.
2023-05-18 11:25:47 +02:00
if [ -f /boot/efi/EFI/fedora/grub.cfg.rpmsave ]; then
2023-04-06 11:03:10 +02:00
rm -f /boot/efi/EFI/fedora/grub.cfg.rpmsave
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
fi
set +x