Bug#984488: grub-install: error: embedding is not possible w/ grub-pc_2.02-deb10u4

2021-03-04 Thread Colin Watson
On Thu, Mar 04, 2021 at 07:36:15AM +0100, Gerd Aschemann wrote:
>* What led up to the situation?
> 
>  (Automatic) update to grub-pc_2.02-deb10u4
> 
>* What exactly did you do (or not do) that was effective (or
>  ineffective)?
> 
>  apt update && apt dist-upgrade
> 
>* What was the outcome of this action?
> 
>  grub-install: error: embedding is not possible, but this is required for 
> RAID and LVM install.

Could you provide the full output of this command (it will be very long,
so I arranged for the output to be redirected to a file called
"grub-install.out"):

  for device in /dev/sda /dev/sdb; do sudo grub-install --debug 
--target=i386-pc --force --no-floppy "$device"; done >grub-install.out 2>&1

I'd also like to see the output of "sudo parted -s /dev/sda unit s
print" and "sudo parted -s /dev/sdb unit s print".

Thanks,

-- 
Colin Watson (he/him)  [cjwat...@debian.org]



Bug#984488: grub-install: error: embedding is not possible w/ grub-pc_2.02-deb10u4

2021-03-03 Thread Gerd Aschemann
Package: grub-pc
Version: 2.02+dfsg1-20+deb10u4
Severity: important

Dear Maintainer,

   * What led up to the situation?

 (Automatic) update to grub-pc_2.02-deb10u4

   * What exactly did you do (or not do) that was effective (or
 ineffective)?

 apt update && apt dist-upgrade

   * What was the outcome of this action?

 grub-install: error: embedding is not possible, but this is required for 
RAID and LVM install.

   * What outcome did you expect instead?

 Smoothless installation of Grub

Falling back to 2.02+dfsg1-20+deb10u3 solved the problem.
Note: The error might be a problem of one of the other grub packages 
(grub-pc-bin, grub-common, ...)


-- Package-specific info:

*** BEGIN /proc/mounts
/dev/mapper/ga20141221-wheezy / ext4 rw,relatime,errors=remount-ro 0 0
/dev/md127 /boot ext4 rw,relatime,stripe=4 0 0
/dev/mapper/ga20141221-isos /isos ext4 rw,relatime 0 0
/dev/mapper/ga20141221-lvarchive /archive ext4 rw,relatime 0 0
/dev/mapper/ga20141221-lvpublic /public ext4 rw,relatime 0 0
/dev/mapper/ga20140303-lvbackup /backup ext4 rw,relatime 0 0
/dev/mapper/ga20141221-wheezy /var/lib/docker/aufs ext4 
rw,relatime,errors=remount-ro 0 0
*** END /proc/mounts

*** BEGIN /boot/grub/device.map
(hd0)   /dev/disk/by-id/lvm-pv-uuid-gEVjjc-kbQE-SqvN-SzUk-bodU-0Tpc-nMC7Ry
(hd1)   /dev/disk/by-id/lvm-pv-uuid-dgfBl3-uXZv-C4ZB-3SzU-covO-TLfr-NDVCVR
(hd2)   /dev/disk/by-id/ata-HGST_HTS541010A9E680_JA10001029G5WR
(hd3)   /dev/disk/by-id/ata-HGST_HTS541010A9E680_JA10001029GANR
(hd4)   /dev/disk/by-id/ata-WDC_WD30EZRX-00D8PB0_WD-WMC4N1908988
(hd5)   /dev/disk/by-id/ata-WDC_WD30EZRX-00D8PB0_WD-WMC4N1865131
(hd6)   /dev/disk/by-id/ata-ST9500325AS_6VE0F0X6
*** END /boot/grub/device.map

*** 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 lvm
insmod ext2
set 
root='lvmid/z8arYE-CVx2-Obzw-75fA-o6jm-9l8c-eKgpQP/SxcJSl-tCPq-iLJw-s2qR-OsQ2-T83e-DqhUlo'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/z8arYE-CVx2-Obzw-75fA-o6jm-9l8c-eKgpQP/SxcJSl-tCPq-iLJw-s2qR-OsQ2-T83e-DqhUlo'
  95d18c99-d334-47ed-a4e9-fa9f77928351
else
  search --no-floppy --fs-uuid --set=root 95d18c99-d334-47ed-a4e9-fa9f77928351
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 ###
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-95d18c99-d334-47ed-a4e9-fa9f77928351' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid09
insmod ext2
set root='mduuid/84c9d30fadd349dcc5ddbb41b045ce54'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root 
--hint='mduuid/84c9d30fadd349dcc5ddbb41b045ce54'  
7f76fbd3-e2fc-4110-b4fa-d1f33668a8a6
else
  search --no-floppy --fs-uuid --set=root 
7f76fbd3-e2fc-4110-b4fa-d1f33668a8a6
fi