[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#806277: os-prober: should try to get linux kernel parameters from other Linuxes



Package: os-prober
Severity: wishlist


Hey.

I think the following would be a nice feature for os-prober when
it detects other Linuxes:

Also extract their kernel parameters, so that it can be added to
the e.g. grub menu entries.


This sounds easier than may be:

There is no canonical place where the kernel parameters are stored.
This varies from distribution to distribution, and worse from
boot loader to boot loader.

For example in Debian with grub, it's /etc/default/grub's
GRUB_CMDLINE_LINUX_DEFAULT and GRUB_CMDLINE_LINUX.
But if several boot loaders are installed in such Debian
who knows which one is actually the right one?
Possible solutions may be to check whether multiple known
boot loaders are installed and simply don't extract the
parameters then and print a warning.
Or compare them all and use them only when all match.

For other distros it may be worse... e.g. I think to remember
that RHEL had no real place for the parameter except grub.cfg
itself, and when that contains multiple entries... which should
one take?
Perhaps the soltuion would be to create a grub entry for each
of the grub.cfg entries of the probed partition.
These are typically different kernel versions, any one likely
would want all of them anyway.


Actually, parsing that parameters may even be necessary to
make the other Linux boot correctly.


Cheers,
Chris.


Reply to: