Zachary Kotlarek wrote: > On Oct 27, 2009, at 12:16 AM, Bryan Kadzban wrote: >> cpio, no. Nothing uses it except rpm (and see above about that >> one). > > I've added cpio to my standard install, for use in the construction > and editing of initramfs images.
Actually, you don't need it for that, either. Mostly because the format of the cpio archive that the kernel expands is rather simple, and because the kernel includes code to build this already. See the raid-crypt-lvm hint, and specifically the lfs-initramfs package referenced there. Although, actually, that hint never got committed apparently? Time to go ping the hints list, I think. Anyway, http://www.linuxfromscratch.org/~bryan/lfs-initramfs-1.0.tar.bz2 is the package. It includes a tiny C program to generate an initramfs from a specification of files and whatnot; this is pulled from the kernel and (I think anyway) modified slightly. (It also includes an old copy of run-init from klibc.) Yes, the cpio binary would work, and apparently it's a simpler format than tar for the in-kernel de-archiver code. But nothing else uses it. (And now I'm dangerously close to going circular in my logic, I think. :-) )
signature.asc
Description: OpenPGP digital signature
-- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page