Skip to contentSkip to conversation

initramfs

DISCUSSION Jacek Jabłoński 2 participants 2 messages Jul 13, 2005

lore
Share & tools
lore
#0 lore raw

Hello,
Do You know any tool to create initramfs (not initrd)? If not, please tell me how to do that?
Jacek Jabłoński

#1 lore raw

Re: initramfs [u]

Quoted 1 line · Jacek Jab?o?ski

Do You know any tool to create initramfs (not initrd)?

that is very easy:
create a directory tree with everything you want in it (for example ld.so, a libc, some applications and config files and scripts and device files and whatever) and then use cpio to pack the files and directories into a cpio archive. gzip if you want.

cpio has several formats, be sure to choose the right one. more information in

Documentation/early-userspace/*

btw: most people want initrd/initramfs etc. with some small libc (klibc, dietlibc etc.). But normal libcs works very fine as well. I have some initramfs that are build from a few dozend debian packages. the result is a few hundred mb big (uncompressed), but that is ok as I can load and boot it via network and it works great and has all the normal linux tools in it.

also see the klibc mailing list, there have been several discussions about initramfs and I posted example code there I think. so look at the archives, too.

Regards, Andreas