From f27ece21302e6ba0dc327707faf9696cf4f52e5b Mon Sep 17 00:00:00 2001 From: Gregory Shulov Date: Thu, 1 Feb 2024 09:33:15 +0200 Subject: [PATCH] Cleanup output directory for rocky8 --- rocky8/rocky8.pkr.hcl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rocky8/rocky8.pkr.hcl b/rocky8/rocky8.pkr.hcl index 36f544b..5d49928 100644 --- a/rocky8/rocky8.pkr.hcl +++ b/rocky8/rocky8.pkr.hcl @@ -90,10 +90,11 @@ build { post-processor "shell-local" { inline = [ - "SOURCE=rocky8", + "SOURCE=${source.name}", "OUTPUT=${var.filename}", "source ../scripts/fuse-nbd", - "source ../scripts/fuse-tar-root" + "source ../scripts/fuse-tar-root", + "rm -rf output-${source.name}", ] inline_shebang = "/bin/bash -e" }