pivot to a systemd unit for the online hook

This commit is contained in:
Audiobuzz
2026-06-15 08:52:19 +00:00
parent 2eefd97c50
commit 62e49e6b42
6 changed files with 88 additions and 37 deletions
+4
View File
@@ -216,6 +216,10 @@ build {
"KVER=$(rpm -q --qf '%%{VERSION}-%%{RELEASE}.%%{ARCH}\\n' kernel | sort -V | tail -1)",
"dracut -f --no-hostonly --kver \"$KVER\" /boot/initramfs-generic.img",
"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
# systemd unit, not a dracut hook). Hard-fail if missing.
"lsinitrd /boot/initramfs-generic.img | grep -q 'nvmf-connect.service' || { echo 'ERROR: nvmf-connect.service missing from initramfs' >&2; exit 1; }",
# ---- Build hygiene ---------------------------------------------------
"dnf clean all",