From: Jacob McNamee Date: Wed, 22 May 2024 13:44:17 +0000 (-0700) Subject: lxc-local: fix incorrect path to `templates` file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d740a3423888606bb655aac3ceccba5cb26a3a9e;p=thirdparty%2Flxc.git lxc-local: fix incorrect path to `templates` file Signed-off-by: Jacob McNamee --- diff --git a/templates/lxc-local.in b/templates/lxc-local.in index b0c48bc42..b09d3de9d 100755 --- a/templates/lxc-local.in +++ b/templates/lxc-local.in @@ -261,13 +261,13 @@ process_fstab() { process_templates() { # Look for extra templates - template="$(relevant_file template)" - if [ -e "${template}" ]; then + templates="$(relevant_file templates)" + if [ -e "${templates}" ]; then while read -r line; do fullpath="${LXC_ROOTFS}/${line}" [ ! -e "${fullpath}" ] && continue record_template_file "${fullpath}" - done < "${template}" + done < "${templates}" fi }