targetwide: imagebuilder: add explicit guards around initramfs rules
authorEric Fahlgren <[email protected]>
Wed, 8 Oct 2025 16:42:21 +0000 (09:42 -0700)
committerRobert Marko <[email protected]>
Fri, 17 Oct 2025 08:51:37 +0000 (10:51 +0200)
commitf6e0f57be0afd1baae8376c8c58535f9a9fe6e4d
tree0cd8219edaa79dacf00426e63f46dbb9faed98c7
parentf21e8158fbff16ede6ee814929dc0f2738c0c3c2
targetwide: imagebuilder: add explicit guards around initramfs rules

The imagebuilder is not intended to build initramfs images.  Some
profiles attempt to do this and succeed, due to buildroot leaking
the initramfs-kernel into staging_dir; others attempt it, but fail
due to not having initramfs binaries present in the imagebuilder.

Fix this by adding an explict guard around the unsupported generation
of the initramfs images.  This saves space and time during imagebuilder
runs, fixes those that are currently broken and protects against future
breakage for profiles that inadvertently work now.

Fixes: https://github.com/openwrt/openwrt/issues/20151
Signed-off-by: Eric Fahlgren <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20347
Signed-off-by: Robert Marko <[email protected]>
target/linux/ath79/image/common-nec.mk
target/linux/ath79/image/generic.mk
target/linux/mediatek/image/filogic.mk
target/linux/qualcommax/image/ipq807x.mk
target/linux/ramips/image/mt7620.mk
target/linux/ramips/image/mt7621.mk