Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure GRUB #77

Open
boredsquirrel opened this issue Mar 8, 2023 · 4 comments
Open

configure GRUB #77

boredsquirrel opened this issue Mar 8, 2023 · 4 comments

Comments

@boredsquirrel
Copy link
Collaborator

This is critical. On OSTree you need to be able to switch back, but by default grub is set to skip the menu. This also breaks dual booting with another OS.

Also styling it nicer with this tool should be an option for a general modern experience

@boredsquirrel
Copy link
Collaborator Author

Disable autohide:

This is an intentional feature but may be unwanted. An option to run

sudo grub2-editenv - unset menu_auto_hide

will be useful

@boredsquirrel
Copy link
Collaborator Author

The grub styles run without errors if you replace the THEME_DIR="/usr/share/grub/themes" with something else.

git clone https://github.com/vinceliuice/grub2-themes.git
cd ~/grub2-themes

sed -i 's/THEME_DIR="/usr/share/grub/themes"/THEME_DIR="/var/usrlocal/grub/themes/d install.sh"

xdg-open README.md

You have to follow the README

@boredsquirrel
Copy link
Collaborator Author

sudo grub2-switch-to-blscfg

is supposed to remove double entries. In Fedora 38 there will be a fix too, so may not be needed

@boredsquirrel
Copy link
Collaborator Author

boredsquirrel commented Mar 14, 2023

Someone on Fedora Discussion had this in their post install to fix grub on EFI:

if [ -d /sys/firmware/efi ]; then
  grub2-switch-to-blscfg
  grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
else
  block_device=$(lsblk -spnlo name $(grub2-probe --target=device /boot/grub2) | tail -n1)
  grub2-install $block_device
  touch /boot/grub2/.grub2-blscfg-supported
  grub2-mkconfig -o /boot/grub2/grub.cfg
fi

if you want a nice grub style, this has to be ran afterwards. For some reason it also fixes the grub style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant