bug-grub
[Top][All Lists]
Advanced

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

Re: Passing a configuration file to the kernel using grub


From: adrian15
Subject: Re: Passing a configuration file to the kernel using grub
Date: Thu, 02 Aug 2007 19:48:30 +0200
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

Dhiraj K escribió:
Hi,

How can i pass a configuration file, to a kernel, using grub.
You can only pass a parametrer to a kernel.
Then you can edit the init scripts from the kernel so that it parses
this parametre and does something or another thing.

This is a typical boot entry:

title mylinux
root            (hd0,7)
kernel          /boot/vmlinuz-2.6.20-12-generic
root=UUID=a3965c0c-5c7e-425d-a6e6-850cd0ad90c0 ro quiet splash locale=es_ES
initrd          /boot/initrd.img-2.6.20-12-generic
savedefault
boot


The kernel is: boot/vmlinuz-2.6.20-12-generic
and all the rest of the line:
root=UUID=a3965c0c-5c7e-425d-a6e6-850cd0ad90c0 ro quiet splash locale=es_ES

is what the kernel can read and interpret thanks to init scripts.



This configuration file will then used by the kernel, for further processing.

Yes, you could add something like:

myconf=/mnt/hda3/myconfig.cfg


currently, the kernel is loaded, using a boot loader.
Now, i want grub to load the kernel, i.e make it grub bootable/loadable
Check grub documentation / manual or the many menu.lst that have been
uploaded to the linux forums.


Also which to use, Grub or Grub2
Grub.

adrian15





reply via email to

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