I'm using image builder (openwrt-imagebuilder-23.05.2-bcm27xx-bcm2711.Linux-x86_64.tar.xz) inside docker (debian:stable-slim, non root user) to create an image, which so far works very good.
However it seems that the postinst scripts of the packages are executed inside the target environment (with IPKG_INSTROOT set to ../target/...etc), and some init scripts fail as there is no procd running and so on.
The question is
a) are the postinst files supposed to run during the image builder phase? Or should that be deferred to after the first boot?
b) whats the best practice here - check if IPKG_INSTROOT is set and in that case skip calls to procd?