Re: [PATCH] i386 boot loader IDs

From: Eric W. Biederman
Date: Tue Jan 04 2005 - 02:48:04 EST


"H. Peter Anvin" <hpa@xxxxxxxxx> writes:

> This patch adds some i386 boot loader IDs that were used but never officially
> recorded as assigned. This makes them nice and official.
>
> Please contact <hpa@xxxxxxxxx> if you need a bootloader ID
> value assigned.

I suspect /sbin/kexec could use one. But I don't have the faintest
what you could do with the information after the kernel came up.

I don't think enhancing the bootloader numeric parameter is the
right way to go. Currently the value is a single byte with the low
nibble reserved for version number information. With the
values already assigned we have 7 left.

If we assign a new value each for the bootloaders I know of that don't
yet have values assigned: pxelinux, isolinux, filo, /sbin/kexec,
redboot the pool of numbers is nearly exhausted. With the addition of
bootloaders I can't recall or have not been written yet we will
quickly exhaust the pool of numbers.

Even if using this mechanism is needed for supporting existing
bootloaders I suggest it be deprecated in favor of a kernel command
line option. A command line option would be easier to maintain
being string based. It would be portable to architectures besides
x86. And it requires no additional code to implement, as you
can already read /proc/cmdline.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/