From dfc58b5498e6cf6908efa1f27a31d252258e3491 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 17 Jul 2017 16:50:43 +0200 Subject: Also creating lz compressed container-images in example script. Signed-off-by: Daniel Baumann --- share/doc/examples/container-images.sh | 7 +++++-- 1 file 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 -- cgit v1.2.3