]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-local: fix incorrect path to `templates` file
authorJacob McNamee <jacob@jacobmcnamee.com>
Wed, 22 May 2024 13:44:17 +0000 (06:44 -0700)
committerJacob McNamee <jacob@jacobmcnamee.com>
Wed, 22 May 2024 14:26:37 +0000 (07:26 -0700)
Signed-off-by: Jacob McNamee <jacob@jacobmcnamee.com>
templates/lxc-local.in

index b0c48bc4299eefa20a3136eba81c706deceaa2a9..b09d3de9da25fe286610080c1c57525c61524be6 100755 (executable)
@@ -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
 }