On Wed, Jun 30, 2010 at 12:41 PM, Sebastian Plotz
<[email protected]> wrote:
> Am Mittwoch, den 30.06.2010, 13:44 +0100 schrieb Andrew Benton:
>> But it won't boot very far. The kernel won't be able to mount its root
>> partition unless you manually edit the grub.cfg or compile the kernel
>> with an initramfs
>>
>> Andy
> Yes, and it will work if you're using a separate boot partition ...
> This means: GRUB can find the kernel (and the initrd, if used) when the
> device of the boot partition has changed.
>
> After that, the kernel can mount the root partition (the device of the
> root partition must not be changed). But it's important that a UUID will
> be used for the boot partition in /etc/fstab.
>
> So we can say in the book:
>
> "The search lines are only meaningful if your are using a separate boot
> partition and a UUID entry for this partition in /etc/fstab."
>
> ... or we simply remove this sentence from the book.
>
> Sebastian
>
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page
>
Seems like it should be the simplest way possible. Personally I don't
like the grub-mkconfig - has failed to work for me a few times, and I
believe it does that due to my host system.
Seems like a much more simple approach of:
# cat<<EOF > /boot/grub/grub.cfg
set timeout=10
set default=0
menuentry "LFS x.x" {
set root=(hd0,1)
linux /vmlinuz root=/dev/sda2
}
EOF
Would be better.
I also like the kernel install using: make install, since that will
copy the kernel to /boot/vmlinuz.
Just my 2ยข.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page