Add debug to packer build

This commit is contained in:
Audiobuzz
2026-06-15 11:39:21 +00:00
parent 60a792d1fd
commit da78ddbd29
+2 -1
View File
@@ -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