mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-21 05:47:20 +02:00
Compare commits
No commits in common. "8c9460c0fd0782e3636d7211ab49fe6e7880fc64" and "faf27b4f4a4841dcbddc6689df753487e5c11dff" have entirely different histories.
8c9460c0fd
...
faf27b4f4a
@ -1,33 +1,17 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Theoretically this should never run
|
# On Sedric Fedora keeps overwriting my grub modifications so I keep
|
||||||
# READ https://fedoraproject.org/wiki/GRUB_2 !!!!!
|
# 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
|
||||||
|
|
||||||
# Fedora < 34
|
# This script is Fedora specific for now.
|
||||||
#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.
|
# There is no reason to run if dnf hasn't moved the proper config aside.
|
||||||
if [ -f /etc/grub2.cfg.rpmsave ]; then
|
if [ -f /boot/efi/EFI/fedora/grub.cfg.rpmsave ]; then
|
||||||
rm -f /etc/grub2.cfg.rpmsave
|
rm -f /boot/efi/EFI/fedora/grub.cfg.rpmsave
|
||||||
grub2-mkconfig -o /etc/grub2.cfg
|
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
||||||
fi
|
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
|
set +x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user