[BusyBox] Anybody working on cpio write support?

Glenn McGrath bug1 at iinet.net.au
Thu Jun 24 09:04:16 UTC 2004


On Thu, 24 Jun 2004 03:33:20 -0500
Rob Landley <rob at landley.net> wrote:

> I'm fiddling with the 2.6 kernel and trying to get initramfs working,
> and this requires making a -newc style cpio archive.  There's code in
> the kernel to do this, but it's got a hard-wired file list.  The
> busybox cpio command only extracts, it doesn't create.
> 
> I'm not sure if the logical thing to do is to fix up the busybox code
> or write a couple of for(readdir()) {} loops for the kernel code...
> 
> Now what I'm wondering is if there's some common directory traversal
> code between "find" and "tar" that could be reused for cpio.  (And ar,
> whenever it sprouts an option for the ability to write...)

At various times ive contemplated creating some common archive creation
code, but ive never actually done anything.



Glenn



More information about the busybox mailing list