mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-06-07 23:57:21 +02:00
rm fixgrub.bash
This commit is contained in:
parent
1f00d17de7
commit
6506f34d81
@ -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
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user