bug-grub
[Top][All Lists]
Advanced

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

Re: finding out what kernel was booted with grub...


From: Wolfgang Sourdeau
Subject: Re: finding out what kernel was booted with grub...
Date: Fri, 17 Nov 2000 16:31:31 -0500
User-agent: Wanderlust/1.1.1 (Purple Rain) WEMI/1.13.7 (Shimada) Chao/1.14.0 (Momoyama) Emacs/20.4 (i386-inslinux-linux-gnu) (with unibyte mode)

At Fri, 17 Nov 2000 15:36:51 -0500,
Josh Huber <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]