aboutsummaryrefslogtreecommitdiff
path: root/scripts/cpio-pfx.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/cpio-pfx.sh')
-rw-r--r--scripts/cpio-pfx.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/cpio-pfx.sh b/scripts/cpio-pfx.sh
new file mode 100644
index 0000000..483b4d9
--- /dev/null
+++ b/scripts/cpio-pfx.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+. ./.vars
+
+SZE=$(du -sm $prefix |awk '{print $1}')
+
+ # | cpio -R root:root -do - \
+cd "$prefix"
+find . \
+ | cpio -v -R root:root -oH newc \
+ | pv -s ${SZE}M \
+ | xz -T1 -1 -c > $base_dir/pfx.cpio.xz