From 20aa142d5865d938ec7bfe4c9bd04cdffe79e938 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stribik=20Andr=C3=A1s?= Date: Mon, 13 Oct 2025 12:51:23 +0200 Subject: [PATCH] Automatically detect compression format in the lxc-local template MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stribik András --- templates/lxc-local.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/lxc-local.in b/templates/lxc-local.in index f855ea0a8..9fcfb145a 100755 --- a/templates/lxc-local.in +++ b/templates/lxc-local.in @@ -285,7 +285,7 @@ unpack_metadata() { echo "Using metadata file: ${LXC_METADATA}" - if ! tar Jxf "${LXC_METADATA}" -C "${LOCAL_TEMP}"; then + if ! tar -axf "${LXC_METADATA}" -C "${LOCAL_TEMP}"; then echo "Unable to unpack metadata file: ${LXC_METADATA}" 2>&1 exit 1 fi @@ -330,7 +330,7 @@ unpack_rootfs() { echo "Excludes: ${EXCLUDES}" fi - tar --anchored ${EXCLUDES} --numeric-owner --xattrs-include='*' -xpJf "${LXC_FSTREE}" -C "${LXC_ROOTFS}" + tar --anchored ${EXCLUDES} --numeric-owner --xattrs-include='*' -xpaf "${LXC_FSTREE}" -C "${LXC_ROOTFS}" prepare_rootfs } -- 2.47.3