Bug#1114894: OS-Prober generates not running entries for Debian 12

Debian debian at decotrain.de
Sat Sep 13 11:51:23 BST 2025


Am 13.09.25 um 10:55 schrieb Pascal Hambourg:
> Above ? I do not see any such entry in grub.cfg in your initial report.

Copied from the initial report:

*********************** BEGIN /boot/grub/grub.cfg
...
menuentry 'Debian GNU/Linux 13 (trixie) on SSD' --class debian --class
gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-simple-d3638439-6781-49a7-a8d7-4aa8d8b92b3a' {
     load_video
     insmod gzio
     if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
     insmod part_msdos
     insmod ext2
     set root='hd0,msdos5'
     if [ x$feature_platform_search_hint = xy ]; then
       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5
--hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5
d3638439-6781-49a7-a8d7-4aa8d8b92b3a
     else
       search --no-floppy --fs-uuid --set=root
d3638439-6781-49a7-a8d7-4aa8d8b92b3a
     fi
     echo    'Loading Linux 6.12.43+deb13-amd64 ...'
     linux    /boot/vmlinuz-6.12.43+deb13-amd64
root=UUID=d3638439-6781-49a7-a8d7-4aa8d8b92b3a ro  quiet
     echo    'Loading initial ramdisk ...'
     initrd    /boot/initrd.img-6.12.43+deb13-amd64
}

...

menuentry 'Debian GNU/Linux 12 (bookworm) (on /dev/sdb2)' --class debian
--class gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-simple-699e8929-8bdf-4b9f-9191-cf922fe52df3' {
     insmod part_msdos
     insmod ext2
     set root='hd1,msdos2'
     if [ x$feature_platform_search_hint = xy ]; then
       search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos2
--hint-efi=hd1,msdos2 --hint-baremetal=ahci1,msdos2
699e8929-8bdf-4b9f-9191-cf922fe52df3
     else
       search --no-floppy --fs-uuid --set=root
699e8929-8bdf-4b9f-9191-cf922fe52df3
     fi
     linux /boot/vmlinuz-6.1.0-39-amd64 root=/dev/sdb2
     initrd /boot/initrd.img-6.1.0-39-amd64
}
submenu 'Advanced options for Debian GNU/Linux 12 (bookworm) (on
/dev/sdb2)' $menuentry_id_option
'osprober-gnulinux-advanced-699e8929-8bdf-4b9f-9191-cf922fe52df3' {
     menuentry 'Debian GNU/Linux 12 (bookworm) (on /dev/sdb2)' --class
gnu-linux --class gnu --class os $menuentry_id_option
'osprober-gnulinux-/boot/vmlinuz-6.1.0-39-amd64--699e8929-8bdf-4b9f-9191-cf922ef52df3'
{
         insmod part_msdos
         insmod ext2
         set root='hd1,msdos2'
         if [ x$feature_platform_search_hint = xy ]; then
           search --no-floppy --fs-uuid --set=root
--hint-bios=hd1,msdos2 --hint-efi=hd1,msdos2
--hint-baremetal=ahci1,msdos2  699e8929-8bdf-4b9f-9191-cf922ef52df3
         else
           search --no-floppy --fs-uuid --set=root
699e8929-8bdf-4b9f-9191-cf922ef52df3
         fi
         linux /boot/vmlinuz-6.1.0-39-amd64 root=/dev/sdb2
         initrd /boot/initrd.img-6.1.0-39-amd64
     }
}
### END /etc/grub.d/30_os-prober ###



> Can you attach the full contents of /boot/grub/grub.cfg in Debian 12 
> root filesytem ? 

This is a bug for Debian 13 and not for Debian 12.


>> The error occurs after the upgrade when grub has been installed in 
>> Debian 13.
>
> Which upgrade ?

It seems to be confusing for you. :-)

sdb      8:16   0 223,6G  0 disk
├─sdb1   8:17   0    50G  0 part
├─sdb2   8:18   0    50G  0 part
├─sdb3   8:19   0    50G  0 part
├─sdb4   8:20   0     1K  0 part
├─sdb5   8:21   0    40G  0 part /
└─sdb6   8:22   0  33,6G  0 part

Debian 12 is installed in /dev/sdb2 and has been copied to /dev/sdb5.
It was not easy to boot the copy in /dev/sdb5, but after about 3 attempts it works and the copy has been upgraded to Debian 13, after the modify of sources.list

In the upgrade process grub has been installed in /dev/sdb5, so it is not booted any more from /dev/sdb2.



More information about the Pkg-grub-devel mailing list