Bug#948360: /usr/sbin/grub-install: Fatal error from grub-install when installing Debian 10.2.0 (but not 10.1.0) to UEFI.

Randolf Richardson randolf+debian at richardson.tw
Tue Jan 7 18:03:33 GMT 2020


Package: grub2-common
Version: 2.02+dfsg1-20
Severity: important
File: /usr/sbin/grub-install

Dear Maintainer,

When I install Debian 10.2.0 (from a USB memory stick that has the CD-ROM iso installation file written to it), the
installer always fails with fatal errors when attempting to install GRUB.  After rebooting, the GNU GRUB BASH command
line appears (for a manual boot?) instead of booting into Debian.

To fix this problem, I have to boot again from the installer, choose Rescue Mode, then from a shell run this command:

   grub-update && grub-install /dev/sda

This command also fails with the same fatal errors, but after rebooting GRUB starts properly and boots into Debian
automatically.  (I have not encountered this problem when installing Debian 10.1.0 in the past.)

This problem occurs consistently for me on a brand new Intel motherboard (approximately 1 month old), and on an older
Gigabyte motherboard (approximately 5 years old).  Turning off UEFI in the BIOS also doesn't solve this problem, and
the BIOS was updated on both systems to the most recent versions prior to installation (as is my standard practice
for all new installations regardless of Operating System used).

