From c4b9bd13292f10884ad96854b79b1d22251bd1e7 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 6 Feb 2008 16:36:16 +0000 Subject: contrib/image-convert: Add scripts to convert FS images to different formats. * Per RFC on the list. --- contrib/image-convert/cpio2tar | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 contrib/image-convert/cpio2tar (limited to 'contrib/image-convert/cpio2tar') 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 ." -- cgit v1.2.3