Am Montag, 9. Februar 2009 23:26:46 schrieb Stroller:

> Am I not correct in thinking that initramfs used to be / can be / was
> originally a separate file which goes in /boot and is described with
> an extra boot parameter?

Yes, you are. There are several ways nowadays. I use the easy one: Populate a 
directory tree with the contents of the initramfs and configure that directory 
in menuconfig. The kernel build system handles the details.

> I wasn't aware that you could embed the initramfs into the kernel
> itself - after reading Neil's message yesterday I looked up more about
> the initramfs, contemplated about the idea of doing so and decided
> "naw, you'll never be able to do that, it would make the kernel too
> big and take up too much memory".

Nope. It's freed right after swithing to the real root fs.

> I certainly can recognise that you're doing something bogus, because
> your kernel parameters use "realroot=" and not just "root="

Luckily the kernel ignores everything it doesn't know so you can give it any 
option you like. In this case I use "realroot" inside initramfs to tell it (by 
parsing /proc/cmdline) what's the real volume for the encrypted root device 
(/dev/mapper/c-root) listed in fstab.

Bye...

        Dirk

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to