Thank you to everyone who has contributed to Debian Linux.  I'm still fairly new to Debian, in particular, but so far
I'm liking it a lot as it has been working well for me as a central file/VPN/firewall/Xen server OS at client sites,
for internet servers (web, DNS, eMail, FTP, etc.), etc.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/debian--vg-root / ext4 rw,relatime,errors=remount-ro 0 0
/dev/sda2 /boot ext2 rw,relatime,stripe=4 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
*********************** 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 lvm
insmod ext2
set root='lvmid/PyUBRe-Nqql-uIMn-esQ6-52HG-1mcB-eg4XUG/ZfOmgN-Zq0t-GawF-ixHW-OAuV-GmLZ-1jRngr'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint='lvmid/PyUBRe-Nqql-uIMn-esQ6-52HG-1mcB-eg4XUG/ZfOmgN-Zq0t-GawF-ixHW-OAuV-GmLZ-1jRngr'  3b28e22e-ebc1-4fe2-bdb6-8c7dd8438ca8
else
  search --no-floppy --fs-uuid --set=root 3b28e22e-ebc1-4fe2-bdb6-8c7dd8438ca8
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=C
  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-3b28e22e-ebc1-4fe2-bdb6-8c7dd8438ca8' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	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  dd9f0a1a-b2f5-44f3-ad0c-0a9d2cab2410
	else
	  search --no-floppy --fs-uuid --set=root dd9f0a1a-b2f5-44f3-ad0c-0a9d2cab2410
	fi
	echo	'Loading Linux 4.19.0-6-amd64 ...'
	linux	/vmlinuz-4.19.0-6-amd64 root=/dev/mapper/debian--vg-root ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-4.19.0-6-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-3b28e22e-ebc1-4fe2-bdb6-8c7dd8438ca8' {
	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-3b28e22e-ebc1-4fe2-bdb6-8c7dd8438ca8' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		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  dd9f0a1a-b2f5-44f3-ad0c-0a9d2cab2410
		else
		  search --no-floppy --fs-uuid --set=root dd9f0a1a-b2f5-44f3-ad0c-0a9d2cab2410
		fi
		echo	'Loading Linux 4.19.0-6-amd64 ...'
		linux	/vmlinuz-4.19.0-6-amd64 root=/dev/mapper/debian--vg-root ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/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-3b28e22e-ebc1-4fe2-bdb6-8c7dd8438ca8' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		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  dd9f0a1a-b2f5-44f3-ad0c-0a9d2cab2410
		else
		  search --no-floppy --fs-uuid --set=root dd9f0a1a-b2f5-44f3-ad0c-0a9d2cab2410
		fi
		echo	'Loading Linux 4.19.0-6-amd64 ...'
		linux	/vmlinuz-4.19.0-6-amd64 root=/dev/mapper/debian--vg-root ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-4.19.0-6-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
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN LVM
  --- Volume group ---
  VG Name               debian-vg
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <7.28 TiB
  PE Size               4.00 MiB
  Total PE              1907531
  Alloc PE / Size       1907349 / <7.28 TiB
  Free  PE / Size       182 / 728.00 MiB
  VG UUID               PyUBRe-Nqql-uIMn-esQ6-52HG-1mcB-eg4XUG
   
  --- Physical volume ---
  PV Name               /dev/sda3
  VG Name               debian-vg
  PV Size               <7.28 TiB / not usable 4.00 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              1907531
  Free PE               182
  Allocated PE          1907349
  PV UUID               12Xr2O-5Rr5-2dtR-RBJl-bOUl-fPiy-whNBcX
   
  --- Logical volume ---
  LV Path                /dev/debian-vg/root
  LV Name                root
  VG Name                debian-vg
  LV UUID                ZfOmgN-Zq0t-GawF-ixHW-OAuV-GmLZ-1jRngr
  LV Write Access        read/write
  LV Creation host, time debian, 2020-01-06 23:24:44 -0800
  LV Status              available
  # open                 1
  LV Size                <7.27 TiB
  Current LE             1905319
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0
   
  --- Logical volume ---
  LV Path                /dev/debian-vg/swap_1
  LV Name                swap_1
  VG Name                debian-vg
  LV UUID                fesj1b-2UnK-sHNk-8eHs-Pj2d-I4FK-EZ31zH
  LV Write Access        read/write
  LV Creation host, time debian, 2020-01-06 23:24:44 -0800
  LV Status              available
  # open                 2
  LV Size                <7.93 GiB
  Current LE             2030
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1
   
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Jan  7 09:04 ata-HL-DT-ST_DVDRAM_GH24NSC0_K7IF5EE4003 -> ../../sr0
lrwxrwxrwx 1 root root  9 Jan  7 09:04 ata-ST8000DM004-2CX188_ZCT0AY1Y -> ../../sda
lrwxrwxrwx 1 root root 10 Jan  7 09:04 ata-ST8000DM004-2CX188_ZCT0AY1Y-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan  7 09:04 ata-ST8000DM004-2CX188_ZCT0AY1Y-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan  7 09:04 ata-ST8000DM004-2CX188_ZCT0AY1Y-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jan  7 09:04 ata-ST8000DM004-2CX188_ZCT0AZNN -> ../../sdb
lrwxrwxrwx 1 root root 10 Jan  7 09:04 ata-ST8000DM004-2CX188_ZCT0AZNN-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jan  7 09:04 ata-ST8000DM004-2CX188_ZCT0AZNN-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Jan  7 09:04 ata-ST8000DM004-2CX188_ZCT0AZNN-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Jan  7 09:04 ata-ST8000DM004-2CX188_ZCT0AZNN-part4 -> ../../sdb4
lrwxrwxrwx 1 root root 10 Jan  7 09:04 dm-name-debian--vg-root -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jan  7 09:04 dm-name-debian--vg-swap_1 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jan  7 09:04 dm-uuid-LVM-PyUBReNqqluIMnesQ652HG1mcBeg4XUGZfOmgNZq0tGawFixHWOAuVGmLZ1jRngr -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jan  7 09:04 dm-uuid-LVM-PyUBReNqqluIMnesQ652HG1mcBeg4XUGfesj1b2UnKsHNk8eHsPj2dI4FKEZ31zH -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jan  7 09:04 lvm-pv-uuid-12Xr2O-5Rr5-2dtR-RBJl-bOUl-fPiy-whNBcX -> ../../sda3
lrwxrwxrwx 1 root root  9 Jan  7 09:04 usb-Generic-_Compact_Flash_058F63646476-0:1 -> ../../sdd
lrwxrwxrwx 1 root root  9 Jan  7 09:04 usb-Generic-_MS_MS-Pro_058F63646476-0:3 -> ../../sdf
lrwxrwxrwx 1 root root  9 Jan  7 09:04 usb-Generic-_SD_MMC_058F63646476-0:0 -> ../../sdc
lrwxrwxrwx 1 root root  9 Jan  7 09:04 usb-Generic-_SM_xD-Picture_058F63646476-0:2 -> ../../sde
lrwxrwxrwx 1 root root  9 Jan  7 09:04 wwn-0x5000c500b2a21740 -> ../../sda
lrwxrwxrwx 1 root root 10 Jan  7 09:04 wwn-0x5000c500b2a21740-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan  7 09:04 wwn-0x5000c500b2a21740-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan  7 09:04 wwn-0x5000c500b2a21740-part3 -> ../../sda3
lrwxrwxrwx 1 root root  9 Jan  7 09:04 wwn-0x5000c500b2a31dda -> ../../sdb
lrwxrwxrwx 1 root root 10 Jan  7 09:04 wwn-0x5000c500b2a31dda-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jan  7 09:04 wwn-0x5000c500b2a31dda-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Jan  7 09:04 wwn-0x5000c500b2a31dda-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Jan  7 09:04 wwn-0x5000c500b2a31dda-part4 -> ../../sdb4
lrwxrwxrwx 1 root root  9 Jan  7 09:04 wwn-0x5001480000000000 -> ../../sr0
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jan  7 09:04 3b28e22e-ebc1-4fe2-bdb6-8c7dd8438ca8 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jan  7 09:04 71C4-E4AC -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan  7 09:04 F08CAF098CAEC984 -> ../../sdb4
lrwxrwxrwx 1 root root 10 Jan  7 09:04 dd9f0a1a-b2f5-44f3-ad0c-0a9d2cab2410 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jan  7 09:04 e9fa1a3d-ac31-437d-a0ed-255195f7409f -> ../../dm-1
*********************** END /dev/disk/by-uuid

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

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

Versions of packages grub2-common depends on:
ii  dpkg                1.19.7
ii  grub-common         2.02+dfsg1-20
ii  libc6               2.28-10
ii  libdevmapper1.02.1  2:1.02.155-3
ii  libefiboot1         37-2
ii  libefivar1          37-2
ii  liblzma5            5.2.4-1

grub2-common recommends no packages.

grub2-common suggests no packages.

-- no debconf information



More information about the Pkg-grub-devel mailing list