Skip to contentSkip to conversation

How should 30_os-prober be working?

DISCUSSION Gene Czarcinski 2 participants 2 messages Jun 13, 2014

lore
Share & tools
lore
#0 lore raw

This deals with 30_os-prober and the os-prober package itself.

In days of old, it was linux and initrd for linux systems (ignoring linuxefi and initrdefi). Fedora 21 is in the process of starting up and it brings in grub2-2.02-0.3 and os-prober-1.58-7. While these updates bring in improved support for /boot on btrfs subvols and LVMlvs, they also introduce using linux16 instead of linux and initrd16 instead of initrd.

This last change breaks 30_os-prober so that no output is produced even when appropriate systems are identified. The problem is that os-prober was only recognizing linux/initrd and the grub.cfg had linux/16/initrd16. I have created an update for os-prober which now identifies the "type" of linux | linux16 (actually linux*) and initrd | initrd16 (actually initrd*) and linux-boot-prober now returns whatever linux* and initrd* matches to 30_os-prober.

The question is: what should 30_os-prober do with this information? Currently, I simply use the "linux_type" and initrd_type" returned by linux-boot-prober (40grub2) as "operation" to be performed? Is this correct?

Another approach would be to force the use of linux16 and initrd16 for the menuentry elements.

BTW, since I have your attention, with GRUB_DISABLE_SUBMENU=true specified in /etc/default/grub, should 30_os-prober be generating submenus?

Gene

#1 lore raw
Quoted 4 lines · Gene Czarcinski

This deals with 30_os-prober and the os-prober package itself.

In days of old, it was linux and initrd for linux systems (ignoring

linuxefi and initrdefi). Fedora 21 is in the process of starting up and it brings in grub2-2.02-0.3 and os-prober-1.58-7. While these updates bring in improved support for /boot on btrfs subvols and LVMlvs, they also introduce using linux16 instead of linux and initrd16 instead of initrd.

Quoted 2 lines

This last change breaks 30_os-prober so that no output is produced even

when appropriate systems are identified. The problem is that os-prober was only recognizing linux/initrd and the grub.cfg had linux/16/initrd16. I have created an update for os-prober which now identifies the "type" of linux | linux16 (actually linux*) and initrd | initrd16 (actually initrd*) and linux-boot-prober now returns whatever linux* and initrd* matches to 30_os-prober.

Quoted 2 lines

The question is: what should 30_os-prober do with this information?

Currently, I simply use the "linux_type" and initrd_type" returned by linux-boot-prober (40grub2) as "operation" to be performed? Is this correct?

Quoted 1 line

Just ignore if it's linux16. Fedora uses it only for some obscure hardware with obscure drivers for obscure reasons. Moreover their way of using it breaks compatibility with anything but BIOS. I tried to sit with them to find proper solution or at very least limit it to BIOS systems were unfruitful (mostly Fedora and Red Hat don't care)

Quoted 1 line

Another approach would be to force the use of linux16 and initrd16 for

the menuentry elements.

Quoted 2 lines

BTW, since I have your attention, with GRUB_DISABLE_SUBMENU=true

specified in /etc/default/grub, should 30_os-prober be generating submenus?

Quoted 7 lines

Gene

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel