Bug#908200: grub-efi-amd64: Setting alternative bootloader-id makes system unbootable

Milan Čermák milan.cermak at mailbox.org
Tue Nov 17 10:47:27 GMT 2020


Package: grub-efi-amd64
Version: 2.02+dfsg1-20+deb10u2
Followup-For: Bug #908200

Dear Maintainer,

*** Reporter, please consider answering these questions, where 
appropriate ***

    * What led up to the situation?
    On my server, I'd like to have the grub installed on all disks of 
the RAID.
    I'd like to be able to see which disk was the system booted from. 
Because of that,
    I'd like to use custom bootloader-ids to distinguish between the 
boot disks.
    However, when the grub is installed with alternative bootloader-id, 
it fails to locate
    its config file.

    * What exactly did you do (or not do) that was effective (or
      ineffective)?
    I installed the grub with the command:
    # grub-install --bootloader-id=debian-sda /dev/sda1
    This installs grub into /EFI/debian-sda directory including the 
config file grub.cfg.
    However, the first stage of grub hardcodes the path to be /EFI/debian,
    and fails to load the config file.
    As a workaround, the config file can be manually copied into 
/EFI/debian directory.

    * What was the outcome of this action?
    System failed to boot, being stuck at first stage grub prompt.

    * What outcome did you expect instead?
    First stage of GRUB should correctly locate the config file grub.cfg 
according to
    the bootloader-id and proceed to the second stage.

*** End of the template - remove these template lines ***


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/rpool-ROOT / ext4 rw,relatime,errors=remount-ro 0 0
/dev/sdd1 /boot/efi-sdd vfat 
rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 
0 0
/dev/sdc1 /boot/efi-sdc vfat 
rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 
0 0
/dev/sda1 /boot/efi-sda vfat 
rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 
0 0
/dev/sdb1 /boot/efi-sdb 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 part_gpt
insmod part_gpt
insmod part_gpt
insmod diskfilter
insmod mdraid1x
insmod diskfilter
insmod mdraid1x
insmod lvm
insmod ext2
set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ'
if [ x$feature_platform_search_hint = xy ]; then
   search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ' 
  cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
else
   search --no-floppy --fs-uuid --set=root 
cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
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=cs_CZ
   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-cac3cf08-b3b0-4e95-97ee-cfb52c19cedd' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod part_gpt
	insmod part_gpt
	insmod part_gpt
	insmod diskfilter
	insmod mdraid1x
	insmod diskfilter
	insmod mdraid1x
	insmod lvm
	insmod ext2
	set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ' 
  cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
	else
	  search --no-floppy --fs-uuid --set=root 
cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
	fi
	echo	'Loading Linux 4.19.0-12-amd64 ...'
	linux	/boot/vmlinuz-4.19.0-12-amd64 root=/dev/mapper/rpool-ROOT ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-4.19.0-12-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 
'gnulinux-advanced-cac3cf08-b3b0-4e95-97ee-cfb52c19cedd' {
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-12-amd64' --class debian 
--class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-4.19.0-12-amd64-advanced-cac3cf08-b3b0-4e95-97ee-cfb52c19cedd' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ' 
  cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
		else
		  search --no-floppy --fs-uuid --set=root 
cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
		fi
		echo	'Loading Linux 4.19.0-12-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-12-amd64 root=/dev/mapper/rpool-ROOT ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-12-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-12-amd64 (recovery 
mode)' --class debian --class gnu-linux --class gnu --class os 
$menuentry_id_option 
'gnulinux-4.19.0-12-amd64-recovery-cac3cf08-b3b0-4e95-97ee-cfb52c19cedd' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ' 
  cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
		else
		  search --no-floppy --fs-uuid --set=root 
cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
		fi
		echo	'Loading Linux 4.19.0-12-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-12-amd64 root=/dev/mapper/rpool-ROOT ro single
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-12-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-11-amd64' --class debian 
--class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-4.19.0-11-amd64-advanced-cac3cf08-b3b0-4e95-97ee-cfb52c19cedd' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ' 
  cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
		else
		  search --no-floppy --fs-uuid --set=root 
cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
		fi
		echo	'Loading Linux 4.19.0-11-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-11-amd64 root=/dev/mapper/rpool-ROOT ro  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.0-11-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 4.19.0-11-amd64 (recovery 
mode)' --class debian --class gnu-linux --class gnu --class os 
$menuentry_id_option 
'gnulinux-4.19.0-11-amd64-recovery-cac3cf08-b3b0-4e95-97ee-cfb52c19cedd' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/93D22x-Q7Pk-Ve50-ZBKx-NdsE-rNST-agDXNQ' 
  cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
		else
		  search --no-floppy --fs-uuid --set=root 
cac3cf08-b3b0-4e95-97ee-cfb52c19cedd
		fi
		echo	'Loading Linux 4.19.0-11-amd64 ...'
		linux	/boot/vmlinuz-4.19.0-11-amd64 root=/dev/mapper/rpool-ROOT ro single
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.19.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 ###
menuentry 'Debian GNU/Linux 9 (stretch) (on 
/dev/mapper/rpool-ROOT--backup)' --class debian --class gnu-linux 
--class gnu --class os $menuentry_id_option 
'osprober-gnulinux-simple-2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d' {
	insmod part_gpt
	insmod part_gpt
	insmod part_gpt
	insmod part_gpt
	insmod diskfilter
	insmod mdraid1x
	insmod diskfilter
	insmod mdraid1x
	insmod lvm
	insmod ext2
	set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK' 
  2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
	else
	  search --no-floppy --fs-uuid --set=root 
2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
	fi
	linux /vmlinuz root=/dev/dm-14
	initrd /initrd.img
}
submenu 'Advanced options for Debian GNU/Linux 9 (stretch) (on 
/dev/mapper/rpool-ROOT--backup)' $menuentry_id_option 
'osprober-gnulinux-advanced-2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d' {
	menuentry 'Debian GNU/Linux 9 (stretch) (on 
/dev/mapper/rpool-ROOT--backup)' --class gnu-linux --class gnu --class 
os $menuentry_id_option 
'osprober-gnulinux-/vmlinuz--2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d' {
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK' 
  2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		else
		  search --no-floppy --fs-uuid --set=root 
2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		fi
		linux /vmlinuz root=/dev/dm-14
		initrd /initrd.img
	}
	menuentry 'Debian GNU/Linux 9 (stretch) (on 
/dev/mapper/rpool-ROOT--backup)' --class gnu-linux --class gnu --class 
os $menuentry_id_option 
'osprober-gnulinux-/vmlinuz--2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d' {
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK' 
  2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		else
		  search --no-floppy --fs-uuid --set=root 
2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		fi
		linux /vmlinuz root=/dev/dm-14
		initrd /initrd.img
	}
	menuentry 'Debian GNU/Linux 9 (stretch) (on 
/dev/mapper/rpool-ROOT--backup)' --class gnu-linux --class gnu --class 
os $menuentry_id_option 
'osprober-gnulinux-/vmlinuz--2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d' {
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK' 
  2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		else
		  search --no-floppy --fs-uuid --set=root 
2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		fi
		linux /vmlinuz root=/dev/dm-14
		initrd /initrd.img.old
	}
	menuentry 'Debian GNU/Linux 9 (stretch) (on 
/dev/mapper/rpool-ROOT--backup)' --class gnu-linux --class gnu --class 
os $menuentry_id_option 
'osprober-gnulinux-/boot/vmlinuz-4.9.0-9-amd64--2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d' 
{
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK' 
  2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		else
		  search --no-floppy --fs-uuid --set=root 
2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		fi
		linux /boot/vmlinuz-4.9.0-9-amd64 root=/dev/dm-14
		initrd /boot/initrd.img-4.9.0-9-amd64
	}
	menuentry 'Debian GNU/Linux 9 (stretch) (on 
