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

2019-09-17 Thread Steve McIntyre
On Tue, Sep 17, 2019 at 08:09:02PM +0100, Tony wrote:
>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.

So you're running in a known-unsupported configuration. In the past,
Grub was buggy and would ignore errors. In that situation, you could
get to the point where you'd think that an upgrade had worked but your
system would not boot. At least now you get to see the errors.

Please fix your configuration. There is no bug here IMHO.

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
"This dress doesn't reverse." -- Alden Spiess



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

2019-09-17 Thread Tony
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