2022-09-10 22:09:44 +02:00
|
|
|
#!/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
|
2022-09-11 13:12:53 +02:00
|
|
|
|
2022-09-17 20:53:31 +02:00
|
|
|
# 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
|
2022-09-11 13:12:53 +02:00
|
|
|
fi
|
|
|
|
|
2022-09-10 22:09:44 +02:00
|
|
|
set +x
|