From 351ab221161055f1bc5945720089bf3c9260fbdb Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 17 Sep 2022 21:53:31 +0300 Subject: [PATCH] fixgrub.bash: only run when grub.cfg.rpmsave exists --- bash/fixgrub.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bash/fixgrub.bash b/bash/fixgrub.bash index d91aa68..507296a 100755 --- a/bash/fixgrub.bash +++ b/bash/fixgrub.bash @@ -6,8 +6,10 @@ set -x -# This script is Fedora specific. -if [ -f /boot/efi/EFI/fedora/grub.cfg ] +# This script is Fedora specific for now. + +# There is no reason to run if dnf hasn't moved the proper config aside. +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