Re: Multiple kernel boot in linuxboot.cfg

David Pye <[email protected]>
Newsgroups gmane.linux.ports.xbox.devel
Message-ID <[email protected]>
On Wednesday 22 September 2004 22:44, DaveXXX wrote:

> The linuxboot.cfg can look like this:
>
> kernel
> initrd
> append
>
> kernel
> initrd
> append
>
> and so on.... a kernel starts a section. initrd and append refer to
> whatever section was started last.
> The first section is the defalt one... unless a default parameter is given
> [optional].

Well, a title would be nice to add, although that CAN be added without 
breaking backwards compat, as a title would be ignored by the existing 
parser.

e.g.

title Bob's dodgy kernel

> This will be compatible with existing installs, provided they start with a
> kernel keyword (which is the default).
>
> in general:
>
> section := sectionstart sectionparameter [sectionparameter...]
>
> sectionstart := kernel <path-to-the-kernel>
> sectionparameter := appendparameter | initrdparameter | xxxparameter
>
> appendparameter := append <append-value>
> initrdparameter := initrd <initrd-value>
> xxxparameter := xxx <xxx-value>
>
> The definition is not perfect, but renders the idea. How do you like it?

Mhmm, you're missing one scenario, I think, which is an old cromwell reading a 
newer linuxboot.cfg format. I suspect, though, - I haven't read the the 
parser code for a while (shudder), that it may work ok, I'm not sure whether 
it picks up the first, or the last entry. I suspect it might be the last.

I suspect we might end up having to break backwards compat, but include two 
parsers, and have some obvious keyword in the file which tells cromwell which 
parser should be applied to it.  I'm not entirely sure in my own mind ;)

David

>
> DaveXXX
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> Xbox-linux-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xbox-linux-devel

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d- s-: a-- C++ UL++++ P L+++ E--- W++ N+ o+ K- w---
O M V- PS+ PE+ Y+ PGP t 5- X+ R- tv+ b+ DI++ D+
G+ e++ h--- r++ y++
------END GEEK CODE BLOCK------


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.