Bug#945404: grub2-common: '/boot/grub/.background_cache.png' is not created on LUKS encrypted system

Robert mds at gmx.at
Sun Nov 24 12:15:25 GMT 2019


Package: grub2-common
Version: 2.04-4
Severity: normal

Dear Maintainer,

on a newly installed system with full disk encryption, update-grub does not
create '/boot/grub/.background_cache.png'.

It looks like the command 'if is_path_readable_by_grub "${1}"; then' in line
100 in '/etc/grub.d/05_debian_theme' always returns "true", and therefore
'/boot/grub/.background_cache.png' is never created.

Regard,
Robert



-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/deb-root / ext4 rw,noatime,discard,errors=remount-ro 0 0
/dev/sdb2 /boot ext4 rw,noatime,discard 0 0
/dev/sdc1 /mnt/M4-CT256M4SSD2 ext4 rw,noatime,discard 0 0
/dev/mapper/deb-home /home ext4 rw,noatime,discard 0 0
/dev/sdb1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /run/user/1000/doc fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
/dev/sda3 /media/xbertl/8482A44682A43E94 fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096 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 ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  05145827-5aa1-40ac-b88b-9815aeebafc1
else
  search --no-floppy --fs-uuid --set=root 05145827-5aa1-40ac-b88b-9815aeebafc1
fi
    font="/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 ###
insmod part_gpt
insmod ext2
set root='hd1,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  05145827-5aa1-40ac-b88b-9815aeebafc1
else
  search --no-floppy --fs-uuid --set=root 05145827-5aa1-40ac-b88b-9815aeebafc1
