summaryrefslogtreecommitdiffstats
path: root/share/doc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xshare/doc/examples/container-images.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/share/doc/examples/container-images.sh b/share/doc/examples/container-images.sh
index b743f57..a995be5 100755
--- a/share/doc/examples/container-images.sh
+++ b/share/doc/examples/container-images.sh
@@ -3,7 +3,7 @@
# container-tools - Manage systemd-nspawn containers
#
# Description: example for automated Debian base system container image creation
-# Requires: debootstrap xz-utils
+# Requires: debootstrap plzip xz-utils
# Usage: sudo ./container-images.sh
set -e
@@ -31,7 +31,10 @@ do
rm -f "${SOURCE}/etc/resolv.conf"
rm -f "${SOURCE}/var/lib/systemd/catalog/database"
+ echo "Creating ${TARGET}.tar.lz"
+ tar --lzip -cf "${TARGET}.tar.lz" "${SOURCE}"
+
echo "Creating ${TARGET}.tar.xz"
- tar cfJ "${TARGET}.tar.xz" "${SOURCE}"
+ tar --xz -cf "${TARGET}.tar.xz" "${SOURCE}"
done
done