Bug#940615: grub-efi-amd64: On upgrade to buster apt fails to install shim-signed-common and shim-signed due to grub-install fail

Tony tony.dbugs at roxburgh.net
Tue Sep 17 20:09:02 BST 2019


Package: grub-efi-amd64
Version: 2.02+dfsg1-20
Severity: important

Dear Maintainer,

I have just upgraded to buster.  apt full-upgrade failed.  Subsequently
further use of apt fails so I don't seem able to make further changes
with apt,  such as purge removed packages.  It appears that the problem
is in install-grub which is failing.

I suspect this is a problem I have had on earlier releases where
grub-install failed because I have the efi partition on raid 0.  However
on previous versions although grub-install did not complete it did not
return an error so software calling it continued.  This meant that apt
could continue.

Will post logs of apt and grub-install separately.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/md3 / ext4 rw,relatime,errors=remount-ro 0 0
/dev/md1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/mapper/VGT-africa /vol/africa ext4 rw,relatime 0 0
/dev/mapper/VGT-offsite /vol/offsite ext4 rw,relatime 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 part_gpt
insmod diskfilter
insmod mdraid1x
insmod ext2
set root='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'  daf603fa-df99-4e6a-bc67-02cac7ca2fde
else
  search --no-floppy --fs-uuid --set=root daf603fa-df99-4e6a-bc67-02cac7ca2fde
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
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### 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-daf603fa-df99-4e6a-bc67-02cac7ca2fde' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod part_gpt
	insmod diskfilter
	insmod mdraid1x
	insmod ext2
	set root='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'  daf603fa-df99-4e6a-bc67-02cac7ca2fde
	else
	  search --no-floppy --fs-uuid --set=root daf603fa-df99-4e6a-bc67-02cac7ca2fde
	fi
	echo	'Loading Linux 4.19.0-6-amd64 ...'
	linux	/boot/vmlinuz-4.19.0-6-amd64 root=UUID=daf603fa-df99-4e6a-bc67-02cac7ca2fde ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.19.0-6-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-daf603fa-df99-4e6a-bc67-02cac7ca2fde' {
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-6-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-6-amd64-advanced-daf603fa-df99-4e6a-bc67-02cac7ca2fde' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'  daf603fa-df99-4e6a-bc67-02cac7ca2fde
		else
		  search --no-floppy --fs-uuid --set=root daf603fa-df99-4e6a-bc67-02cac7ca2fde
		fi
		echo	'Loading Linux 4.19.0-6-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-6-amd64 root=UUID=daf603fa-df99-4e6a-bc67-02cac7ca2fde ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-6-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-6-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-6-amd64-recovery-daf603fa-df99-4e6a-bc67-02cac7ca2fde' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'  daf603fa-df99-4e6a-bc67-02cac7ca2fde
		else
		  search --no-floppy --fs-uuid --set=root daf603fa-df99-4e6a-bc67-02cac7ca2fde
		fi
		echo	'Loading Linux 4.19.0-6-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-6-amd64 root=UUID=daf603fa-df99-4e6a-bc67-02cac7ca2fde ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-6-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-11-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-11-amd64-advanced-daf603fa-df99-4e6a-bc67-02cac7ca2fde' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'  daf603fa-df99-4e6a-bc67-02cac7ca2fde
		else
		  search --no-floppy --fs-uuid --set=root daf603fa-df99-4e6a-bc67-02cac7ca2fde
		fi
		echo	'Loading Linux 4.9.0-11-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-11-amd64 root=UUID=daf603fa-df99-4e6a-bc67-02cac7ca2fde ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-11-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.9.0-11-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.9.0-11-amd64-recovery-daf603fa-df99-4e6a-bc67-02cac7ca2fde' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod ext2
		set root='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint='mduuid/6ba89e9a1c2d0b18aa28937c8156ea9f'  daf603fa-df99-4e6a-bc67-02cac7ca2fde
		else
		  search --no-floppy --fs-uuid --set=root daf603fa-df99-4e6a-bc67-02cac7ca2fde
		fi
		echo	'Loading Linux 4.9.0-11-amd64 ...'
		linux	/boot/vmlinuz-4.9.0-11-amd64 root=UUID=daf603fa-df99-4e6a-bc67-02cac7ca2fde ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.9.0-11-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.
### 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
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] 
md4 : active raid1 sda4[2] sdb4[0]
      198135360 blocks super 1.2 [2/2] [UU]
      bitmap: 1/2 pages [4KB], 65536KB chunk

md1 : active raid1 sda1[2] sdb1[0]
      511936 blocks super 1.0 [2/2] [UU]
      
md3 : active raid1 sda3[2] sdb3[0]
      31440896 blocks super 1.2 [2/2] [UU]
      
unused devices: <none>
*********************** END /proc/mdstat

*********************** BEGIN LVM
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Sep 17 19:04 ata-CT240BX200SSD1_1604F0165F0C -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 17 19:04 ata-CT240BX200SSD1_1604F0165F0C-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 17 19:04 ata-CT240BX200SSD1_1604F0165F0C-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 17 19:04 ata-CT240BX200SSD1_1604F0165F0C-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep 17 19:04 ata-CT240BX200SSD1_1604F0165F0C-part4 -> ../../sda4
lrwxrwxrwx 1 root root  9 Sep 17 19:04 ata-CT240BX200SSD1_1604F01662B1 -> ../../sdb
lrwxrwxrwx 1 root root 10 Sep 17 19:04 ata-CT240BX200SSD1_1604F01662B1-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Sep 17 19:04 ata-CT240BX200SSD1_1604F01662B1-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Sep 17 19:04 ata-CT240BX200SSD1_1604F01662B1-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Sep 17 19:04 ata-CT240BX200SSD1_1604F01662B1-part4 -> ../../sdb4
lrwxrwxrwx 1 root root 10 Sep 17 19:04 dm-name-VGT-africa -> ../../dm-0
lrwxrwxrwx 1 root root 10 Sep 17 19:04 dm-name-VGT-offsite -> ../../dm-1
lrwxrwxrwx 1 root root 10 Sep 17 19:04 dm-uuid-LVM-yQDrXV2iox4ALGvtU21pYMEvSsRyRSDl7rxKL6XMvP40pdN0EzOQkx338u9yDFGw -> ../../dm-1
lrwxrwxrwx 1 root root 10 Sep 17 19:04 dm-uuid-LVM-yQDrXV2iox4ALGvtU21pYMEvSsRyRSDlJ69TtbhXdcarciGa0gmCSleVYT2wLMMu -> ../../dm-0
lrwxrwxrwx 1 root root  9 Sep 17 19:04 lvm-pv-uuid-ZQVat5-erzB-BVc4-Vfun-trjv-Keuo-0JrJPL -> ../../md4
lrwxrwxrwx 1 root root  9 Sep 17 19:04 md-name-thistle:1 -> ../../md1
lrwxrwxrwx 1 root root  9 Sep 17 19:04 md-name-thistle:3 -> ../../md3
lrwxrwxrwx 1 root root  9 Sep 17 19:04 md-name-thistle:4 -> ../../md4
lrwxrwxrwx 1 root root  9 Sep 17 19:04 md-uuid-6ba89e9a:1c2d0b18:aa28937c:8156ea9f -> ../../md3
lrwxrwxrwx 1 root root  9 Sep 17 19:04 md-uuid-a6fcec62:8151c509:d2bd0ab5:6b8e5c15 -> ../../md1
lrwxrwxrwx 1 root root  9 Sep 17 19:04 md-uuid-e78fd9e3:0a57ee1e:307d639c:62a428f2 -> ../../md4
lrwxrwxrwx 1 root root  9 Sep 17 19:04 wwn-0x500a0751f0165f0c -> ../../sda
lrwxrwxrwx 1 root root 10 Sep 17 19:04 wwn-0x500a0751f0165f0c-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 17 19:04 wwn-0x500a0751f0165f0c-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 17 19:04 wwn-0x500a0751f0165f0c-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep 17 19:04 wwn-0x500a0751f0165f0c-part4 -> ../../sda4
lrwxrwxrwx 1 root root  9 Sep 17 19:04 wwn-0x500a0751f01662b1 -> ../../sdb
lrwxrwxrwx 1 root root 10 Sep 17 19:04 wwn-0x500a0751f01662b1-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Sep 17 19:04 wwn-0x500a0751f01662b1-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Sep 17 19:04 wwn-0x500a0751f01662b1-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Sep 17 19:04 wwn-0x500a0751f01662b1-part4 -> ../../sdb4
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Sep 17 19:04 064d94a7-b670-486c-8fc6-2a36befe1daf -> ../../sdb2
lrwxrwxrwx 1 root root 10 Sep 17 19:04 817250f3-a303-4bff-b388-b73710870007 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Sep 17 19:04 876340a9-4b7b-4b7c-937e-5dde59873186 -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 17 19:04 9a23fd0b-f91c-40cd-8b45-7011e76c22a1 -> ../../dm-0
lrwxrwxrwx 1 root root  9 Sep 17 19:04 EDBB-AAD5 -> ../../md1
lrwxrwxrwx 1 root root  9 Sep 17 19:04 daf603fa-df99-4e6a-bc67-02cac7ca2fde -> ../../md3
*********************** END /dev/disk/by-uuid

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

Kernel: Linux 4.19.0-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages grub-efi-amd64 depends on:
ii  debconf [debconf-2.0]  1.5.71
ii  grub-common            2.02+dfsg1-20
ii  grub-efi-amd64-bin     2.02+dfsg1-20
ii  grub2-common           2.02+dfsg1-20
ii  ucf                    3.0038+nmu1

grub-efi-amd64 recommends no packages.

grub-efi-amd64 suggests no packages.

-- debconf information:
  grub2/kfreebsd_cmdline:
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline:
  grub2/force_efi_extra_removable: false
  grub2/update_nvram: true
  grub2/device_map_regenerated:
* grub2/linux_cmdline_default: quiet



More information about the Pkg-grub-devel mailing list