From: Zen Date: Thu, 16 Nov 2023 16:33:54 +0000 (-0600) Subject: lxc-local: Change LXC_CONFIG to LXC_METADATA to match args and be more clear X-Git-Tag: v6.0.0~33^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=faa38a19792c0b2e377e8a0a262d4d58b94aa19b;p=thirdparty%2Flxc.git lxc-local: Change LXC_CONFIG to LXC_METADATA to match args and be more clear Signed-off-by: Zen --- diff --git a/templates/lxc-local.in b/templates/lxc-local.in index d14c2e2e5..72ba57ca8 100755 --- a/templates/lxc-local.in +++ b/templates/lxc-local.in @@ -28,7 +28,7 @@ LXC_TEMPLATE_CONFIG=@LXCTEMPLATECONFIG@ LXC_NAME= LXC_PATH= LXC_ROOTFS= -LXC_CONFIG= +LXC_METADATA= MODE="system" COMPAT_LEVEL=5 @@ -91,7 +91,7 @@ while :; do --name) LXC_NAME="$2"; shift 2;; --path) LXC_PATH="$2"; shift 2;; --rootfs) LXC_ROOTFS="$2"; shift 2;; - -m|--metadata) LXC_CONFIG="$2"; shift 2;; + -m|--metadata) LXC_METADATA="$2"; shift 2;; -f|--fstree) LXC_FSTREE="$2"; shift 2;; --mapped-uid) LXC_MAPPED_UID="$2"; shift 2;; --mapped-gid) LXC_MAPPED_GID="$2"; shift 2;; @@ -157,7 +157,7 @@ else fi # Unpack file that contains meta.tar.xz -if ! tar Jxf "${LXC_CONFIG}" -C "${LOCAL_TEMP}"; then +if ! tar Jxf "${LXC_METADATA}" -C "${LOCAL_TEMP}"; then echo "ERROR: Invalid metadata file" 2>&1 exit 1 fi