rm fixgrub.bash

This commit is contained in:
Aminda Suomalainen 2025-06-06 14:03:04 +03:00
parent 1f00d17de7
commit 6506f34d81
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 0 additions and 38 deletions

View File

@ -151,11 +151,6 @@ if hash checkservices 2> /dev/null; then
sleep 5
fi
# Sedric workaround, located in this repo. I trust /root/
if [ -f /root/fixgrub.bash ]; then
. /root/fixgrub.bash
fi
if [[ -f /usr/bin/rpm-ostree && -d /sysroot/ostree ]]; then
rpm-ostree upgrade --check
sleep 5

View File

@ -1,33 +0,0 @@
#!/usr/bin/env bash
# Theoretically this should never run
# READ https://fedoraproject.org/wiki/GRUB_2 !!!!!
set -x
# Fedora < 34
#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
# There is no reason to run if dnf hasn't moved the proper config aside.
if [ -f /etc/grub2.cfg.rpmsave ]; then
rm -f /etc/grub2.cfg.rpmsave
grub2-mkconfig -o /etc/grub2.cfg
fi
# There is no reason to run if dnf hasn't moved the proper config aside.
if [ -f /etc/grub2-efi.cfg.rpmsave ]; then
rm -f /etc/grub2-efi.cfg.rpmsave
grub2-mkconfig -o /etc/grub2-efi.cfg
fi
# There is no reason to run if dnf hasn't moved the proper config aside.
# Legacy boot method for grub update.
# if [ -f /boot/grub2/grub.cfg.rpmsave ]; then
# rm -f /boot/grub2/grub.cfg.rpmsave
# grub2-mkconfig -o /boot/grub2/grub.cfg
# fi
set +x