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.
|
|
|
|
|
2023-12-20 09:38:26 +01:00
|
|
|
#set -x
|
2022-09-11 13:12:53 +02:00
|
|
|
|
2023-12-20 09:38:26 +01:00
|
|
|
# This script is Fedora specific for now. AND COMPLETELY WRONG!
|
|
|
|
# READ https://fedoraproject.org/wiki/GRUB_2 !!!!!
|
2022-09-17 20:53:31 +02:00
|
|
|
|
|
|
|
# There is no reason to run if dnf hasn't moved the proper config aside.
|
2023-12-20 09:38:26 +01:00
|
|
|
#if [ -f /boot/efi/EFI/fedora/grub.cfg.rpmsave ]; then
|
|
|
|
# rm -f /boot/efi/EFI/fedora/grub.cfg.rpmsave
|
|
|
|
# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
|
|
|
#fi
|
2022-09-11 13:12:53 +02:00
|
|
|
|
2023-12-20 09:38:26 +01:00
|
|
|
#set +x
|