Bug#825292: grub-common: does not provide the correct device name for booting the Hurd.
Martin-Éric Racine
martin-eric.racine at iki.fi
Sat Jun 7 10:51:00 BST 2025
Package: grub-pc
Version: 2.12-7
Followup-For: Bug #825292
X-Debbugs-Cc: martin-eric.racine at iki.fi
This issue remains unresolved. As a result, the grub.cfg fragment generated by 30_os-prober is still incorrect and thus still fails to tell Hurd the correct disk to boot from.
Please compare to the fragment generated via 40_custom later in the config.
Martin-Éric
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/sda1 / ext4 rw,relatime,errors=remount-ro 0 0
/dev/sda3 /hurd ext2 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="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_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
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=fi_FI
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='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
insmod png
if background_image /usr/share/desktop-base/ceratopsian-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=keep
export linux_gfx_mode
menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.1.0-37-686-pae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-37-686-pae-advanced-24bd6387-2e4e-4eb3-96dd-69817428d656' {
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='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
echo 'Loading Linux 6.1.0-37-686-pae ...'
linux /boot/vmlinuz-6.1.0-37-686-pae root=UUID=24bd6387-2e4e-4eb3-96dd-69817428d656 ro panic=15 video=TV-1:d video=SVIDEO-1:d video=LVDS-1:d video=SDVOB:d noquiet loglevel=1 nosplash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.1.0-37-686-pae
}
menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.1.0-37-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-37-686-pae-recovery-24bd6387-2e4e-4eb3-96dd-69817428d656' {
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='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
echo 'Loading Linux 6.1.0-37-686-pae ...'
linux /boot/vmlinuz-6.1.0-37-686-pae root=UUID=24bd6387-2e4e-4eb3-96dd-69817428d656 ro single dis_ucode_ldr panic=15 video=TV-1:d video=SVIDEO-1:d video=LVDS-1:d video=SDVOB:d
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.1.0-37-686-pae
}
menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.1.0-35-686-pae' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-35-686-pae-advanced-24bd6387-2e4e-4eb3-96dd-69817428d656' {
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='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
echo 'Loading Linux 6.1.0-35-686-pae ...'
linux /boot/vmlinuz-6.1.0-35-686-pae root=UUID=24bd6387-2e4e-4eb3-96dd-69817428d656 ro panic=15 video=TV-1:d video=SVIDEO-1:d video=LVDS-1:d video=SDVOB:d noquiet loglevel=1 nosplash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.1.0-35-686-pae
}
menuentry 'Debian GNU/Linux GNU/Linux, with Linux 6.1.0-35-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-35-686-pae-recovery-24bd6387-2e4e-4eb3-96dd-69817428d656' {
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='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
echo 'Loading Linux 6.1.0-35-686-pae ...'
linux /boot/vmlinuz-6.1.0-35-686-pae root=UUID=24bd6387-2e4e-4eb3-96dd-69817428d656 ro single dis_ucode_ldr panic=15 video=TV-1:d video=SVIDEO-1:d video=LVDS-1:d video=SDVOB:d
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-6.1.0-35-686-pae
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_ipxe ###
menuentry "Network boot (iPXE)" --users "" --class network --id ipxe {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
linux16 /boot/ipxe.lkrn
# If the user provided an iPXE script, load it
if [ -f /boot/ipxe.ipxe ]; then
initrd16 /boot/ipxe.ipxe
fi
}
### END /etc/grub.d/20_ipxe ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
if [ "$grub_platform" = efi -a "$grub_cpu" = x86_64 ]; then
menuentry "Memory test (memtest86+x64.efi)" --class memtest $menuentry_id_option "memtest86+" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
linux /boot/memtest86+x64.efi
}
menuentry "Memory test (memtest86+x64.efi, serial console)" --class memtest $menuentry_id_option "memtest86+-serial" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
linux /boot/memtest86+x64.efi console=ttyS0,115200
}
fi
if [ "$grub_platform" = efi -a "$grub_cpu" = i386 ]; then
menuentry "Memory test (memtest86+ia32.efi)" --class memtest $menuentry_id_option "memtest86+" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
linux /boot/memtest86+ia32.efi
}
menuentry "Memory test (memtest86+ia32.efi, serial console)" --class memtest $menuentry_id_option "memtest86+-serial" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
linux /boot/memtest86+ia32.efi console=ttyS0,115200
}
fi
if [ "$grub_platform" = pc ]; then if cpuid -l ; then
menuentry "Memory test (memtest86+x64.bin)" --class memtest $menuentry_id_option "memtest86+" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
linux /boot/memtest86+x64.bin
}
menuentry "Memory test (memtest86+x64.bin, serial console)" --class memtest $menuentry_id_option "memtest86+-serial" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
linux /boot/memtest86+x64.bin console=ttyS0,115200
}
fi ; fi
if [ "$grub_platform" = pc ]; then if ! cpuid -l ; then
menuentry "Memory test (memtest86+ia32.bin)" --class memtest $menuentry_id_option "memtest86+" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
linux /boot/memtest86+ia32.bin
}
menuentry "Memory test (memtest86+ia32.bin, serial console)" --class memtest $menuentry_id_option "memtest86+-serial" {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 24bd6387-2e4e-4eb3-96dd-69817428d656
else
search --no-floppy --fs-uuid --set=root 24bd6387-2e4e-4eb3-96dd-69817428d656
fi
linux /boot/memtest86+ia32.bin console=ttyS0,115200
}
fi ; fi
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
insmod bli
fi
### END /etc/grub.d/25_bli ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'GNU/Hurd (on /dev/sda3)' --class hurd --class gnu --class os $menuentry_id_option 'osprober-gnuhurd-/boot/gnumach.gz-false-bee69eaf-62b7-4cc8-8db8-e56c4fc19429' {
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 bee69eaf-62b7-4cc8-8db8-e56c4fc19429
else
search --no-floppy --fs-uuid --set=root bee69eaf-62b7-4cc8-8db8-e56c4fc19429
fi
multiboot /boot/gnumach.gz root=device:(hostdisk//dev/sda,msdos3)
module /hurd/ext2fs.static ext2fs --readonly \
--multiboot-command-line='${kernel-command-line}' \
--host-priv-port='${host-port}' \
--device-master-port='${device-port}' \
--exec-server-task='${exec-task}' -T typed '${root}' \
'$(task-create)' '$(task-resume)'
module /lib/ld.so.1 exec /hurd/exec '$(exec-task=task-create)'
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
fwsetup --is-supported
if [ "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
fi
### 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.
echo "Found Debian GNU/Hurd"
menuentry "Debian GNU/Hurd, with Mach" {
set root='hd0,msdos3'
echo 'Loading GNU Mach ...'
multiboot /boot/gnumach.gz root=device:hd0s3
echo 'Loading the Hurd ...'
module /hurd/pci-arbiter.static pci-arbiter \
--host-priv-port='${host-port}' --device-master-port='${device-port}' \
--next-task='${acpi-task}' \
'$(pci-task=task-create)' '$(task-resume)'
module /hurd/acpi.static acpi \
--next-task='${disk-task}' \
'$(acpi-task=task-create)'
module /hurd/rumpdisk.static rumpdisk \
--next-task='${fs-task}' \
'$(disk-task=task-create)'
module /hurd/ext2fs.static ext2fs \
--multiboot-command-line='${kernel-command-line}' \
--exec-server-task='${exec-task}' -T typed '${root}' \
'$(fs-task=task-create)'
module /hurd/exec.static exec '$(exec-task=task-create)'
}
menuentry "Debian GNU/Hurd, with Mach (recovery mode)" {
set root='hd0,msdos3'
echo 'Loading GNU Mach ...'
multiboot /boot/gnumach.gz root=device:hd0s3 -s
echo 'Loading the Hurd ...'
module /hurd/pci-arbiter.static pci-arbiter \
--host-priv-port='${host-port}' --device-master-port='${device-port}' \
--next-task='${disk-task}' \
'$(pci-task=task-create)' '$(task-resume)'
module /hurd/rumpdisk.static rumpdisk \
--next-task='${fs-task}' \
'$(disk-task=task-create)'
module /hurd/ext2fs.static ext2fs \
--multiboot-command-line='${kernel-command-line}' \
--exec-server-task='${exec-task}' -T typed '${root}' \
'$(fs-task=task-create)'
module /hurd/exec.static exec '$(exec-task=task-create)'
}
### 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 7 12:41 ata-TOSHIBA_MK6008GAH_Y7TAWKX9W -> ../../sda
lrwxrwxrwx 1 root root 10 Jun 7 12:41 ata-TOSHIBA_MK6008GAH_Y7TAWKX9W-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 7 12:41 ata-TOSHIBA_MK6008GAH_Y7TAWKX9W-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 7 12:41 ata-TOSHIBA_MK6008GAH_Y7TAWKX9W-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Jun 7 12:42 usb-HL-DT-ST_CDRW_DVD_GCC4247-0:0 -> ../../sr0
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jun 7 12:41 24bd6387-2e4e-4eb3-96dd-69817428d656 -> ../../sda1
lrwxrwxrwx 1 root root 10 Jun 7 12:41 3e166bc5-10e7-40f2-82d3-fa5c945d764f -> ../../sda2
lrwxrwxrwx 1 root root 10 Jun 7 12:41 bee69eaf-62b7-4cc8-8db8-e56c4fc19429 -> ../../sda3
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: 13.0
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 6.1.0-37-686-pae (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE=fi:en
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.91
ii grub-common 2.12-7
ii grub-pc-bin 2.12-7
ii grub2-common 2.12-7
ii ucf 3.0051
grub-pc recommends no packages.
grub-pc suggests no packages.
-- debconf information:
grub-pc/disk_description:
grub-pc/chainload_from_menu.lst: true
grub2/force_efi_extra_removable: false
grub2/device_map_regenerated:
grub-pc/kopt_extracted: false
grub2/kfreebsd_cmdline:
* grub2/enable_os_prober: true
* grub2/linux_cmdline: panic=15 video=TV-1:d video=SVIDEO-1:d video=LVDS-1:d video=SDVOB:d
grub-pc/install_devices_failed_upgrade: true
grub-pc/install_devices_failed: false
* grub2/linux_cmdline_default: noquiet loglevel=1 nosplash
grub-pc/partition_description:
grub-pc/install_devices_empty: false
grub-pc/mixed_legacy_and_grub2: true
grub-pc/hidden_timeout: false
grub-pc/postrm_purge_boot_grub: false
grub-pc/install_devices_disks_changed:
grub-pc/timeout: 5
* grub-pc/install_devices: /dev/disk/by-id/ata-TOSHIBA_MK6008GAH_Y7TAWKX9W
grub2/kfreebsd_cmdline_default: quiet
grub2/update_nvram: true
More information about the Pkg-grub-devel
mailing list