On 10/16/10, Andrew Benton <b3n...@gmail.com> wrote:
> On Sat, 16 Oct 2010 21:03:36 +0200
> "Dr.-Ing. Edgar Alwers" <edgaralw...@gmx.de> wrote:
>>
>> Andrew Benton <b3n...@gmail.com> wrote:
>>
>> > > The "linux" statement on the other hand tells grub where the kernel
>> > > resides and were "root" of the partition to be booted is. Is this not
>> > > correct ?

>> > > The "linux" statement on the other hand tells grub where the kernel
>> > > resides
Is true if and only if it contains the optional "(hdx,y)" specification.

>> > > ... were "root" of the partition to be booted is.
True, it tells the kernel that.

menuentry "KDE-4.5 ext4" {
insmod ext2
set root='(hd1,5)'
linux (hd0,6)/boot/lfskernel-2.6.34  root=/dev/sda6 rw
}

Since "linux (hd0,6)" immediately follows "set root='(hd1,5)'",  in
the above menuenty, "set root='(hd1,5)'" is effectively doing nothing.

In the above, (hd0,6) specifies the partition from which to retrieve the kernel.
"root=/dev/sda6" tells the kernel which partition to regard as the
root partition. If "root=/dev/sda6" were absent, the kernel would
presume the partition on which it had been compiled.

I believe that the one statement:
linux (hd0,6)/boot/lfskernel-2.6.34  root=/dev/sda6 rw

would be equivalent to the 2 statements:
set root='(hd0,6)'
linux /boot/lfskernel-2.6.34  root=/dev/sda6 rw
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to