11. HIDING THE MENU ON MULTI-OS SYSTEMS
By design, Grub 2 allows hiding the menu only on single-OS systems. This is established in the
/etc/grub.d/30_os-prober file. For users with multiple OS's on their machines, hiding the menu can be accomplished by altering the scripts. There are two ways to accomplish the task. The first edits only one file and eliminates a conditional; the second edits two files and adds a conditional, but is a bit more 'elegant'.
Shown are the applicable sections. Changes are highlighted in
bold red. The lines between the altered lines have been omitted.
Method 1. Remove a conditional from
/etc/grub.d/30_os-prober.
For both Grub 1.97~beta (Karmic) and 1.98 (Lucid & later), the first line to edit is the same. It appears at approximately line 25-30 of
/etc/grub.d/30_os-prober in both versions.
# if [ "x${found_other_os}" = "x" ] ; then
The second change is to place a
# symbol at the end of the conditional. There are many
if statements, and it's important to find the correct nested
fi.
Lucid & later (Grub 1.98+):
Quote:
#
fi
}
adjust_timeout () {
Bookmarks