[Bug 444495] Re: Grub 2 1.97 Beta 4 Hidden Menu No Longer Works

drs305 drstalk at gmail.com
Wed Nov 11 23:52:07 UTC 2009


Here is some more info for people still unable to hide the menu via the
normal entries in /etc/default/grub.

Earlier I suggested adding "GRUB_DISABLE_OS_PROBER=true"

I've now found a way to keep os-prober active and to get the hidden menu
and hidden timeout features.

Open /etc/grub.d/00_header as root:

Add this to the end of the file. "18" in this sample will hide the menu for 18 seconds:
Quote:
### BEGIN Hidden Menu Test ###
cat << EOF
if [ ${timeout} != -1 ]; then
if sleep --verbose --interruptible ${GRUB_HIDDEN_TIMEOUT} ; then
set timeout=${GRUB_HIDDEN_TIMEOUT}
fi
fi
EOF
### END Hidden Menu Test ###
Save the file and run update-grub

1. The menu will be hidden for 18 seconds. Change the value as you wish. In this hack GRUB_HIDDEN_TIMEOUT prefers a blank to "0" if you don't want to hide the menu, although 0 will also work.
2. The GRUB_TIMEOUT value in /etc/default/grub will be honored. If and when the menu is displayed, it will be displayed for the value of this line and then boot the default OS.
3. The GRUB_HIDDEN_TIMEOUT line will be used.
4. The GRUB_HIDDEN_TIMEOUT_QUIET line will be honored.
5. You do not need the "GRUB_DISABLE_OS_PROBER" line in /etc/default/grub, so the menu will be hidden and it will search for other OS's.

This is just a hack to get the menu to hide. It is not a long term or
even 'pretty' solution.

-- 
Grub 2 1.97 Beta 4 Hidden Menu No Longer Works
https://bugs.launchpad.net/bugs/444495
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list