fi
insmod png
if background_image /grub/.background_cache.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### 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-91aaf818-8fe5-47c8-a158-8cbb82730b2d' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd1,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  05145827-5aa1-40ac-b88b-9815aeebafc1
	else
	  search --no-floppy --fs-uuid --set=root 05145827-5aa1-40ac-b88b-9815aeebafc1
	fi
	echo	'Loading Linux 5.3.0-2-amd64 ...'
	linux	/vmlinuz-5.3.0-2-amd64 root=/dev/mapper/deb-root ro  quiet mitigations=off
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-5.3.0-2-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-91aaf818-8fe5-47c8-a158-8cbb82730b2d' {
	menuentry 'Debian GNU/Linux, with Linux 5.3.0-2-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-2-amd64-advanced-91aaf818-8fe5-47c8-a158-8cbb82730b2d' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd1,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  05145827-5aa1-40ac-b88b-9815aeebafc1
		else
		  search --no-floppy --fs-uuid --set=root 05145827-5aa1-40ac-b88b-9815aeebafc1
		fi
		echo	'Loading Linux 5.3.0-2-amd64 ...'
		linux	/vmlinuz-5.3.0-2-amd64 root=/dev/mapper/deb-root ro  quiet mitigations=off
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-5.3.0-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 5.3.0-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-2-amd64-recovery-91aaf818-8fe5-47c8-a158-8cbb82730b2d' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd1,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  05145827-5aa1-40ac-b88b-9815aeebafc1
		else
		  search --no-floppy --fs-uuid --set=root 05145827-5aa1-40ac-b88b-9815aeebafc1
		fi
		echo	'Loading Linux 5.3.0-2-amd64 ...'
		linux	/vmlinuz-5.3.0-2-amd64 root=/dev/mapper/deb-root ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-5.3.0-2-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 5.3.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-1-amd64-advanced-91aaf818-8fe5-47c8-a158-8cbb82730b2d' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd1,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  05145827-5aa1-40ac-b88b-9815aeebafc1
		else
		  search --no-floppy --fs-uuid --set=root 05145827-5aa1-40ac-b88b-9815aeebafc1
		fi
		echo	'Loading Linux 5.3.0-1-amd64 ...'
		linux	/vmlinuz-5.3.0-1-amd64 root=/dev/mapper/deb-root ro  quiet mitigations=off
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-5.3.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 5.3.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-1-amd64-recovery-91aaf818-8fe5-47c8-a158-8cbb82730b2d' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd1,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  05145827-5aa1-40ac-b88b-9815aeebafc1
		else
		  search --no-floppy --fs-uuid --set=root 05145827-5aa1-40ac-b88b-9815aeebafc1
		fi
		echo	'Loading Linux 5.3.0-1-amd64 ...'
		linux	/vmlinuz-5.3.0-1-amd64 root=/dev/mapper/deb-root ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-5.3.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 5.2.0-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.2.0-3-amd64-advanced-91aaf818-8fe5-47c8-a158-8cbb82730b2d' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd1,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  05145827-5aa1-40ac-b88b-9815aeebafc1
		else
		  search --no-floppy --fs-uuid --set=root 05145827-5aa1-40ac-b88b-9815aeebafc1
		fi
		echo	'Loading Linux 5.2.0-3-amd64 ...'
		linux	/vmlinuz-5.2.0-3-amd64 root=/dev/mapper/deb-root ro  quiet mitigations=off
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-5.2.0-3-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 5.2.0-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.2.0-3-amd64-recovery-91aaf818-8fe5-47c8-a158-8cbb82730b2d' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd1,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt2 --hint-efi=hd1,gpt2 --hint-baremetal=ahci1,gpt2  05145827-5aa1-40ac-b88b-9815aeebafc1
		else
		  search --no-floppy --fs-uuid --set=root 05145827-5aa1-40ac-b88b-9815aeebafc1
		fi
		echo	'Loading Linux 5.2.0-3-amd64 ...'
		linux	/vmlinuz-5.2.0-3-amd64 root=/dev/mapper/deb-root ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-5.2.0-3-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 'Windows Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-FF86-FC9D' {
	insmod part_gpt
	insmod fat
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  FF86-FC9D
	else
	  search --no-floppy --fs-uuid --set=root FF86-FC9D
	fi
	chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
### 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 /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Nov 24 09:40 ata-Crucial_CT512MX100SSD1_14240C5397CC -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 24 09:40 ata-Crucial_CT512MX100SSD1_14240C5397CC-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 24 09:40 ata-Crucial_CT512MX100SSD1_14240C5397CC-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 24 09:40 ata-Crucial_CT512MX100SSD1_14240C5397CC-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov 24 09:40 ata-Crucial_CT512MX100SSD1_14240C5397CC-part4 -> ../../sda4
lrwxrwxrwx 1 root root  9 Nov 24 09:40 ata-M4-CT256M4SSD2_00000000123809161B4C -> ../../sdc
lrwxrwxrwx 1 root root 10 Nov 24 09:40 ata-M4-CT256M4SSD2_00000000123809161B4C-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 Nov 24 09:40 ata-TOSHIBA-TR150_56UB609BK8ZU -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov 24 09:40 ata-TOSHIBA-TR150_56UB609BK8ZU-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov 24 09:40 ata-TOSHIBA-TR150_56UB609BK8ZU-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Nov 24 09:40 ata-TOSHIBA-TR150_56UB609BK8ZU-part3 -> ../../sdb3
lrwxrwxrwx 1 root root 10 Nov 24 09:40 dm-name-crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Nov 24 09:40 dm-name-deb-home -> ../../dm-2
lrwxrwxrwx 1 root root 10 Nov 24 09:40 dm-name-deb-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Nov 24 09:40 dm-name-deb-swap -> ../../dm-3
lrwxrwxrwx 1 root root 10 Nov 24 09:40 dm-uuid-CRYPT-LUKS1-04db8ee4d3514ad2838c364082ac008e-crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Nov 24 09:40 dm-uuid-LVM-1jjvuoxAT0YyazNTK5x7bjGuY9GBBWEqO34VlZpl70M1gYNx9zrrXhnLyQGKIymf -> ../../dm-2
lrwxrwxrwx 1 root root 10 Nov 24 09:40 dm-uuid-LVM-1jjvuoxAT0YyazNTK5x7bjGuY9GBBWEqQp28uLZjjHeeSnl1cotjH2MxqnuPyN2I -> ../../dm-1
lrwxrwxrwx 1 root root 10 Nov 24 09:40 dm-uuid-LVM-1jjvuoxAT0YyazNTK5x7bjGuY9GBBWEqZr8Y2yFQ7n0wtlcDlwn163Y1A2do6vGP -> ../../dm-3
lrwxrwxrwx 1 root root 10 Nov 24 09:40 lvm-pv-uuid-fazEaO-bpEX-sApX-3ryg-KZ4k-G2L2-E63u6X -> ../../dm-0
lrwxrwxrwx 1 root root  9 Nov 24 09:40 wwn-0x500a075109161b4c -> ../../sdc
lrwxrwxrwx 1 root root 10 Nov 24 09:40 wwn-0x500a075109161b4c-part1 -> ../../sdc1
lrwxrwxrwx 1 root root  9 Nov 24 09:40 wwn-0x500a07510c5397cc -> ../../sda
lrwxrwxrwx 1 root root 10 Nov 24 09:40 wwn-0x500a07510c5397cc-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 24 09:40 wwn-0x500a07510c5397cc-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Nov 24 09:40 wwn-0x500a07510c5397cc-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov 24 09:40 wwn-0x500a07510c5397cc-part4 -> ../../sda4
lrwxrwxrwx 1 root root  9 Nov 24 09:40 wwn-0x5e83a972004af787 -> ../../sdb
lrwxrwxrwx 1 root root 10 Nov 24 09:40 wwn-0x5e83a972004af787-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov 24 09:40 wwn-0x5e83a972004af787-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Nov 24 09:40 wwn-0x5e83a972004af787-part3 -> ../../sdb3
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Nov 24 09:40 04db8ee4-d351-4ad2-838c-364082ac008e -> ../../sdb3
lrwxrwxrwx 1 root root 10 Nov 24 09:40 05145827-5aa1-40ac-b88b-9815aeebafc1 -> ../../sdb2
lrwxrwxrwx 1 root root 10 Nov 24 09:40 1785-6CC6 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Nov 24 09:40 18321DE8321DCB9E -> ../../sda4
lrwxrwxrwx 1 root root 10 Nov 24 09:40 22e3bb30-bb2e-489f-8ec6-31e117a61938 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Nov 24 09:40 41caffb6-d3f4-4354-af8a-b17a926f809f -> ../../dm-2
lrwxrwxrwx 1 root root 10 Nov 24 09:40 8482A44682A43E94 -> ../../sda3
lrwxrwxrwx 1 root root 10 Nov 24 09:40 91aaf818-8fe5-47c8-a158-8cbb82730b2d -> ../../dm-1
lrwxrwxrwx 1 root root 10 Nov 24 09:40 FF86-FC9D -> ../../sda1
lrwxrwxrwx 1 root root 10 Nov 24 09:40 c008b347-7ba1-4fba-819a-928de54d97f0 -> ../../sdc1
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.3.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /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.04-4
ii  libc6               2.29-3
ii  libdevmapper1.02.1  2:1.02.155-3
ii  libefiboot1         37-2
ii  libefivar1          37-2
ii  liblzma5            5.2.4-1+b1

grub2-common recommends no packages.

grub2-common suggests no packages.

-- no debconf information



More information about the Pkg-grub-devel mailing list