aboutsummaryrefslogtreecommitdiff
path: root/scripts/tar-pfx.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-04-22 18:26:18 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-04-22 18:26:18 -0400
commit73692b5ba9f28b75e226152044b18409a7df7685 (patch)
tree06e8dbb42994ee65c8c815de3c23e5d2a910716d /scripts/tar-pfx.sh
parentb3810b12552a937dcb6486ccf775a0bd9094db23 (diff)
downloadmin-73692b5ba9f28b75e226152044b18409a7df7685.tar.gz
min-73692b5ba9f28b75e226152044b18409a7df7685.tar.xz
Addex XZ as well as sources and a working "tar" for the system.
( I need to rename it to cpio )
Diffstat (limited to 'scripts/tar-pfx.sh')
-rw-r--r--scripts/tar-pfx.sh22
1 files changed, 15 insertions, 7 deletions
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