From f4fe6a45664f344e4380caad9e611e2b5986fec8 Mon Sep 17 00:00:00 2001 From: Powa458 Date: Sat, 5 Mar 2022 14:27:04 +0100 Subject: [PATCH] Fixing creation of temp mount directory. --- post-processor/create/post-processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-processor/create/post-processor.go b/post-processor/create/post-processor.go index efd88ae..20c3ba3 100644 --- a/post-processor/create/post-processor.go +++ b/post-processor/create/post-processor.go @@ -92,7 +92,7 @@ func (pp PostProcessor) PostProcess(context context.Context, ui packer.Ui, baseA ui.Message(fmt.Sprintf("Base directory for artifact created: '%s'", baseDir)) // Create temp mount directory. The directory will be created with random number suffix. - mountDir, err := os.MkdirTemp(currentDir, "mount_") + mountDir, err := os.MkdirTemp(baseDir, "mount_") if err != nil { log.Fatal(err) }