os-prober ignores grub devicetree statement
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-prober (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
os-prober doesn't recognize a grub devicetree statement which results in an unbootable grub entry.
I.e. from /boot/grub/grub.cfg on /dev/nvme0n1p5:
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
recordfail
load_video
gfxmode $linux_gfx_mode
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 ddc4f4b5-
linux /boot/vmlinuz-
initrd /boot/initrd.
devicetree /boot/dtb-
}
But os-prober (running from /dev/nvme0n1p6) constructs the following (missing devictree line):
menuentry 'Ubuntu 23.10 (23.10) (on /dev/nvme0n1p5)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root ddc4f4b5-
linux /boot/vmlinuz-
initrd /boot/initrd.
}