pivot to a systemd unit for the online hook
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user