From: Stribik András Date: Mon, 13 Oct 2025 10:51:23 +0000 (+0200) Subject: Automatically detect compression format in the lxc-local template X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20aa142d5865d938ec7bfe4c9bd04cdffe79e938;p=thirdparty%2Flxc.git Automatically detect compression format in the lxc-local template Signed-off-by: Stribik András --- 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 }