Bug#717586: grub-pc: Where is the option to disable submenus documented?
Martin-Éric Racine
martin-eric.racine at iki.fi
Tue Mar 18 14:24:41 UTC 2014
Package: grub-pc
Version: 2.00-22
Followup-For: Bug #717586
This bug's closing message (from the Debian changelog) suggests
that the option to disable the submenu was documented. Where?
Also, generally speaking, enabling submenus by default is
counter-intuitive on grub-pc, given how GRUB scales itself
to match the maximum resolution offered by the BIOS, which
then easily allows fitting all kernels into the GRUB menu.
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=fi_FI
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=-1
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=keep
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a' {
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
echo 'Ladataan Linux 3.12-1-686-pae käyttöjärjestelmäydin ...'
linux /boot/vmlinuz-3.12-1-686-pae root=UUID=cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a ro panic=15 quiet splash
echo 'Ladataan alustavaa ramlevyä ...'
initrd /boot/initrd.img-3.12-1-686-pae
}
submenu 'Lisävalitsimet kohteelle ”Debian GNU/Linux”' $menuentry_id_option 'gnulinux-advanced-cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a' {
menuentry 'Debian GNU/Linux, jakeluversiolla Linux 3.12-1-686-pae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.12-1-686-pae-advanced-cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a' {
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
echo 'Ladataan Linux 3.12-1-686-pae käyttöjärjestelmäydin ...'
linux /boot/vmlinuz-3.12-1-686-pae root=UUID=cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a ro panic=15 quiet splash
echo 'Ladataan alustavaa ramlevyä ...'
initrd /boot/initrd.img-3.12-1-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.12-1-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.12-1-686-pae-recovery-cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a' {
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
echo 'Ladataan Linux 3.12-1-686-pae käyttöjärjestelmäydin ...'
linux /boot/vmlinuz-3.12-1-686-pae root=UUID=cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a ro single panic=15
echo 'Ladataan alustavaa ramlevyä ...'
initrd /boot/initrd.img-3.12-1-686-pae
}
menuentry 'Debian GNU/Linux, jakeluversiolla Linux 3.11-2-686-pae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11-2-686-pae-advanced-cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a' {
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
echo 'Ladataan Linux 3.11-2-686-pae käyttöjärjestelmäydin ...'
linux /boot/vmlinuz-3.11-2-686-pae root=UUID=cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a ro panic=15 quiet splash
echo 'Ladataan alustavaa ramlevyä ...'
initrd /boot/initrd.img-3.11-2-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.11-2-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11-2-686-pae-recovery-cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a' {
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
echo 'Ladataan Linux 3.11-2-686-pae käyttöjärjestelmäydin ...'
linux /boot/vmlinuz-3.11-2-686-pae root=UUID=cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a ro single panic=15
echo 'Ladataan alustavaa ramlevyä ...'
initrd /boot/initrd.img-3.11-2-686-pae
}
menuentry 'Debian GNU/Linux, jakeluversiolla Linux 3.2.0-4-686-pae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-686-pae-advanced-cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a' {
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
echo 'Ladataan Linux 3.2.0-4-686-pae käyttöjärjestelmäydin ...'
linux /boot/vmlinuz-3.2.0-4-686-pae root=UUID=cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a ro panic=15 quiet splash
echo 'Ladataan alustavaa ramlevyä ...'
initrd /boot/initrd.img-3.2.0-4-686-pae
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.2.0-4-686-pae-recovery-cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a' {
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
echo 'Ladataan Linux 3.2.0-4-686-pae käyttöjärjestelmäydin ...'
linux /boot/vmlinuz-3.2.0-4-686-pae root=UUID=cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a ro single panic=15
echo 'Ladataan alustavaa ramlevyä ...'
initrd /boot/initrd.img-3.2.0-4-686-pae
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_ipxe ###
menuentry "Network boot (iPXE)" --users "" --class network {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
linux16 /boot/ipxe.lkrn
}
### END /etc/grub.d/20_ipxe ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
multiboot /boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
else
search --no-floppy --fs-uuid --set=root cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a
fi
multiboot /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 9 Jan 15 18:44 ata-TOSHIBA_MK6008GAH_Y7TAWKX9W -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 15 18:45 ata-TOSHIBA_MK6008GAH_Y7TAWKX9W-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 15 18:44 ata-TOSHIBA_MK6008GAH_Y7TAWKX9W-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 15 18:48 ata-TOSHIBA_MK6008GAH_Y7TAWKX9W-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Jan 15 18:44 scsi-SATA_TOSHIBA_MK6008GA_Y7TAWKX9W -> ../../sda
lrwxrwxrwx 1 root root 10 Jan 15 18:45 scsi-SATA_TOSHIBA_MK6008GA_Y7TAWKX9W-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan 15 18:44 scsi-SATA_TOSHIBA_MK6008GA_Y7TAWKX9W-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 15 18:48 scsi-SATA_TOSHIBA_MK6008GA_Y7TAWKX9W-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Jan 15 18:44 usb-HL-DT-ST_CDRW_DVD_GCC4247-0:0 -> ../../sr0
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jan 15 18:48 9b9ea17c-4105-442e-9266-d6a9caa9a497 -> ../../sda3
lrwxrwxrwx 1 root root 10 Jan 15 18:44 b957667b-7881-42f6-b502-c28eca645d58 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan 15 18:45 cd9a1998-9fb2-4208-aba6-bc2ba8f5e36a -> ../../sda1
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (1001, 'testing'), (1001, 'stable'), (1001, 'oldstable')
Architecture: i386 (i686)
Kernel: Linux 3.12-1-686-pae (SMP w/1 CPU core)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages grub-pc depends on:
ii debconf [debconf-2.0] 1.5.52
ii grub-common 2.00-22
ii grub-pc-bin 2.00-22
ii grub2-common 2.00-22
ii ucf 3.0027+nmu1
grub-pc recommends no packages.
grub-pc suggests no packages.
-- debconf information:
grub-pc/kopt_extracted: true
grub-pc/timeout: 5
grub-pc/disk_description:
* grub-pc/install_devices: /dev/disk/by-id/ata-TOSHIBA_MK6008GAH_Y7TAWKX9W
grub-pc/partition_description:
grub-pc/install_devices_empty: false
grub-pc/hidden_timeout: true
* grub2/device_map_regenerated:
grub2/kfreebsd_cmdline:
* grub-pc/install_devices_disks_changed: /dev/disk/by-id/ata-TOSHIBA_MK6008GAH_Y7TAWKX9W, /dev/disk/by-id/ata-TOSHIBA_MK6008GAH_Y7TAWKX9W-part1
grub2/kfreebsd_cmdline_default: quiet
* grub-pc/chainload_from_menu.lst: true
* grub2/linux_cmdline: panic=15
* grub-pc/mixed_legacy_and_grub2: true
grub-pc/install_devices_failed: false
grub-pc/postrm_purge_boot_grub: false
grub-pc/install_devices_failed_upgrade: true
* grub2/linux_cmdline_default: quiet splash
More information about the Pkg-grub-devel
mailing list