/dev/mapper/rpool-ROOT--backup)' --class gnu-linux --class gnu --class 
os $menuentry_id_option 
'osprober-gnulinux-/vmlinuz--2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d' {
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK' 
  2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		else
		  search --no-floppy --fs-uuid --set=root 
2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		fi
		linux /vmlinuz root=/dev/dm-14
		initrd /initrd.img
	}
	menuentry 'Debian GNU/Linux 9 (stretch) (on 
/dev/mapper/rpool-ROOT--backup)' --class gnu-linux --class gnu --class 
os $menuentry_id_option 
'osprober-gnulinux-/vmlinuz--2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d' {
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK' 
  2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		else
		  search --no-floppy --fs-uuid --set=root 
2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		fi
		linux /vmlinuz root=/dev/dm-14
		initrd /initrd.img
	}
	menuentry 'Debian GNU/Linux 9 (stretch) (on 
/dev/mapper/rpool-ROOT--backup)' --class gnu-linux --class gnu --class 
os $menuentry_id_option 
'osprober-gnulinux-/vmlinuz--2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d' {
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK' 
  2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		else
		  search --no-floppy --fs-uuid --set=root 
2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		fi
		linux /vmlinuz root=/dev/dm-14
		initrd /initrd.img.old
	}
	menuentry 'Debian GNU/Linux 9 (stretch) (on 
/dev/mapper/rpool-ROOT--backup)' --class gnu-linux --class gnu --class 
os $menuentry_id_option 
'osprober-gnulinux-/vmlinuz.old--2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d' {
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod part_gpt
		insmod diskfilter
		insmod mdraid1x
		insmod diskfilter
		insmod mdraid1x
		insmod lvm
		insmod ext2
		set 
root='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root 
--hint='lvmid/fU7oar-P0W5-EPWN-LQ7j-hovh-qq8x-TkmFBM/V33gG1-b8sy-exXU-sX1J-bZHD-Vsc7-T8UcyK' 
  2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		else
		  search --no-floppy --fs-uuid --set=root 
2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d
		fi
		linux /vmlinuz.old root=/dev/dm-14
		initrd /initrd.img.old
	}
}

### 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]
md1 : active raid1 sdd2[3] sdc2[2]
       1953269402 blocks super 1.2 [2/2] [UU]

md0 : active raid1 sda2[3] sdb2[2]
       1953136711 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 Nov 16 11:48 
ata-HL-DT-ST_DVDRAM_GTC0N_KZSJ2RI5712 -> ../../sr0
lrwxrwxrwx 1 root root  9 Nov 16 11:48 ata-ST2000VN004-2E4164_Z521SVAC 
-> ../../sdb
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
ata-ST2000VN004-2E4164_Z521SVAC-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
ata-ST2000VN004-2E4164_Z521SVAC-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Nov 16 11:48 ata-ST2000VN004-2E4164_Z521TLLL 
-> ../../sda
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
ata-ST2000VN004-2E4164_Z521TLLL-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
ata-ST2000VN004-2E4164_Z521TLLL-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Nov 16 11:48 
ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M0RSETSL -> ../../sdd
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M0RSETSL-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M0RSETSL-part2 -> ../../sdd2
lrwxrwxrwx 1 root root  9 Nov 16 11:48 
ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M5YDJ857 -> ../../sdc
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M5YDJ857-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
ata-WDC_WD20EFRX-68EUZN0_WD-WCC4M5YDJ857-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Nov 16 11:48 dm-name-rpool-ROOT -> ../../dm-0
lrwxrwxrwx 1 root root 11 Nov 16 11:48 dm-name-rpool-ROOT--backup -> 
../../dm-14
lrwxrwxrwx 1 root root 11 Nov 16 11:48 dm-name-rpool-backup -> ../../dm-12
lrwxrwxrwx 1 root root 10 Nov 16 11:48 dm-name-rpool-downloads -> ../../dm-5
lrwxrwxrwx 1 root root 11 Nov 16 11:48 dm-name-rpool-export -> ../../dm-11
lrwxrwxrwx 1 root root 11 Nov 16 11:48 dm-name-rpool-games -> ../../dm-13
lrwxrwxrwx 1 root root 10 Nov 16 11:48 dm-name-rpool-home -> ../../dm-2
lrwxrwxrwx 1 root root 10 Nov 16 11:48 dm-name-rpool-mail -> ../../dm-3
lrwxrwxrwx 1 root root 10 Nov 16 11:48 dm-name-rpool-music -> ../../dm-7
lrwxrwxrwx 1 root root 10 Nov 16 11:48 dm-name-rpool-photos -> ../../dm-8
lrwxrwxrwx 1 root root 10 Nov 16 11:48 dm-name-rpool-podcast -> ../../dm-9
lrwxrwxrwx 1 root root 10 Nov 16 11:48 dm-name-rpool-postgress -> ../../dm-6
lrwxrwxrwx 1 root root 10 Nov 16 11:48 dm-name-rpool-svn -> ../../dm-4
lrwxrwxrwx 1 root root 10 Nov 16 11:48 dm-name-rpool-swap -> ../../dm-1
lrwxrwxrwx 1 root root 11 Nov 16 11:48 dm-name-rpool-tftpboot -> ../../dm-15
lrwxrwxrwx 1 root root 11 Nov 16 11:48 dm-name-rpool-video -> ../../dm-10
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBM0U1yashSc3GJyoMSuhmlmxA73V0ZzwNP 
-> ../../dm-7
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBM2TRE7AtQCM7hpo2JLtFje3CF45jB1Rte 
-> ../../dm-5
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBM2fDqS5vdD61MV2ZB6XpbMD2IrrpC2B7q 
-> ../../dm-2
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBM93D22xQ7PkVe50ZBKxNdsErNSTagDXNQ 
-> ../../dm-0
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMAakJK0az26KZBgKoPqlbdgMXrWUlyupg 
-> ../../dm-8
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMELf2TZKDiTJK5qb1MleLy5IFPzIwzups 
-> ../../dm-10
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMM3nB0vwPZwjjwvnwQMjiA7q63Hs66W7L 
-> ../../dm-6
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMRr99kGNpufut8w5mgV2guGNEMjZiQnz5 
-> ../../dm-15
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMUaWkTCkOsdW0TFcb4KoV1ZhS3IiceiwS 
-> ../../dm-4
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMV33gG1b8syexXUsX1JbZHDVsc7T8UcyK 
-> ../../dm-14
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMdDeSWaCtbw3yvimg7dNA27yRDDYoFW7O 
-> ../../dm-9
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMlBcNLq36d58FtAQUpOOQbPyzNCAoCSpZ 
-> ../../dm-1
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMlIyzVGMdNZs5bN0lJFoiDusKAAPj00KF 
-> ../../dm-12
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMuj2A9HIA57XRHldsLpu1j3UTWnV6GlOK 
-> ../../dm-11
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMv520KLbkk10gZmxg3t3b2r7LU5ekeCMJ 
-> ../../dm-13
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
dm-uuid-LVM-fU7oarP0W5EPWNLQ7jhovhqq8xTkmFBMzrRHMn37rpRBRFJxoIYkzW9gi8980pzX 
-> ../../dm-3
lrwxrwxrwx 1 root root  9 Nov 16 11:48 
lvm-pv-uuid-3H0VMm-e1kK-TT5v-vnHW-0Kyd-2qb5-E0yEWX -> ../../md1
lrwxrwxrwx 1 root root  9 Nov 16 11:48 
lvm-pv-uuid-pTN30l-9dgD-U86W-K9MZ-C8qi-nyqh-0ObIc1 -> ../../md0
lrwxrwxrwx 1 root root  9 Nov 16 11:48 md-name-morpork:0 -> ../../md0
lrwxrwxrwx 1 root root  9 Nov 16 11:48 md-name-morpork:1 -> ../../md1
lrwxrwxrwx 1 root root  9 Nov 16 11:48 
md-uuid-48c98626:3a6af55f:049dffba:459b39a4 -> ../../md0
lrwxrwxrwx 1 root root  9 Nov 16 11:48 
md-uuid-9f50910f:781db145:151ea3dd:bd2904d7 -> ../../md1
lrwxrwxrwx 1 root root  9 Nov 16 11:48 wwn-0x5000c500a30a3a96 -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov 16 11:48 wwn-0x5000c500a30a3a96-part1 -> 
../../sdb1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 wwn-0x5000c500a30a3a96-part2 -> 
../../sdb2
lrwxrwxrwx 1 root root  9 Nov 16 11:48 wwn-0x5000c500a30ab438 -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 16 11:48 wwn-0x5000c500a30ab438-part1 -> 
../../sda1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 wwn-0x5000c500a30ab438-part2 -> 
../../sda2
lrwxrwxrwx 1 root root  9 Nov 16 11:48 wwn-0x5001480000000000 -> ../../sr0
lrwxrwxrwx 1 root root  9 Nov 16 11:48 wwn-0x50014ee20c8cdf84 -> ../../sdd
lrwxrwxrwx 1 root root 10 Nov 16 11:48 wwn-0x50014ee20c8cdf84-part1 -> 
../../sdd1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 wwn-0x50014ee20c8cdf84-part2 -> 
../../sdd2
lrwxrwxrwx 1 root root  9 Nov 16 11:48 wwn-0x50014ee2b737e8cb -> ../../sdc
lrwxrwxrwx 1 root root 10 Nov 16 11:48 wwn-0x50014ee2b737e8cb-part1 -> 
../../sdc1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 wwn-0x50014ee2b737e8cb-part2 -> 
../../sdc2
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
0cc8c8bc-17cb-49ba-ac24-0e136214fff1 -> ../../dm-8
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
2f27be7a-05b5-43f5-a4b1-b6a328ddbf7d -> ../../dm-14
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
4ba45cdf-4bcf-4c01-b408-303c4a558542 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
4fb1b44e-0a39-4d66-b0dc-6ef9dcec9262 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
5305bfa3-8f42-4bdc-b588-894fe0bea6d3 -> ../../dm-5
lrwxrwxrwx 1 root root  9 Nov 16 11:48 5f66420cdd4cc80d -> ../../sr0
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
6fc0867c-e26b-491e-a634-a0df092b19e5 -> ../../dm-6
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
8640dd25-a44a-4377-bc4d-eb8eea68845c -> ../../dm-13
lrwxrwxrwx 1 root root 10 Nov 16 11:48 875E-9423 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
8a091244-7488-4e22-a851-a3e8250dce6a -> ../../dm-4
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
8afdfc6d-d7a0-411a-a149-bea8051d3a2b -> ../../dm-12
lrwxrwxrwx 1 root root 10 Nov 16 11:48 9224-B9B1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 B4AB-D52E -> ../../sdc1
lrwxrwxrwx 1 root root 10 Nov 16 11:48 D0C2-9C92 -> ../../sda1
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
a6295da6-7701-4c55-8d11-05695525d983 -> ../../dm-10
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
a7ca2062-1de0-4889-a4c7-5f8dd09b3fb1 -> ../../dm-7
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
b9d158ff-a1c1-4e0f-a055-94765d1aea4f -> ../../dm-2
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
c14025c6-9eb3-42cd-8b5a-5b1b9df0924b -> ../../dm-11
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
cac3cf08-b3b0-4e95-97ee-cfb52c19cedd -> ../../dm-0
lrwxrwxrwx 1 root root 11 Nov 16 11:48 
dc19991a-349e-40c5-be9c-f46c75c14f3a -> ../../dm-15
lrwxrwxrwx 1 root root 10 Nov 16 11:48 
ded8d058-06bc-44f9-923d-115f69a9a21d -> ../../dm-9
*********************** END /dev/disk/by-uuid

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

Kernel: Linux 4.19.0-12-amd64 (SMP w/4 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8), 
LANGUAGE=cs_CZ.UTF-8 (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+deb10u2
ii  grub-efi-amd64-bin     2.02+dfsg1-20+deb10u2
ii  grub2-common           2.02+dfsg1-20+deb10u2
ii  ucf                    3.0038+nmu1

grub-efi-amd64 recommends no packages.

grub-efi-amd64 suggests no packages.

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



More information about the Pkg-grub-devel mailing list