diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-06 16:36:16 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-06 16:36:16 +0000 |
commit | c4b9bd13292f10884ad96854b79b1d22251bd1e7 (patch) | |
tree | 25eca358bf73c213f132526e1b0e36cb1a684b93 /contrib/image-convert/cpio2tar | |
parent | 6b9c2ffba4d6d8dc85d3667c76af92a8cf53eacf (diff) |
contrib/image-convert: Add scripts to convert FS images to different formats.
* Per RFC on the list.
Diffstat (limited to 'contrib/image-convert/cpio2tar')
-rwxr-xr-x | contrib/image-convert/cpio2tar | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/image-convert/cpio2tar b/contrib/image-convert/cpio2tar new file mode 100755 index 0000000000..7f2c92fe26 --- /dev/null +++ b/contrib/image-convert/cpio2tar @@ -0,0 +1,9 @@ +#!/bin/sh + +STAGING= #~/linux-ppc/build-oe-angstrom/tmp/staging/i686-linux/bin/ + +${STAGING}fakeroot bash -c " \ +rm -rf scratch; mkdir scratch; \ +cd scratch; gzip -d -c ../$1 | cpio -i --make-directories; \ +cd ..; \ +tar -cj -C scratch -f $(basename $1 .cpio.gz).tar.bz2 ." |