From 4260c9755202db7fd544f541c27723e9ab9886f0 Mon Sep 17 00:00:00 2001 From: jcsiadal Date: Thu, 5 May 2022 04:39:36 +0000 Subject: [PATCH] Fix container excludes Signed-off-by: jcsiadal --- internal/pkg/container/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/container/build.go b/internal/pkg/container/build.go index 05e98ef4..594e0540 100644 --- a/internal/pkg/container/build.go +++ b/internal/pkg/container/build.go @@ -49,7 +49,7 @@ func Build(name string, buildForce bool) error { wwlog.Printf(wwlog.VERBOSE, "Using PIGZ to compress the container: %s\n", compressor) } var cmd string - _, err = os.Stat(path.Join(rootfsPath, "./etc/warewulf/exclude")) + _, err = os.Stat(path.Join(rootfsPath, "./etc/warewulf/excludes")) if os.IsNotExist(err) { wwlog.Printf(wwlog.DEBUG, "Building VNFS image: '%s' -> '%s'\n", rootfsPath, imagePath) cmd = fmt.Sprintf("cd %s; find . -xdev -xautofs | cpio --quiet -o -H newc | %s -c > \"%s\"", rootfsPath, compressor, imagePath)