Bug#919791: [grub-efi-amd64-bin] After upgrading grub-efi-amd64-signed GRUB was no longer bootable and I was thrown to UEFI settings

Mikaela Suomalainen mikaela at mikaela.info
Sat Jan 19 16:37:59 GMT 2019


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Package: grub-efi-amd64-bin
Version: 2.02+dfsg1-10
Severity: normal

- --- Please enter the report below this line. ---

Today I installed updates normally, visited Windows 10 (slow ring)
which offered only a Windows Defender definition update and rebooted
to see that my GRUB was no longer functional. When Debian is the only
enabled boot option in UEFI and I boot this laptop, I am thrown
directly into UEFI setup.

I didn't know what to do and wasn't willing to deal with GRUB, so I
sought information about alternatives, found EFIStub on Debian Wiki,
setup it following https://wiki.debian.org/EFIStub and booted my
system using it. Then I went to #debian-next where three other people
were also having trouble with grub, I was directed to #debian-boot
where I was asked to report this.

I selected this package as the bug target as this is the only package
I have upgraded according to `grep grub /var/log/dpkg.log|grep
2019-01-19`.

This device is ASUS X550JX.

- --- System information. ---
Architecture: Kernel:       Linux 4.19.0-1-amd64

Debian Release: buster/sid
  990 testing         sdscoq7snqtznauu.onion   990 testing
deb.torproject.org   990 testing         deb.debian.org   500 unstable
       riot.im   500 syncthing       apt.syncthing.net   500 stable
       dl.google.com   500 buster          s3-us-west-2.amazonaws.com
  500 buster          brave-browser-apt-release.s3.brave.com   500
buster          brave-browser-apt-dev.s3.brave.com   500 buster
   brave-browser-apt-beta.s3.brave.com
- --- Package information. ---
Depends                 (Version) | Installed
=================================-+-==================
grub-common     (= 2.02+dfsg1-10) | 2.02+dfsg1-10
efibootmgr                        | 15-1


Recommends                 (Version) | Installed
====================================-+-===========
grub-efi-amd64-signed                | 1+2.02+dfsg1+10


Package's Suggests field is empty.

- -- 
Mikaela Suomalainen
-----BEGIN PGP SIGNATURE-----
Comment: Website: https://mikaela.info/
Comment: Public key: https://mikaela.info/PGP/0xB2F32B67.txt
Comment: gpg --fetch-keys https://mikaela.info/PGP/0xB2F32B67.txt
Comment: Fingerprint = 2910 4A46 C561 5BF9 78A0 83F2 0C20 7F07 B2F3 2B67

iQIzBAEBCgAdFiEEKRBKRsVhW/l4oIPyDCB/B7LzK2cFAlxDUlcACgkQDCB/B7Lz
K2eAjBAAjH31kn3qU4zLpCESkapM6DCrwKyO55RA+RuEuUWJ1AoFfsFJJuby4SS2
i/6wbmenBq4oBRUCrL/Mdx454hGGud1j7mFmgCRCurVX80LR4wkoddDOIqXMVYiR
2rdnE6y95T0OnBzmdRrh2aJqMBqidJUBtYMM2DbGUuc40vwuEBlZ68ui5I6DHF+9
HC5VFldBzq5iYXxwrVZgP7BnxU0gRGED1kFfeol3sVibFaaFrO6hFi5IZqis0uyw
g50zluVZAJVZ00Hf/bviHvMk7hv3skec+K/IrWaDYcPuQCxHKbvGpPhTJe2rl1Ec
7GBw8flG8ozM/aBiVogGcIe3piWJwmo+ewaRy662NO3muoxII2eGS70bma1dsl5O
eexo8lqSJ9vkerHkqBbQLNGEXcwLaZBwrNxhIGZaEqVHoU9eEE+7zPWJvT7l7g1e
LY/R/3H7XsqusmCmyxFBdKsIoxBPGkcY4Hc1c/8k0VasC0OoFxdC7p4S211XT8zX
oJmYZ1XwDgMqDEtm48evgEoNdbpLSANThnxwAnD48rEiDYXENdHC9awYbmL5Ef9u
z0A1HQpXJGaQf8ohD8Wff71HLNi4sC4WId55TO9+DiOnoUXDrPATtSQHmsl0Q50h
G6Jq9dnG+12YjT+YbDEFG/3hKr2hiA666RXUIL+JDEejdujYFso=
=X4aa
-----END PGP SIGNATURE-----
-------------- next part --------------
--- Output from package bug script ---

