On 3/20/07, MickB <[EMAIL PROTECTED]> wrote:
>
>     Quite standard, you'll say. But I encounter difficulties to make a
> such initramfs. I know I need to build a very simple system, make a cpio
> image of it an that's it. I know some tools currently exist, I've heared
> about mkinitramfs but it doesn't seem to work. Internet's researches
> didn't provide me useable infos (but maybe I suck ;)).      But I
> believe I'm not the first LFS user trying to do this, so if someone
> could provide some help I would be very happy.

I'm not the initramfs expert by a _long_ shot, but here's what I've
been using that works in my simple case where root is on a real
partition (no raid/lvm/etc.).

1. klibc - small libc + some utilities
   http://www.kernel.org/pub/linux/libs/klibc/
2. udev + modprobe from module-init-tools built against klibc

You could just skip these parts and copy your glibc + needed utilities
into the initramfs. klibc does provide run-init, though, which handles
all the magic of changing root.

3. David Zeuthen at Redhat wrote a mkinitramfs script called
Mayflower. You'd need to edit it a bit since it's Fedora specific, but
it didn't take me long.
http://gitweb.freedesktop.org/?p=users/david/livecd-tools.git;a=blob;hb=HEAD;f=creator/mayflower

His livecd-tools repo also provides a version of run-init that I
mentioned above if you wanted to build it against glibc.

I can send you my hacked up mkinitramfs if you want, but it's got some
specifics for my system, which isn't quite LFS.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to