build: don't drop 'user' flag when using the ImageBuilder
authorDaniel Golle <daniel@makrotopia.org>
Tue, 20 Feb 2024 21:14:03 +0000 (21:14 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 20 Feb 2024 21:18:44 +0000 (21:18 +0000)
commitc42b915af0ea53bc1b65bc72afc9875da08b14d2
tree654c3d1983e96c0b810a803548ff5aa2794404ab
parent1e93208bd2c605704b19fe8b04025c20c17e808d
build: don't drop 'user' flag when using the ImageBuilder

Commit be9023ed43 ("build: fix opkg flags in rootfs") introduced a
call to 'awk' which removes the 'user' flag from all installed
packages in the opkg status file. While is is somehow desireable when
building images directly within the buildroot, when using the
ImageBuilder dropping the 'user' flag means loosing information about
a package being deliberately selected or just implicitely pulled as a
dependency. And that then break tools like 'auc' which request only
packages having the 'user' flag from the asu server, resulting in
broken images being delivered to users.

Restore the original behavior in case of an image being created using
the ImageBuilder.

Fixes: be9023ed43 ("build: fix opkg flags in rootfs")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
include/rootfs.mk