*********************** BEGIN /proc/mounts
/dev/sda7 / ext4 rw,relatime,errors=remount-ro 0 0
/dev/loop2 /snap/rambox/x1 squashfs ro,nodev,relatime 0 0
/dev/loop4 /snap/bitwarden/16 squashfs ro,nodev,relatime 0 0
/dev/loop3 /snap/core/6034 squashfs ro,nodev,relatime 0 0
/dev/loop7 /snap/telegram-desktop/441 squashfs ro,nodev,relatime 0 0
/dev/loop5 /snap/gtk-common-themes/808 squashfs ro,nodev,relatime 0 0
/dev/loop1 /snap/discord/85 squashfs ro,nodev,relatime 0 0
/dev/loop0 /snap/signal-desktop/98 squashfs ro,nodev,relatime 0 0
/dev/loop6 /snap/core/5897 squashfs ro,nodev,relatime 0 0
/dev/loop10 /snap/signal-desktop/97 squashfs ro,nodev,relatime 0 0
/dev/loop9 /snap/gtk-common-themes/818 squashfs ro,nodev,relatime 0 0
/dev/loop8 /snap/bw/10 squashfs ro,nodev,relatime 0 0
/dev/loop12 /snap/gtk-common-themes/701 squashfs ro,nodev,relatime 0 0
/dev/loop14 /snap/desktop-habitica/1 squashfs ro,nodev,relatime 0 0
/dev/loop11 /snap/signal-desktop/99 squashfs ro,nodev,relatime 0 0
/dev/loop13 /snap/firefox/140 squashfs ro,nodev,relatime 0 0
/dev/loop15 /snap/telegram-desktop/480 squashfs ro,nodev,relatime 0 0
/dev/loop16 /snap/bitwarden/15 squashfs ro,nodev,relatime 0 0
/dev/loop18 /snap/discord/86 squashfs ro,nodev,relatime 0 0
/dev/loop19 /snap/bw/9 squashfs ro,nodev,relatime 0 0
/dev/loop17 /snap/core/6130 squashfs ro,nodev,relatime 0 0
/dev/loop20 /snap/discord/84 squashfs ro,nodev,relatime 0 0
/dev/loop21 /snap/firefox/136 squashfs ro,nodev,relatime 0 0
/dev/loop24 /snap/telegram-desktop/483 squashfs ro,nodev,relatime 0 0
/dev/loop23 /snap/firefox/135 squashfs ro,nodev,relatime 0 0
/dev/loop22 /snap/bitwarden/14 squashfs ro,nodev,relatime 0 0
/dev/sda2 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/sda9 /home ext4 rw,relatime 0 0
/dev/fuse /run/user/1000/doc fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 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,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  ed8c331c-2739-432a-b838-35f3af3a6503
else
  search --no-floppy --fs-uuid --set=root ed8c331c-2739-432a-b838-35f3af3a6503
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_GB
  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
play 480 440 1
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='hd0,gpt7'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  ed8c331c-2739-432a-b838-35f3af3a6503
else
  search --no-floppy --fs-uuid --set=root ed8c331c-2739-432a-b838-35f3af3a6503
