Bug#1025698: fails to add windows boot loader entry to menu
Paul Slootman
paul at debian.org
Wed Dec 7 15:24:59 GMT 2022
Package: grub-common
Version: 2.06-7
Severity: important
I upgraded from 2.04-20 to 2.06-7, and after rebooting I discovered
that I could no longer boot my Windows partition.
Downgrading back to 2.04-20 solved this, so only the grub packages
are causing this.
The whole os-prober section is omitted with 2.06-7. This is what
should be there (diff between working and new version):
### BEGIN /etc/grub.d/30_os-prober ###
-menuentry 'Windows Boot Manager (on /dev/nvme1n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-2EED-6D4A' {
- insmod part_gpt
- insmod fat
- if [ x$feature_platform_search_hint = xy ]; then
- search --no-floppy --fs-uuid --set=root 2EED-6D4A
- else
- search --no-floppy --fs-uuid --set=root 2EED-6D4A
- fi
- chainloader /EFI/Microsoft/Boot/bootmgfw.efi
-}
### END /etc/grub.d/30_os-prober ###
-- Package-specific info:
*********************** 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/15TLTF-7XHe-ZLKZ-a8Yf-8xrV-oBF8-cmvf23/HS3pws-0NtD-ywVq-goN3-c1BO-FEKX-RdWgTL'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/15TLTF-7XHe-ZLKZ-a8Yf-8xrV-oBF8-cmvf23/HS3pws-0NtD-ywVq-goN3-c1BO-FEKX-RdWgTL' f81be6e1-8504-475e-b601-150b0802376a
else
search --no-floppy --fs-uuid --set=root f81be6e1-8504-475e-b601-150b0802376a
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 ###
insmod lvm
insmod ext2
set root='lvmid/15TLTF-7XHe-ZLKZ-a8Yf-8xrV-oBF8-cmvf23/HS3pws-0NtD-ywVq-goN3-c1BO-FEKX-RdWgTL'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='lvmid/15TLTF-7XHe-ZLKZ-a8Yf-8xrV-oBF8-cmvf23/HS3pws-0NtD-ywVq-goN3-c1BO-FEKX-RdWgTL' f81be6e1-8504-475e-b601-150b0802376a
else
search --no-floppy --fs-uuid --set=root f81be6e1-8504-475e-b601-150b0802376a
fi
insmod png
if background_image /usr/share/desktop-base/homeworld-theme/grub/grub-16x9.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-f81be6e1-8504-475e-b601-150b0802376a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 788bf1fa-64f6-48f8-b272-1cc11b024c06
echo 'Loading Linux 5.10.0-16-amd64 ...'
linux /vmlinuz-5.10.0-16-amd64 root=/dev/mapper/lp250-root ro
echo 'Loading initial ramdisk ...'
initrd /initrd.img-5.10.0-16-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-f81be6e1-8504-475e-b601-150b0802376a' {
menuentry 'Debian GNU/Linux, with Linux 5.10.0-16-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-16-amd64-advanced-f81be6e1-8504-475e-b601-150b0802376a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 788bf1fa-64f6-48f8-b272-1cc11b024c06
echo 'Loading Linux 5.10.0-16-amd64 ...'
linux /vmlinuz-5.10.0-16-amd64 root=/dev/mapper/lp250-root ro
echo 'Loading initial ramdisk ...'
initrd /initrd.img-5.10.0-16-amd64
}
menuentry 'Debian GNU/Linux, with Linux 5.10.0-16-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-16-amd64-recovery-f81be6e1-8504-475e-b601-150b0802376a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 788bf1fa-64f6-48f8-b272-1cc11b024c06
echo 'Loading Linux 5.10.0-16-amd64 ...'
linux /vmlinuz-5.10.0-16-amd64 root=/dev/mapper/lp250-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-5.10.0-16-amd64
}
menuentry 'Debian GNU/Linux, with Linux 5.10.0-8-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-8-amd64-advanced-f81be6e1-8504-475e-b601-150b0802376a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 788bf1fa-64f6-48f8-b272-1cc11b024c06
echo 'Loading Linux 5.10.0-8-amd64 ...'
linux /vmlinuz-5.10.0-8-amd64 root=/dev/mapper/lp250-root ro
echo 'Loading initial ramdisk ...'
initrd /initrd.img-5.10.0-8-amd64
}
menuentry 'Debian GNU/Linux, with Linux 5.10.0-8-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-8-amd64-recovery-f81be6e1-8504-475e-b601-150b0802376a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 788bf1fa-64f6-48f8-b272-1cc11b024c06
echo 'Loading Linux 5.10.0-8-amd64 ...'
linux /vmlinuz-5.10.0-8-amd64 root=/dev/mapper/lp250-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-5.10.0-8-amd64
}
menuentry 'Debian GNU/Linux, with Linux 5.10.0-0.bpo.5-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-0.bpo.5-amd64-advanced-f81be6e1-8504-475e-b601-150b0802376a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 788bf1fa-64f6-48f8-b272-1cc11b024c06
echo 'Loading Linux 5.10.0-0.bpo.5-amd64 ...'
linux /vmlinuz-5.10.0-0.bpo.5-amd64 root=/dev/mapper/lp250-root ro
echo 'Loading initial ramdisk ...'
initrd /initrd.img-5.10.0-0.bpo.5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 5.10.0-0.bpo.5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-0.bpo.5-amd64-recovery-f81be6e1-8504-475e-b601-150b0802376a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 788bf1fa-64f6-48f8-b272-1cc11b024c06
echo 'Loading Linux 5.10.0-0.bpo.5-amd64 ...'
linux /vmlinuz-5.10.0-0.bpo.5-amd64 root=/dev/mapper/lp250-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-5.10.0-0.bpo.5-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-16-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-16-amd64-advanced-f81be6e1-8504-475e-b601-150b0802376a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 788bf1fa-64f6-48f8-b272-1cc11b024c06
echo 'Loading Linux 4.19.0-16-amd64 ...'
linux /vmlinuz-4.19.0-16-amd64 root=/dev/mapper/lp250-root ro
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.19.0-16-amd64
}
menuentry 'Debian GNU/Linux, with Linux 4.19.0-16-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-16-amd64-recovery-f81be6e1-8504-475e-b601-150b0802376a' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 788bf1fa-64f6-48f8-b272-1cc11b024c06
echo 'Loading Linux 4.19.0-16-amd64 ...'
linux /vmlinuz-4.19.0-16-amd64 root=/dev/mapper/lp250-root ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-4.19.0-16-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 'UEFI Firmware Settings' $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 /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 10 Dec 7 16:02 dm-name-lp250-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 7 16:02 dm-name-lp250-swap_1 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 7 16:02 dm-name-lp250-temp -> ../../dm-3
lrwxrwxrwx 1 root root 10 Dec 7 16:02 dm-name-nvme1n1p3_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 7 16:02 dm-uuid-CRYPT-LUKS2-f830e78373114efdac8be255829faa1b-nvme1n1p3_crypt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Dec 7 16:02 dm-uuid-LVM-15TLTF7XHeZLKZa8Yf8xrVoBF8cmvf232NxITq3nEzk1I0wb522O12iWVNrXVvsu -> ../../dm-2
lrwxrwxrwx 1 root root 10 Dec 7 16:02 dm-uuid-LVM-15TLTF7XHeZLKZa8Yf8xrVoBF8cmvf23HS3pws0NtDywVqgoN3c1BOFEKXRdWgTL -> ../../dm-1
lrwxrwxrwx 1 root root 10 Dec 7 16:02 dm-uuid-LVM-15TLTF7XHeZLKZa8Yf8xrVoBF8cmvf23mNYUNmja21wZqttNe4g5pLF8IO34bdTQ -> ../../dm-3
lrwxrwxrwx 1 root root 10 Dec 7 16:02 lvm-pv-uuid-W7W43d-K6xU-nOWq-4ukg-fRKr-YzTV-SBXkJD -> ../../dm-0
lrwxrwxrwx 1 root root 13 Dec 7 16:02 nvme-eui.00080d04005ce1e2 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-eui.00080d04005ce1e2-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-eui.00080d04005ce1e2-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-eui.00080d04005ce1e2-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 13 Dec 7 16:02 nvme-eui.001b448b49dc62b0 -> ../../nvme1n1
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-eui.001b448b49dc62b0-part1 -> ../../nvme1n1p1
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-eui.001b448b49dc62b0-part2 -> ../../nvme1n1p2
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-eui.001b448b49dc62b0-part3 -> ../../nvme1n1p3
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-eui.001b448b49dc62b0-part4 -> ../../nvme1n1p4
lrwxrwxrwx 1 root root 13 Dec 7 16:02 nvme-KBG30ZMV256G_TOSHIBA_19GPC1RAPZXP -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-KBG30ZMV256G_TOSHIBA_19GPC1RAPZXP-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-KBG30ZMV256G_TOSHIBA_19GPC1RAPZXP-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-KBG30ZMV256G_TOSHIBA_19GPC1RAPZXP-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 13 Dec 7 16:02 nvme-WDC_PC_SN730_SDBQNTY-512G-1001_2044CC806975 -> ../../nvme1n1
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-WDC_PC_SN730_SDBQNTY-512G-1001_2044CC806975-part1 -> ../../nvme1n1p1
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-WDC_PC_SN730_SDBQNTY-512G-1001_2044CC806975-part2 -> ../../nvme1n1p2
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-WDC_PC_SN730_SDBQNTY-512G-1001_2044CC806975-part3 -> ../../nvme1n1p3
lrwxrwxrwx 1 root root 15 Dec 7 16:02 nvme-WDC_PC_SN730_SDBQNTY-512G-1001_2044CC806975-part4 -> ../../nvme1n1p4
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 15 Dec 7 16:02 2EED-6D4A -> ../../nvme1n1p1
lrwxrwxrwx 1 root root 10 Dec 7 16:02 7568-F19C -> ../../dm-3
lrwxrwxrwx 1 root root 15 Dec 7 16:02 788bf1fa-64f6-48f8-b272-1cc11b024c06 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 10 Dec 7 16:02 8d9a2407-5209-400d-a0c5-01462118dc49 -> ../../dm-2
lrwxrwxrwx 1 root root 15 Dec 7 16:02 E21E-AFE3 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 10 Dec 7 16:02 f81be6e1-8504-475e-b601-150b0802376a -> ../../dm-1
lrwxrwxrwx 1 root root 15 Dec 7 16:02 f830e783-7311-4efd-ac8b-e255829faa1b -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Dec 7 16:02 F878EF1D78EED980 -> ../../nvme1n1p4
*********************** END /dev/disk/by-uuid
Versions of packages grub-common depends on:
ii gettext-base 0.21-4
ii libc6:amd64 2.36-6
ii libdevmapper1.02.1:amd64 2:1.02.185-2
ii libefiboot1:amd64 37-6
ii libefivar1:amd64 37-6
ii libfreetype6:amd64 2.12.1+dfsg-3
ii libfuse2:amd64 2.9.9-5
ii liblzma5:amd64 5.2.5-2
Versions of packages grub-common recommends:
ii os-prober 1.79
Versions of packages grub-common suggests:
ii desktop-base 11.0.3
un grub-emu <none>
un mtools <none>
un multiboot-doc <none>
ii xorriso 1.5.4-2
-- no debconf information
More information about the Pkg-grub-devel
mailing list