bash: add fixgrub.bash to workaround Sedric grub overwrite

This commit is contained in:
Aminda Suomalainen 2022-09-10 23:09:44 +03:00
parent d7cb8f093e
commit 46a7838825
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 12 additions and 0 deletions

12
bash/fixgrub.bash Executable file
View File

@ -0,0 +1,12 @@
#!/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
# TODO: If this is to become more sophisciated and check for Fedora
# detect based on /boot/efi/EFI/fedora/grub.cfg, not rpmsave?
rm -f /boot/efi/EFI/fedora/grub.cfg.rpmsave
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
set +x