Bug#461442: detection of other OSes in update-grub
Fabian Greffrath
greffrath at leat.rub.de
Wed Jan 23 12:10:03 UTC 2008
Robert Millan schrieb:
> I was referring to the /etc/grub.d/ glue that Fabian is writing. If os-prober
> is used by other distros, I don't see why not pushing it upstream.
>
> What do you think, Fabian?
For me personally it makes no difference if the script ends up in Debian
or upstream.
However, the first thing the script does is
if [ -x "`which os-prober 2>/dev/null`" ] ; then (...)
so it won't hurt anybody without os-prober installed.
I have to stress that my script is currently (well, as soon as #462218
is closed) only able to add chainloaded partitions. For all other kinds
of Linux/Hurd installations it would need to remount the partitions to
find out where the linux-/initrd-images reside. This is something I want
to avoid, because the partitions have allready been mounted by os-prober
and I don't want to duplicate it's code for this purpose. Maybe
os-prober's output can be modified to be more verbose about other
Linux/Hurd systems it detects. However, we will be able to detect the
majority of preinstalled OSes from Redmond. ;)
I think, we should keep the script in the Debian package for the time
beeing. Before it's included upstream we should see to get os-prober
included in other distributions and make sure we can properly add other
Linux/Hurd installations to grub.cfg based on os-prober's output.
More information about the Pkg-grub-devel
mailing list