summaryrefslogtreecommitdiffstats
path: root/share
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-21 17:41:06 +0000
commite72e831f2580111b4a5f41b631052ec121d04cc8 (patch)
tree38fc3f1b2b7f0776503d62a246e75090d48b0a3a /share
parentFixing typo in 'bandwidth'. (diff)
downloadcompute-tools-e72e831f2580111b4a5f41b631052ec121d04cc8.tar.xz
compute-tools-e72e831f2580111b4a5f41b631052ec121d04cc8.zip
Also creating lz compressed container-images in example script.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
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