Gentoo Archives: gentoo-amd64

From: dustin@×××××××.us
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Re: Drive asignments for sata drives
Date: Tue, 13 Mar 2007 18:35:36
Message-Id: 20070313183340.GE29939@v.igoro.us
In Reply to: Re: [gentoo-amd64] Re: Drive asignments for sata drives by Peter Humphrey
1 On Tue, Mar 13, 2007 at 05:31:44PM +0000, Peter Humphrey wrote:
2 > > Not to be picky, but it's the kernel that parses that command line --
3 > > grub just supplies it to the kernel.
4 >
5 > Are you sure? It seems to me that the "root=" parameter is to grub, to tell
6 > it where to find the kernel to which to pass the remaining arguments.
7
8 Yep.
9
10 kernel /boot/kernel-2.6.15-gentoo-r7-2006040301 root=/dev/sda2
11
12 The first argument, /boot/kernel-2.6.15-gentoo-r7-2006040301, is to
13 grub, and tells it where to find the kernel. It then laods the kernel
14 (and any initrd, etc.) and passes the rest of the stuff along as the
15 command line -- it's similar to a shell command, where the shell
16 specially interprets the first component, and the rest is left to the
17 executable.
18
19 You can verify this by messing up your 'root=xxx' line in grub.conf and
20 rebooting. The kernel will load to the tune of lots of messages, but
21 then panic when it looks for its root fs.
22
23 FWIW, the same thing applies with the "magic words" used in ISOLINUX:
24 some of those are flags to the kernel, while others are interpreted by
25 the rc scripts later (the kernel makes its command line available in
26 /proc/cmdline).
27
28 Dustin
29 --
30 gentoo-amd64@g.o mailing list