From d2b14761a60958a9273c63420265d25bb373cf3c Mon Sep 17 00:00:00 2001 From: Audiobuzz Date: Sat, 13 Jun 2026 03:06:05 +0000 Subject: [PATCH] Fix missing trailing slash --- diskless.pkr.hcl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/diskless.pkr.hcl b/diskless.pkr.hcl index 9a84341..d422378 100644 --- a/diskless.pkr.hcl +++ b/diskless.pkr.hcl @@ -150,6 +150,14 @@ build { sources = ["source.qemu.diskless"] # --- 1. Stage the dracut module, configs, and CA placeholder ------------- + # Pre-create the staging dir. Packer's directory-contents upload (a file + # provisioner whose source ends in "/") requires the destination to already + # exist; otherwise the uploaded tree lands outside /tmp/etc-stage and the + # install steps below can't find it. + provisioner "shell" { + inline = ["mkdir -p /tmp/etc-stage"] + } + provisioner "file" { source = "files/dracut/95dot1x-macsec" destination = "/usr/lib/dracut/modules.d/" @@ -157,7 +165,7 @@ build { provisioner "file" { source = "files/etc/" - destination = "/tmp/etc-stage/" + destination = "/tmp/etc-stage" } # --- 2. Packages, configs, diskless adaptations --------------------------