You are not logged in.

#1 2024-03-28 03:34:25

0x716
Member
Registered: 2024-03-28
Posts: 7

Disabling GRUB menu unless I hold a key

I was using just arch on my laptop for a while, until I needed to install fusion360. So, I installed windows for a dual boot environment. I managed to configure grub so that I have a boot entry for windows and arch. Before, I set the GRUB timeout to 0, so it would just autoboot arch, but now, I have to navigate the menu. I'd like to configure some solution such that if I start up the system without holding some modifier key, it boots straight to arch, but if I hold down said modifier key, it brings me to the GRUB menu, so I can boot into windows if need be.

Does anyone know how to do this? I've tried setting `GRUB_TIMEOUT=-1` and `GRUB_HIDDEN_TIMEOUT=0`, but after remaking the config, nothing seemed to change.

Offline

#2 2024-03-28 03:48:57

MexicanSpinoza
Member
Registered: 2024-03-23
Posts: 1

Re: Disabling GRUB menu unless I hold a key

Hi bro, in /etc/default/grub you can change GRUB_TIMEOUT_STYLE=hidden and then make sudo grub-mkconfig -o /boot/grub/grub.cfg, hope it works

Offline

#3 2024-03-28 04:13:28

0x716
Member
Registered: 2024-03-28
Posts: 7

Re: Disabling GRUB menu unless I hold a key

MexicanSpinoza wrote:

Hi bro, in /etc/default/grub you can change GRUB_TIMEOUT_STYLE=hidden and then make sudo grub-mkconfig -o /boot/grub/grub.cfg, hope it works


Unfortunately, this didn't seem to change anything, and I still boot into the grub menu. Thank you though.

Offline

#4 2024-03-28 09:06:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,230

Re: Disabling GRUB menu unless I hold a key

https://wiki.archlinux.org/title/GRUB/T … _held_down ? FWIW note the note that this "might" be problematic on UEFI systems, but I'd very much assume this to be down to the actual EFI implementation in play, and worth a try anyway.

Last edited by V1del (2024-03-28 09:09:19)

Online

Board footer

Powered by FluxBB