Bug#798182: grub-common: menu creation based on settings should be easy to customise

Axel axst at users.sourceforge.net
Sun Sep 6 13:28:57 UTC 2015


Package: grub-common
Version: 2.02~beta2-22
Severity: wishlist

Dear Maintainer,

Currently, two menu entries are created for every bootable operating system. Please make
the settings for this easier to configure so tahat, e.g., I can include a third entry
containing the ‘fastboot’ option for every installed Linux version.

*********************** 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
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

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,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  4b58f6c0-091b-4687-b6c0-26624f0db80c
else
  search --no-floppy --fs-uuid --set=root 4b58f6c0-091b-4687-b6c0-26624f0db80c
fi
    font="/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_IE
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7  4b58f6c0-091b-4687-b6c0-26624f0db80c
else
  search --no-floppy --fs-uuid --set=root 4b58f6c0-091b-4687-b6c0-26624f0db80c
fi
insmod png
if background_image /share/images/desktop-base/lines-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=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-67f3ac86-e1e4-48a7-99f2-05af41574a14' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	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  67f3ac86-e1e4-48a7-99f2-05af41574a14
	else
	  search --no-floppy --fs-uuid --set=root 67f3ac86-e1e4-48a7-99f2-05af41574a14
	fi
	echo	'Loading Linux 3.16.0-4-amd64 ...'
	linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=67f3ac86-e1e4-48a7-99f2-05af41574a14 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-67f3ac86-e1e4-48a7-99f2-05af41574a14' {
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-67f3ac86-e1e4-48a7-99f2-05af41574a14' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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  67f3ac86-e1e4-48a7-99f2-05af41574a14
		else
		  search --no-floppy --fs-uuid --set=root 67f3ac86-e1e4-48a7-99f2-05af41574a14
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=67f3ac86-e1e4-48a7-99f2-05af41574a14 ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-4-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-67f3ac86-e1e4-48a7-99f2-05af41574a14' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		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  67f3ac86-e1e4-48a7-99f2-05af41574a14
		else
		  search --no-floppy --fs-uuid --set=root 67f3ac86-e1e4-48a7-99f2-05af41574a14
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=67f3ac86-e1e4-48a7-99f2-05af41574a14 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-4-amd64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Debian GNU/Linux (7.8) (on /dev/sdd6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-d62495d6-dd20-4fbb-a96e-42b3c8b7aa83' {
	insmod part_msdos
	insmod ext2
	set root='hd3,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos6 --hint-efi=hd3,msdos6 --hint-baremetal=ahci3,msdos6  d62495d6-dd20-4fbb-a96e-42b3c8b7aa83
	else
	  search --no-floppy --fs-uuid --set=root d62495d6-dd20-4fbb-a96e-42b3c8b7aa83
	fi
	linux /boot/vmlinuz-3.2.0-4-686-pae root=/dev/sdd6
	initrd /boot/initrd.img-3.2.0-4-686-pae
}
submenu 'Advanced options for Debian GNU/Linux (7.8) (on /dev/sdd6)' $menuentry_id_option 'osprober-gnulinux-advanced-d62495d6-dd20-4fbb-a96e-42b3c8b7aa83' {
	menuentry 'Debian GNU/Linux (7.8) (on /dev/sdd6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.2.0-4-686-pae--d62495d6-dd20-4fbb-a96e-42b3c8b7aa83' {
		insmod part_msdos
		insmod ext2
		set root='hd3,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd3,msdos6 --hint-efi=hd3,msdos6 --hint-baremetal=ahci3,msdos6  d62495d6-dd20-4fbb-a96e-42b3c8b7aa83
		else
		  search --no-floppy --fs-uuid --set=root d62495d6-dd20-4fbb-a96e-42b3c8b7aa83
		fi
		linux /boot/vmlinuz-3.2.0-4-686-pae root=/dev/sdd6
		initrd /boot/initrd.img-3.2.0-4-686-pae
	}
}

