On Tue, 2011-06-28 at 12:30 +0800, Webmaster wrote: > The book says that an initrd is required... and then?
So,you read Mike McCarty's description of how an initramfs (or initrd) works? If grub.cfg passes a UUID to identify the root device, something needs to translate that UUID to a device name that the kernel recognises - that 'something' is the initramfs. In short, someone needs to write a program (usually a shell script) that looks at all the devices it can see (loading modules if necessary), work out which one you've asked for, mount it, and return control back to the kernel. The same is true for stuff like disk encryption, NFS-mounted root, and some RAID-type setups. Now, the script itself doesn't have to be too complicated - but because it's responsible for mounting the root device, it can't actually rely on the presence of your root filesystem. That working out the minimum executables and libraries (e.g bash, modprobe, udev) needed by that script, and packaging them into a tiny disk image that Grub can be loaded into a RAM disk and booted from. And that's a bit messy. Simon.
signature.asc
Description: This is a digitally signed message part
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
