Bug#863436: grub-efi-amd64: Since installing Debian-9-RC3, Grub User Menuentries don't display on Boot Menu

Harrison sainokawara.sisyphus at gmail.com
Fri May 26 20:15:07 UTC 2017


Package: grub-efi-amd64
Version: 2.02~beta3-5
Severity: normal

After upgrading from Debian-9-RC1 to Debian-9-RC3, my existing "40_custom"
Menuentries were not displayed on the Boot Menu and I could not add them.
However, I see my additions in /boot/grub/grub.cfg?  I do not know what
"update-grub" does but there are only a couple of directories and "grubx64.efi"
in the ESP Partition?

I do not know whether this is related but after installing Debian-9-RC3, I did
a "sudo apt-get dist-upgrade" and saw that "vmlinuz-4.9.0-2-amd64" was upgraded
to "vmlinuz-4.9.0-3-amd64".  But, Grub continued to boot
"vmlinuz-4.9.0-2-amd64" until I chose "Advanced Options" on the Boot Menu,
selected the default "*Debian 4.9.0-3" at the top and then Grub began booting
"Debian 4.9.0-3" by default?

I will be happy to provide you with almost anything you need but will not be
able to delete all of the Partitions on harddrive to test in an absolutely
"pristine" environment for another month.



-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sda3 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/sda7 /mnt/Data ext4 rw,nosuid,nodev,noexec,relatime,data=ordered 0 0
/dev/sda8 /mnt/Non-Backed ext4 rw,nosuid,nodev,noexec,relatime,data=ordered 0 0
/dev/sda8 /media/Videos ext4 ro,relatime,data=ordered 0 0
/dev/sda8 /media/Music ext4 ro,relatime,data=ordered 0 0
*********************** END /proc/mounts

*********************** 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_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  572068bb-9d9f-44a0-aa84-299ac89db31c
else
  search --no-floppy --fs-uuid --set=root 572068bb-9d9f-44a0-aa84-299ac89db31c
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=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
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_gpt
insmod ext2
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  572068bb-9d9f-44a0-aa84-299ac89db31c
else
  search --no-floppy --fs-uuid --set=root 572068bb-9d9f-44a0-aa84-299ac89db31c
fi
insmod png
if background_image /usr/share/desktop-base/softwaves-theme/grub/grub-4x3.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-572068bb-9d9f-44a0-aa84-299ac89db31c' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt3'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  572068bb-9d9f-44a0-aa84-299ac89db31c
	else
	  search --no-floppy --fs-uuid --set=root 572068bb-9d9f-44a0-aa84-299ac89db31c
	fi
	echo	'Loading Linux 4.9.0-3-amd64 ...'
	linux	/boot/vmlinuz-4.9.0-3-amd64 root=UUID=572068bb-9d9f-44a0-aa84-299ac89db31c ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.9.0-3-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-572068bb-9d9f-44a0-aa84-299ac89db31c' {
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-3-amd64-advanced-572068bb-9d9f-44a0-aa84-299ac89db31c' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  572068bb-9d9f-44a0-aa84-299ac89db31c
		else
		  search --no-floppy --fs-uuid --set=root 572068bb-9d9f-44a0-aa84-299ac89db31c
		fi
		echo	'Loading Linux 4.9.0-3-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-3-amd64 root=UUID=572068bb-9d9f-44a0-aa84-299ac89db31c ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-3-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-3-amd64-recovery-572068bb-9d9f-44a0-aa84-299ac89db31c' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  572068bb-9d9f-44a0-aa84-299ac89db31c
		else
		  search --no-floppy --fs-uuid --set=root 572068bb-9d9f-44a0-aa84-299ac89db31c
		fi
		echo	'Loading Linux 4.9.0-3-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-3-amd64 root=UUID=572068bb-9d9f-44a0-aa84-299ac89db31c ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-3-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-2-amd64-advanced-572068bb-9d9f-44a0-aa84-299ac89db31c' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  572068bb-9d9f-44a0-aa84-299ac89db31c
		else
		  search --no-floppy --fs-uuid --set=root 572068bb-9d9f-44a0-aa84-299ac89db31c
		fi
		echo	'Loading Linux 4.9.0-2-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-2-amd64 root=UUID=572068bb-9d9f-44a0-aa84-299ac89db31c ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-2-amd64-recovery-572068bb-9d9f-44a0-aa84-299ac89db31c' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  572068bb-9d9f-44a0-aa84-299ac89db31c
		else
		  search --no-floppy --fs-uuid --set=root 572068bb-9d9f-44a0-aa84-299ac89db31c
		fi
		echo	'Loading Linux 4.9.0-2-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-2-amd64 root=UUID=572068bb-9d9f-44a0-aa84-299ac89db31c ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-2-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 ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### 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.

# Boot Debian 9 RC3 Installer from Harddrive
  Menuentry "Debian 9 RC3 Install .ISO from Harddrive" {
    echo "Debian 9 RC3 Install .ISO from Harddrive"
    set root='(hd0,gpt7)'
    linux /Debian-9-RC3/vmlinuz priority=low DEBIAN_FRONTEND=gtk
      iso-scan/file=/Debian-9-RC3/debian-stretch-DI-rc3-amd64-DVD-1.iso
    initrd /Debian-9-RC3/initrd.gz
  }

### 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 May 26 12:55 ata-HP_DVD_Writer_1270d -> ../../sr0
lrwxrwxrwx 1 root root  9 May 26 12:55 ata-TOSHIBA_MD04ACA400_15O3KFA0FSAA -> ../../sda
lrwxrwxrwx 1 root root 10 May 26 12:55 ata-TOSHIBA_MD04ACA400_15O3KFA0FSAA-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 26 12:55 ata-TOSHIBA_MD04ACA400_15O3KFA0FSAA-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 May 26 12:55 ata-TOSHIBA_MD04ACA400_15O3KFA0FSAA-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 May 26 12:55 ata-TOSHIBA_MD04ACA400_15O3KFA0FSAA-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 May 26 12:55 ata-TOSHIBA_MD04ACA400_15O3KFA0FSAA-part8 -> ../../sda8
lrwxrwxrwx 1 root root  9 May 26 12:55 wwn-0x500003960b804317 -> ../../sda
lrwxrwxrwx 1 root root 10 May 26 12:55 wwn-0x500003960b804317-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 26 12:55 wwn-0x500003960b804317-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 May 26 12:55 wwn-0x500003960b804317-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 May 26 12:55 wwn-0x500003960b804317-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 May 26 12:55 wwn-0x500003960b804317-part8 -> ../../sda8
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 May 26 12:55 0c838451-e56a-48c8-b8b7-46313e78d40d -> ../../sda7
lrwxrwxrwx 1 root root 10 May 26 12:55 572068bb-9d9f-44a0-aa84-299ac89db31c -> ../../sda3
lrwxrwxrwx 1 root root 10 May 26 12:55 A84B-C2C8 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 26 12:55 dc14aabb-bd18-47bd-9def-9fb57fe7d2ac -> ../../sda8
lrwxrwxrwx 1 root root 10 May 26 12:55 e185097d-6d2a-4195-a6b4-afafdb89206c -> ../../sda2
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64
 (x86_64)

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

Versions of packages grub-efi-amd64 depends on:
ii  debconf [debconf-2.0]  1.5.60
ii  dpkg                   1.18.24
ii  grub-common            2.02~beta3-5
ii  grub-efi-amd64-bin     2.02~beta3-5
ii  grub2-common           2.02~beta3-5
ii  ucf                    3.0036

grub-efi-amd64 recommends no packages.

grub-efi-amd64 suggests no packages.

-- debconf information excluded



More information about the Pkg-grub-devel mailing list