Bug#1012838: grub-pc: updating grub-pc in offline mode on reboot does not add other OS entries like Windows 10

Markus steinko at mail.de
Wed Jun 15 09:22:24 BST 2022


Package: grub-pc
Version: 2.06-3
Severity: normal
Tags: newcomer

Dear Maintainer,



I updated grub-pc, grub-common, grub-pc-bin and grub2-common in offline mode on
reboot with "pkcon refresh force && pkcon get-updates && pkcon -d update &&
pkcon offline-get-prepared && pkcon offline-trigger". No errors appeared but
after the second reboot there where no other grub entries left to be chosen but
the default debian installation. The Windows 10 entry has not been added back
and will only be available for example due to using "update-grub" while running
the default system or with reconfiguring grub-pc via dpkg.


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/sdb1 / ext4 rw,relatime,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="${saved_entry}"
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_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  29e2e356-f1ea-4790-bf38-abcf37fbe85b
else
  search --no-floppy --fs-uuid --set=root 29e2e356-f1ea-4790-bf38-abcf37fbe85b
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1680x1050-24
  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 ###
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  29e2e356-f1ea-4790-bf38-abcf37fbe85b
else
  search --no-floppy --fs-uuid --set=root 29e2e356-f1ea-4790-bf38-abcf37fbe85b
