summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-07-17 14:50:43 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-07-22 21:31:53 +0000
commitdfc58b5498e6cf6908efa1f27a31d252258e3491 (patch)
tree538c758922d9b77aa90d39dc2cfae8d4502f665f
parentUpdating output of container-shell help. (diff)
downloadcompute-tools-dfc58b5498e6cf6908efa1f27a31d252258e3491.tar.xz
compute-tools-dfc58b5498e6cf6908efa1f27a31d252258e3491.zip
Also creating lz compressed container-images in example script.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
-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