]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-local: remove check for template existence before extraction 4450/head
authorJacob McNamee <jacob@jacobmcnamee.com>
Wed, 22 May 2024 14:02:14 +0000 (07:02 -0700)
committerJacob McNamee <jacob@jacobmcnamee.com>
Wed, 22 May 2024 14:26:37 +0000 (07:26 -0700)
This check always fails because template files do not exist until the
rootfs is unpacked. File existence is already confirmed before replacing
variables

Signed-off-by: Jacob McNamee <jacob@jacobmcnamee.com>
templates/lxc-local.in

index b09d3de9da25fe286610080c1c57525c61524be6..f855ea0a8e341fe878ad498571bf3550b3b1fafa 100755 (executable)
@@ -265,7 +265,6 @@ process_templates() {
   if [ -e "${templates}" ]; then
     while read -r line; do
       fullpath="${LXC_ROOTFS}/${line}"
-      [ ! -e "${fullpath}" ] && continue
       record_template_file "${fullpath}"
     done < "${templates}"
   fi