fi
insmod png
if background_image /usr/share/desktop-base/softwaves-theme/grub/grub-16x9.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-ed8c331c-2739-432a-b838-35f3af3a6503' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt7'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  ed8c331c-2739-432a-b838-35f3af3a6503
	else
	  search --no-floppy --fs-uuid --set=root ed8c331c-2739-432a-b838-35f3af3a6503
	fi
	echo	'Loading Linux 4.19.0-1-amd64 ...'
	linux	/boot/vmlinuz-4.19.0-1-amd64 root=UUID=ed8c331c-2739-432a-b838-35f3af3a6503 ro  acpi_osi= apparmor=1 security=apparmor
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.19.0-1-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-ed8c331c-2739-432a-b838-35f3af3a6503' {
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-1-amd64-advanced-ed8c331c-2739-432a-b838-35f3af3a6503' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  ed8c331c-2739-432a-b838-35f3af3a6503
		else
		  search --no-floppy --fs-uuid --set=root ed8c331c-2739-432a-b838-35f3af3a6503
		fi
		echo	'Loading Linux 4.19.0-1-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-1-amd64 root=UUID=ed8c331c-2739-432a-b838-35f3af3a6503 ro  acpi_osi= apparmor=1 security=apparmor
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-1-amd64-recovery-ed8c331c-2739-432a-b838-35f3af3a6503' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  ed8c331c-2739-432a-b838-35f3af3a6503
		else
		  search --no-floppy --fs-uuid --set=root ed8c331c-2739-432a-b838-35f3af3a6503
		fi
		echo	'Loading Linux 4.19.0-1-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-1-amd64 root=UUID=ed8c331c-2739-432a-b838-35f3af3a6503 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.18.0-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-3-amd64-advanced-ed8c331c-2739-432a-b838-35f3af3a6503' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  ed8c331c-2739-432a-b838-35f3af3a6503
		else
		  search --no-floppy --fs-uuid --set=root ed8c331c-2739-432a-b838-35f3af3a6503
		fi
		echo	'Loading Linux 4.18.0-3-amd64 ...'
		linux	/boot/vmlinuz-4.18.0-3-amd64 root=UUID=ed8c331c-2739-432a-b838-35f3af3a6503 ro  acpi_osi= apparmor=1 security=apparmor
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.18.0-3-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.18.0-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-3-amd64-recovery-ed8c331c-2739-432a-b838-35f3af3a6503' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  ed8c331c-2739-432a-b838-35f3af3a6503
		else
		  search --no-floppy --fs-uuid --set=root ed8c331c-2739-432a-b838-35f3af3a6503
		fi
		echo	'Loading Linux 4.18.0-3-amd64 ...'
		linux	/boot/vmlinuz-4.18.0-3-amd64 root=UUID=ed8c331c-2739-432a-b838-35f3af3a6503 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.18.0-3-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-7-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-7-amd64-advanced-ed8c331c-2739-432a-b838-35f3af3a6503' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  ed8c331c-2739-432a-b838-35f3af3a6503
		else
		  search --no-floppy --fs-uuid --set=root ed8c331c-2739-432a-b838-35f3af3a6503
		fi
		echo	'Loading Linux 4.9.0-7-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-7-amd64 root=UUID=ed8c331c-2739-432a-b838-35f3af3a6503 ro  acpi_osi= apparmor=1 security=apparmor
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-7-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-7-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-7-amd64-recovery-ed8c331c-2739-432a-b838-35f3af3a6503' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt7'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  ed8c331c-2739-432a-b838-35f3af3a6503
		else
		  search --no-floppy --fs-uuid --set=root ed8c331c-2739-432a-b838-35f3af3a6503
		fi
		echo	'Loading Linux 4.9.0-7-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-7-amd64 root=UUID=ed8c331c-2739-432a-b838-35f3af3a6503 ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-7-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 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-E2B2-0A17' {
	insmod part_gpt
	insmod fat
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  E2B2-0A17
	else
	  search --no-floppy --fs-uuid --set=root E2B2-0A17
	fi
	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### 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.
### 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
Cursor image name: 02020000000000000000000000000000
 *
* 
-------------- next part --------------
-----BEGIN PGP SIGNATURE-----
Comment: Website: https://mikaela.info/
Comment: Public key: https://mikaela.info/PGP/0xB2F32B67.txt
Comment: gpg --fetch-keys https://mikaela.info/PGP/0xB2F32B67.txt
Comment: Fingerprint = 2910 4A46 C561 5BF9 78A0 83F2 0C20 7F07 B2F3 2B67

iQIzBAABCgAdFiEEKRBKRsVhW/l4oIPyDCB/B7LzK2cFAlxDUmQACgkQDCB/B7Lz
K2dpPw//VqGzwPy2eb5JHYuCBCzB4bGTq9/U2pOiaarzh3SCAR/di+O5z7ilf8OV
jCQtEfodcxxig1kqgAZlJ/w8t2ejhimUXgIa7zO3tV52DhfPpXZrgEJ8iZfBa4vL
yXBSivCzAkyBaT+6dR1eMcryxqlk7UdMugD4PA6zv0n39SCCNUcK6OQyWl5ScHyU
hQK2ZNB+eC52hGQpyzCAXyi44Nvqv0y48s24MGx/+7WCHJOmaLneqCpIJz6Q5KA1
fIm8Lcw993+PgoNJhY7VX8smaT6QHVqyvHPq6XmwrYhQh+FRisrOyIUxmCX/4lo8
NPqdcivDoyeQ6JBKQTfqgmxQb0PyzBhbKkunSXehI6wi1bf6ZdNmvd+rX03lmnm/
9W642ToMQzhlxjuikNPBHwz/oxIItcpmnFh55sfd9/IHoVA39VMyyxakBB/YkjAE
BJ3/syyjTvVjEZlCrAIy1AXSdXcqV7F6FmnJ/CSg1DsXjcWFD53P4OGTZ+5H+1FC
g9tWmJy1bxiSbTOq889tnmtvmJVUMhcGY7N85pb4FYiO5byVKuE7DxHO3U2+5GTu
GpvXguT25Cy78bhvsoFogzWLRJezOXprVSxhwIKkFdPOoog31vYeW2Ex7FipkPof
366Vfv7Pl/hx3VKRE/xhtLMyiIVRQ0okFfxj7aheRYxoQuHeE4Q=
=SAOx
-----END PGP SIGNATURE-----


More information about the Pkg-grub-devel mailing list