fixgrub.bash: comment everything, add warning on it being wrong

This commit is contained in:
Aminda Suomalainen 2023-12-20 10:38:26 +02:00
parent faf27b4f4a
commit fb9fea60c5
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -4,14 +4,15 @@
# meeting a strange system including graphical boot screen and not telling
# me what is going on. This is an ugly workaround.
set -x
#set -x
# This script is Fedora specific for now.
# This script is Fedora specific for now. AND COMPLETELY WRONG!
# READ https://fedoraproject.org/wiki/GRUB_2 !!!!!
# 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
fi
#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
set +x
#set +x