At Fri, 17 Nov 2000 15:36:51 -0500,
Josh Huber <[EMAIL PROTECTED]> wrote:
> 
> [1  <text/plain; us-ascii (7bit)>]
> Is there a way to determine what kernel was booted using grub?  LILO
> sticks the image name in cmdline (/proc/cmdline), could grub do
> something similar, or is there another way to get the same
> information?
> 
> Thanks,

It's not lilo who creates the content of /proc/cmdline but Linux
itself. Lilo just passes on some parameters to Linux, which Linux
(happily) recognizes as such. On the other hand, you can pass any
parameter to Linux, even ones which doesn't exist. In this case, Linux
just ignores them while still putting them in /proc/cmdline. You could
use this feature to differentiate your kernels. For example, you could
add a parameter "kernel_image=<image>" to the "kernel" grub command.


Wolfgang

_______________________________________________
Bug-grub mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-grub

Reply via email to