fi
insmod png
if background_image /usr/share/desktop-base/homeworld-theme/grub/grub-4x3.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=1680x1050-24
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-29e2e356-f1ea-4790-bf38-abcf37fbe85b' {
	savedefault
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  29e2e356-f1ea-4790-bf38-abcf37fbe85b
	else
	  search --no-floppy --fs-uuid --set=root 29e2e356-f1ea-4790-bf38-abcf37fbe85b
	fi
	echo	'Loading Linux 5.18.0-1-amd64 ...'
	linux	/boot/vmlinuz-5.18.0-1-amd64 root=UUID=29e2e356-f1ea-4790-bf38-abcf37fbe85b ro  splash quiet loglevel=0
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-5.18.0-1-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-29e2e356-f1ea-4790-bf38-abcf37fbe85b' {
	menuentry 'Debian GNU/Linux, with Linux 5.18.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.18.0-1-amd64-advanced-29e2e356-f1ea-4790-bf38-abcf37fbe85b' {
	savedefault
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  29e2e356-f1ea-4790-bf38-abcf37fbe85b
		else
		  search --no-floppy --fs-uuid --set=root 29e2e356-f1ea-4790-bf38-abcf37fbe85b
		fi
		echo	'Loading Linux 5.18.0-1-amd64 ...'
		linux	/boot/vmlinuz-5.18.0-1-amd64 root=UUID=29e2e356-f1ea-4790-bf38-abcf37fbe85b ro  splash quiet loglevel=0
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.18.0-1-amd64
	}
	menuentry 'Debian GNU/Linux, with Linux 5.18.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.18.0-1-amd64-recovery-29e2e356-f1ea-4790-bf38-abcf37fbe85b' {
		load_video
		gfxmode $linux_gfx_mode
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  29e2e356-f1ea-4790-bf38-abcf37fbe85b
		else
		  search --no-floppy --fs-uuid --set=root 29e2e356-f1ea-4790-bf38-abcf37fbe85b
		fi
		echo	'Loading Linux 5.18.0-1-amd64 ...'
		linux	/boot/vmlinuz-5.18.0-1-amd64 root=UUID=29e2e356-f1ea-4790-bf38-abcf37fbe85b ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.18.0-1-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 ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### 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
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Jun 15 09:57 ata-SAMSUNG_MZ7KM960HAHP-0E005_S2NFNX0H501221Y -> ../../sdb
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-SAMSUNG_MZ7KM960HAHP-0E005_S2NFNX0H501221Y-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-SAMSUNG_MZ7KM960HAHP-0E005_S2NFNX0H501221Y-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Jun 15 09:57 ata-SAMSUNG_MZ7KM960HAHP-0E005_S2NFNX0H501314F -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-SAMSUNG_MZ7KM960HAHP-0E005_S2NFNX0H501314F-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-SAMSUNG_MZ7KM960HAHP-0E005_S2NFNX0H501314F-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 Jun 15 09:57 ata-WDC_WD10EACS-22D6B0_WD-WCAU43716600 -> ../../sdc
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-WDC_WD10EACS-22D6B0_WD-WCAU43716600-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-WDC_WD10EACS-22D6B0_WD-WCAU43716600-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-WDC_WD10EACS-22D6B0_WD-WCAU43716600-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-WDC_WD10EACS-22D6B0_WD-WCAU43716600-part4 -> ../../sdc4
lrwxrwxrwx 1 root root  9 Jun 15 09:57 ata-WDC_WD20EARX-00PASB0_WD-WCAZAA274860 -> ../../sdd
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-WDC_WD20EARX-00PASB0_WD-WCAZAA274860-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-WDC_WD20EARX-00PASB0_WD-WCAZAA274860-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-WDC_WD20EARX-00PASB0_WD-WCAZAA274860-part3 -> ../../sdd3
lrwxrwxrwx 1 root root 10 Jun 15 09:57 ata-WDC_WD20EARX-00PASB0_WD-WCAZAA274860-part4 -> ../../sdd4
lrwxrwxrwx 1 root root  9 Jun 15 09:57 wwn-0x50014ee257764a43 -> ../../sdc
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x50014ee257764a43-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x50014ee257764a43-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x50014ee257764a43-part3 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x50014ee257764a43-part4 -> ../../sdc4
lrwxrwxrwx 1 root root  9 Jun 15 09:57 wwn-0x50014ee25ba5c8f9 -> ../../sdd
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x50014ee25ba5c8f9-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x50014ee25ba5c8f9-part2 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x50014ee25ba5c8f9-part3 -> ../../sdd3
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x50014ee25ba5c8f9-part4 -> ../../sdd4
lrwxrwxrwx 1 root root  9 Jun 15 09:57 wwn-0x5002538c402c4202 -> ../../sdb
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x5002538c402c4202-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x5002538c402c4202-part2 -> ../../sdb2
lrwxrwxrwx 1 root root  9 Jun 15 09:57 wwn-0x5002538c402c42af -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x5002538c402c42af-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 15 09:57 wwn-0x5002538c402c42af-part2 -> ../../sda2
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jun 15 09:57 1192229146A49D85 -> ../../sdd4
lrwxrwxrwx 1 root root 10 Jun 15 09:57 29e2e356-f1ea-4790-bf38-abcf37fbe85b -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jun 15 09:57 36D08E3ED08E0479 -> ../../sdd2
lrwxrwxrwx 1 root root 10 Jun 15 09:57 3C4F1BA370230306 -> ../../sdd1
lrwxrwxrwx 1 root root 10 Jun 15 09:57 3F681EE2292F7A95 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 15 09:57 4165a1e4-a1d0-4bd3-b1a2-84ac7c12dae1 -> ../../sdc4
lrwxrwxrwx 1 root root 10 Jun 15 09:57 50C054FCC054EA2C -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 15 09:57 606A97436A97153E -> ../../sdd3
lrwxrwxrwx 1 root root 10 Jun 15 09:57 6A16E94316E910BD -> ../../sdb2
lrwxrwxrwx 1 root root 10 Jun 15 09:57 72B73B156B658F98 -> ../../sdc3
lrwxrwxrwx 1 root root 10 Jun 15 09:57 8aa47c0b-691c-4694-8afb-9373c8b9a61f -> ../../sdc2
lrwxrwxrwx 1 root root 10 Jun 15 09:57 d432b3c8-e702-40f2-b64d-741c53249d36 -> ../../sdc1
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.0-1-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]  1.5.79
ii  grub-common            2.06-3
ii  grub-pc-bin            2.06-3
ii  grub2-common           2.06-3
ii  ucf                    3.0043

grub-pc recommends no packages.

grub-pc suggests no packages.

-- debconf information:
  grub2/update_nvram: true
  grub-pc/partition_description:
  grub2/kfreebsd_cmdline:
  grub-pc/disk_description:
  grub-pc/timeout: 5
  grub-pc/hidden_timeout: false
  grub-pc/mixed_legacy_and_grub2: true
* grub-pc/install_devices: /dev/disk/by-id/ata-SAMSUNG_MZ7KM960HAHP-0E005_S2NFNX0H501314F, /dev/disk/by-id/ata-SAMSUNG_MZ7KM960HAHP-0E005_S2NFNX0H501221Y
  grub-pc/chainload_from_menu.lst: true
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/install_devices_failed_upgrade: true
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/install_devices_failed: false
* grub2/linux_cmdline_default: splash quiet loglevel=0
  grub2/force_efi_extra_removable: false
* grub-pc/install_devices_disks_changed: /dev/disk/by-id/ata-SAMSUNG_MZ7KM960HAHP-0E005_S2NFNX0H501314F
* grub2/linux_cmdline:
  grub-pc/install_devices_empty: false
  grub-pc/kopt_extracted: false



More information about the Pkg-grub-devel mailing list