Remove grub from fedora 41 display

just installed fedora 41 and i dont really need to see grub but it wait for 2 sec and show choose option which is not necessary at all how to disable that thanks.

GRUB on Fedora is hidden by default.
So if you still see it there is a reason. For example, do you have a dual boot system?

yes i havedual boot but windows entry is not present in my grub but it is ok as if i need windows i can open it with F12 key and switch back and forth so hiding grub make more sense to me

sudo grub2-editenv - set menu_auto_hide=1 should be the magic command to hide the menu by default.

1 Like

You can see the options set in grubenv with the command sudo grub2-editenv - list. If the option noted by Villy above is already there then this is a result of dual booting with windows which normally overrides the default hidden menu and displays it.

Quite possibly the reason you cannot see the windows entry in grub may be related to recent update with windows 11 where bitlocker is enabled by default (and without asking user permission) so no windows partitions may be accessed (or even seen) from fedora.

I know of no way to hide the menu in the case of dual booting like this, but it seems relatively easy to restore windows to the grub menu. Simply boot to windows and disable bitlocker, then fedora can access the windows partitions again.

You can set GRUB_DISABLE_OS_PROBER=true in /etc/default/grub and when running grub2-config it won’t look for windows or other bootable systems.

1 Like

there is no grub in etc/default
only useradd

If you do not have the file /etc/default/grub it would seem that you are not using grub to boot.

# dnf provides /etc/default/grub
Updating and loading repositories:
Repositories loaded.
grub2-tools-1:2.12-15.fc41.x86_64 : Support tools for GRUB.
Repo         : @System
Matched From : 
Filename     : /etc/default/grub

grub2-tools-1:2.12-10.fc41.x86_64 : Support tools for GRUB.
Repo         : fedora
Matched From : 
Filename     : /etc/default/grub

grub2-tools-1:2.12-15.fc41.x86_64 : Support tools for GRUB.
Repo         : updates
Matched From : 
Filename     : /etc/default/grub

I am using ostree system silverblue

That changes everything. I have no idea how this works in Silverblue other than that it is totally different from a normal Workspace version.

2 Likes

You can try:

echo 'set timeout=0' | sudo tee -a /boot/grub2/user.cfg

Before running an update, make sure the specific key shortcut to reveal GRUB works, so that you’re still able to log into a previous deployment, should something go wrong with an update.

1 Like

user@fedora:~$ echo ‘set timeout=0’ | sudo tee -a /boot/grub2/user.cfg
[sudo] password for user:
set timeout=0
user@fedora:~$

The output is correct. Did it have the desired effect?

yes but it shows grub menu like booting into fedora-41-ostree … but i dont want this to show how to disable thi one too

That question was also posed here, with no resolution though.

Similar to:

Likely due to:

1 Like

Can you suggest me how can i hide grub

Any help?

You could try the following in /boot/grub2/user.cfg

set timeout=0
set timeout_style="hidden"
set disable_os_prober="true"
1 Like