From 73692b5ba9f28b75e226152044b18409a7df7685 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sun, 22 Apr 2018 18:26:18 -0400 Subject: Addex XZ as well as sources and a working "tar" for the system. ( I need to rename it to cpio ) --- scripts/tar-pfx.sh | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'scripts/tar-pfx.sh') diff --git a/scripts/tar-pfx.sh b/scripts/tar-pfx.sh index b395764..2b5a215 100644 --- a/scripts/tar-pfx.sh +++ b/scripts/tar-pfx.sh @@ -1,10 +1,18 @@ #!/bin/sh . ./.vars -bsdtar \ - --numeric-owner \ - --owner=root \ - --group=root \ - -C pfx \ - -cvf - . \ - | xz -9 -T0 -vc > pfx.txz +SZE=$(du -sm $prefix |awk '{print $1}') + + # | cpio -R root:root -do - \ +find $prefix \ + | cpio -v -R root:root -oH newc \ + | pv -s ${SZE}M \ + | xz -T0 -9 -c > pfx.txz + +# bsdtar \ +# --numeric-owner \ +# --owner=root \ +# --group=root \ +# -C pfx \ +# -cvf - . \ +# | xz -9 -T0 -vc > pfx.txz -- cgit v1.2.3