### 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 Sep  5 22:20 ata-Hitachi_HDS724040ALE640_PK2331PAH37H6T -> ../../sdb
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-Hitachi_HDS724040ALE640_PK2331PAH37H6T-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Sep  5 22:20 ata-SAMSUNG_HD103UJ_S13PJDWS305738 -> ../../sdd
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD103UJ_S13PJDWS305738-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 11 Sep  5 22:20 ata-SAMSUNG_HD103UJ_S13PJDWS305738-part10 -> ../../sdd10
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD103UJ_S13PJDWS305738-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD103UJ_S13PJDWS305738-part5 -> ../../sdd5
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD103UJ_S13PJDWS305738-part6 -> ../../sdd6
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD103UJ_S13PJDWS305738-part7 -> ../../sdd7
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD103UJ_S13PJDWS305738-part8 -> ../../sdd8
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD103UJ_S13PJDWS305738-part9 -> ../../sdd9
lrwxrwxrwx 1 root root  9 Sep  5 22:20 ata-SAMSUNG_HD204UI_S2HGJD2B205543 -> ../../sdc
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD204UI_S2HGJD2B205543-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 Sep  5 22:20 ata-SAMSUNG_HD753LJ_S13UJ1DQ203606 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD753LJ_S13UJ1DQ203606-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD753LJ_S13UJ1DQ203606-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD753LJ_S13UJ1DQ203606-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD753LJ_S13UJ1DQ203606-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD753LJ_S13UJ1DQ203606-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD753LJ_S13UJ1DQ203606-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Sep  5 22:20 ata-SAMSUNG_HD753LJ_S13UJ1DQ203606-part8 -> ../../sda8
lrwxrwxrwx 1 root root  9 Sep  5 22:20 ata-_NEC_DVD_RW_ND-3550A -> ../../sr0
lrwxrwxrwx 1 root root  9 Sep  5 22:20 usb-Intenso_External_USB_3.0_20130303060263-0:0 -> ../../sde
lrwxrwxrwx 1 root root 10 Sep  5 22:20 usb-Intenso_External_USB_3.0_20130303060263-0:0-part8 -> ../../sde8
lrwxrwxrwx 1 root root  9 Sep  5 22:20 wwn-0x50000f0009026360 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50000f0009026360-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50000f0009026360-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50000f0009026360-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50000f0009026360-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50000f0009026360-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50000f0009026360-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50000f0009026360-part8 -> ../../sda8
lrwxrwxrwx 1 root root  9 Sep  5 22:20 wwn-0x5000cca22bcf90bc -> ../../sdb
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x5000cca22bcf90bc-part1 -> ../../sdb1
lrwxrwxrwx 1 root root  9 Sep  5 22:20 wwn-0x50024e900114746b -> ../../sdd
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50024e900114746b-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 11 Sep  5 22:20 wwn-0x50024e900114746b-part10 -> ../../sdd10
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50024e900114746b-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50024e900114746b-part5 -> ../../sdd5
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50024e900114746b-part6 -> ../../sdd6
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50024e900114746b-part7 -> ../../sdd7
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50024e900114746b-part8 -> ../../sdd8
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50024e900114746b-part9 -> ../../sdd9
lrwxrwxrwx 1 root root  9 Sep  5 22:20 wwn-0x50024e9004b62edc -> ../../sdc
lrwxrwxrwx 1 root root 10 Sep  5 22:20 wwn-0x50024e9004b62edc-part1 -> ../../sdc1
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Sep  5 22:20 181acfe7-7f36-427e-8e47-ec7ec3109fe8 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Sep  5 22:20 1a20c3bf-c5cb-4e47-8257-ed9c1eb37b1c -> ../../sdd1
lrwxrwxrwx 1 root root 10 Sep  5 22:20 4b58f6c0-091b-4687-b6c0-26624f0db80c -> ../../sda7
lrwxrwxrwx 1 root root 10 Sep  5 22:20 641fdd27-63f7-4a94-932e-19939323f867 -> ../../sdd5
lrwxrwxrwx 1 root root 10 Sep  5 22:20 67f3ac86-e1e4-48a7-99f2-05af41574a14 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep  5 22:20 7759f978-198e-4e5a-8bf7-9e9889452acd -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep  5 22:20 7f59312c-b0d2-4c66-bbfd-8c27e37e90d1 -> ../../sde8
lrwxrwxrwx 1 root root 10 Sep  5 22:20 81ea5cac-d2ab-4a13-98de-7e916eb7fabd -> ../../sda6
lrwxrwxrwx 1 root root 10 Sep  5 22:20 8e142806-71de-4647-a317-b2039c25019e -> ../../sdb1
lrwxrwxrwx 1 root root 10 Sep  5 22:20 8eb8e5fc-bdbd-4687-b8eb-408ed1bc9bb3 -> ../../sda8
lrwxrwxrwx 1 root root 11 Sep  5 22:20 b3d9fc92-653a-47b2-96af-fe47c783944a -> ../../sdd10
lrwxrwxrwx 1 root root 10 Sep  5 22:20 cc0e61a2-30f7-48fb-bf2b-5d5a47c2c485 -> ../../sda5
lrwxrwxrwx 1 root root 10 Sep  5 22:20 d62495d6-dd20-4fbb-a96e-42b3c8b7aa83 -> ../../sdd6
lrwxrwxrwx 1 root root 10 Sep  5 22:20 d7c96e65-20ae-4f8d-ba9e-4b5c7aa952cd -> ../../sdd9
lrwxrwxrwx 1 root root 10 Sep  5 22:20 e8b9bad3-aa4c-4424-b208-a4f919fad69e -> ../../sdd8
lrwxrwxrwx 1 root root 10 Sep  5 22:20 f8b1a8b8-9737-4b10-a0ce-8b4b9d448bd4 -> ../../sdd7
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages grub-common depends on:
ii  gettext-base        0.19.3-2
ii  libc6               2.19-18+deb8u1
ii  libdevmapper1.02.1  2:1.02.90-2.2
ii  libfreetype6        2.5.2-3
ii  libfuse2            2.9.3-15+deb8u1
ii  liblzma5            5.1.1alpha+20120614-2+b3
ii  libpng12-0          1.2.50-2+b2
ii  zlib1g              1:1.2.8.dfsg-2+b1

Versions of packages grub-common recommends:
ii  os-prober  1.65

Versions of packages grub-common suggests:
ii  console-setup  1.123
ii  desktop-base   8.0.2
pn  grub-emu       <none>
pn  multiboot-doc  <none>
pn  xorriso        <none>

-- no debconf information



More information about the Pkg-grub-devel mailing list