From da78ddbd2901ae370e05afb31fcbc3b50d300d2e Mon Sep 17 00:00:00 2001 From: Audiobuzz Date: Mon, 15 Jun 2026 11:39:21 +0000 Subject: [PATCH] Add debug to packer build --- diskless.pkr.hcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/diskless.pkr.hcl b/diskless.pkr.hcl index 0056d8a..c48eb98 100644 --- a/diskless.pkr.hcl +++ b/diskless.pkr.hcl @@ -219,7 +219,8 @@ build { # 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 --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", + "echo '=== ALL nvmf-connect mentions in dracut.log (install AND any later removal) ==='; grep -n 'nvmf-connect' /tmp/dracut.log || echo NONE", + "echo '=== final image: nvmf/dot1x survivors ==='; lsinitrd /boot/initramfs-generic.img | grep -iE 'nvmf|dot1x|sbin/nvmf' || echo 'NO nvmf/dot1x files survived'", "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