targetwide: imagebuilder: add explicit guards around initramfs rules
authorEric Fahlgren <[email protected]>
Wed, 8 Oct 2025 16:42:21 +0000 (09:42 -0700)
committerHauke Mehrtens <[email protected]>
Sun, 19 Oct 2025 16:37:45 +0000 (18:37 +0200)
commit29397011ccef8cca2b26ebf8e2189224a88228bd
treef6958e854479f55972d0f881d235fb7f5a6ea718
parentc5892fe8c566521db3fddabe55f74ccb1331f0eb
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]>
(cherry picked from commit f6e0f57be0afd1baae8376c8c58535f9a9fe6e4d)
Signed-off-by: Hauke Mehrtens <[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