From 46a7838825b45c85ad41fcab439958f136517ad5 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 10 Sep 2022 23:09:44 +0300 Subject: [PATCH] bash: add fixgrub.bash to workaround Sedric grub overwrite --- bash/fixgrub.bash | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bash/fixgrub.bash diff --git a/bash/fixgrub.bash b/bash/fixgrub.bash new file mode 100755 index 0000000..18fc05a --- /dev/null +++ b/bash/fixgrub.bash @@ -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