[klibc] ramfs to tmpfs

sferriol sylvain.ferriol at imag.fr
Fri Sep 29 00:36:51 PDT 2006

Luciano Miguel Ferreira Rocha a écrit :
> Hello,
> I was using a bunch of cpios in initramfs as a working system, and
> wondering why the unused files weren't being paged out to swap.
> So I reread ramfs-rootfs-initramfs.txt and now I know.
> So I wrote the attached utility. It creates a tmpfs, moves all files
> on the initramfs, moves / and executes the real init.
> It works, even with hardlinks, but it isn't the correct approach. Have
> anyone implemented a small init, in klibc, that decompresses a bunch of
> cpios to a tmpfs?
yes, i code a cpio reduced command for decompress a cpio.
i use it in debian-installer, but maximillian said that my code is under 
GPL not BSD.
so he has started to code unpack which will do the same but under BSD 
maximillian, tell me if i'm wrong ?

anymway i attach the cpio code if you need it

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpio.c
Type: text/x-csrc
Size: 33626 bytes
Desc: not available
Url : http://www.zytor.com/pipermail/klibc/attachments/20060929/360e2151/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4039 bytes
Desc: S/MIME Cryptographic Signature
Url : http://www.zytor.com/pipermail/klibc/attachments/20060929/360e2151/attachment-0003.bin 

More information about the klibc mailing list