fixgrub.bash: only run when grub.cfg.rpmsave exists
This commit is contained in:
parent
c2ae326994
commit
351ab22116
|
@ -6,8 +6,10 @@
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# This script is Fedora specific.
|
# This script is Fedora specific for now.
|
||||||
if [ -f /boot/efi/EFI/fedora/grub.cfg ]
|
|
||||||
|
# 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
|
then
|
||||||
rm -f /boot/efi/EFI/fedora/grub.cfg.rpmsave
|
rm -f /boot/efi/EFI/fedora/grub.cfg.rpmsave
|
||||||
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
||||||
|
|
Loading…
Reference in New Issue