From 60a792d1fdda29be3a0c7298aded2e2f569edea2 Mon Sep 17 00:00:00 2001 From: Audiobuzz Date: Mon, 15 Jun 2026 11:16:06 +0000 Subject: [PATCH] Add debug to packer build --- diskless.pkr.hcl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/diskless.pkr.hcl b/diskless.pkr.hcl index 6287973..0056d8a 100644 --- a/diskless.pkr.hcl +++ b/diskless.pkr.hcl @@ -210,11 +210,16 @@ build { # No local bootloader regeneration wanted on kernel updates inside CI "command -v grub2-mkconfig >/dev/null && echo 'GRUB updates not used on diskless hosts' || true", + # ---- DEBUG (temporary): why isn't nvmf-connect.service landing? ----- + "echo '=== 95dot1x-macsec module dir on build VM ==='; ls -la /usr/lib/dracut/modules.d/95dot1x-macsec/ || true", + "echo '=== module-setup.sh nvmf/unitdir lines ==='; grep -n 'nvmf-connect\\|_unitdir\\|systemdsystemunitdir' /usr/lib/dracut/modules.d/95dot1x-macsec/module-setup.sh || echo NONE", + # ---- Build the fleet-generic initramfs ------------------------------ # %%{ escapes the rpm query tags so Packer's HCL template engine treats # them as literals (a bare %{...} is parsed as a template directive). "KVER=$(rpm -q --qf '%%{VERSION}-%%{RELEASE}.%%{ARCH}\\n' kernel | sort -V | tail -1)", - "dracut -f --no-hostonly --kver \"$KVER\" /boot/initramfs-generic.img", + "dracut --debug -f --no-hostonly --kver \"$KVER\" /boot/initramfs-generic.img 2>/tmp/dracut.log", + "echo '=== dracut debug: nvmf-connect / unitdir trace ==='; grep -iE 'nvmf-connect|systemdsystemunitdir|installing.*\\.service' /tmp/dracut.log | tail -40 || true", "lsinitrd /boot/initramfs-generic.img | grep -E 'macsec|wpa_supplicant|tpm2_nvread|nvme.tcp|erofs|veritysetup' ", # Assert the test-mode NVMe-oF connect unit made it in (the dracut module # installs it; this initramfs is systemd-driven so the connect is a