public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: dustin@v.igoro.us
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] Re: Drive asignments for sata drives
Date: Tue, 13 Mar 2007 13:33:40 -0500	[thread overview]
Message-ID: <20070313183340.GE29939@v.igoro.us> (raw)
In-Reply-To: <200703131731.44114.prh@gotadsl.co.uk>

On Tue, Mar 13, 2007 at 05:31:44PM +0000, Peter Humphrey wrote:
> > Not to be picky, but it's the kernel that parses that command line --
> > grub just supplies it to the kernel.
> 
> Are you sure? It seems to me that the "root=" parameter is to grub, to tell 
> it where to find the kernel to which to pass the remaining arguments.

Yep.

kernel /boot/kernel-2.6.15-gentoo-r7-2006040301 root=/dev/sda2

The first argument, /boot/kernel-2.6.15-gentoo-r7-2006040301, is to
grub, and tells it where to find the kernel.  It then laods the kernel
(and any initrd, etc.) and passes the rest of the stuff along as the
command line -- it's similar to a shell command, where the shell
specially interprets the first component, and the rest is left to the
executable.

You can verify this by messing up your 'root=xxx' line in grub.conf and
rebooting.  The kernel will load to the tune of lots of messages, but
then panic when it looks for its root fs.

FWIW, the same thing applies with the "magic words" used in ISOLINUX:
some of those are flags to the kernel, while others are interpreted by
the rc scripts later (the kernel makes its command line available in
/proc/cmdline).

Dustin
-- 
gentoo-amd64@gentoo.org mailing list



  reply	other threads:[~2007-03-13 18:35 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-12 16:39 [gentoo-amd64] Drive asignments for sata drives P.V.Anthony
2007-03-12 16:52 ` Olivier Crête
2007-03-12 17:00 ` Bob Sanders
2007-03-12 17:11   ` Marcus D. Hanwell
2007-03-12 17:21     ` dustin
2007-03-12 18:16       ` Marcus D. Hanwell
2007-03-12 17:53     ` [gentoo-amd64] " Bernhard Auzinger
2007-03-13  9:08       ` P.V.Anthony
2007-03-13 14:06         ` dustin
2007-03-13 17:31           ` Peter Humphrey
2007-03-13 18:33             ` dustin [this message]
2007-03-13 18:45             ` Duncan
2007-03-13 19:48               ` ducasse.isidore
2007-03-13 20:07                 ` Thomas Rösner
2007-03-15  1:35                 ` Florian D.
2007-03-15  2:18                   ` ducasse.isidore
2007-03-13 19:53               ` ducasse.isidore
2007-03-13 19:59                 ` dustin
2007-03-13 20:04                   ` David Pyke
2007-03-12 17:42 ` [gentoo-amd64] [OT] " Bob Slawson
2007-03-12 17:50   ` Bob Sanders

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070313183340.GE29939@v.igoro.us \
    --to=dustin@v.igoro.us \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox