When systemd is in DISTRO_FEATURES and package management is enabled the postinstall scripts that did not run during the rootfs creation time are not getting run on the target at first boot. This was seen when the rootfs was being created and the depmodwrapper was not run during creation, and then on the target depmod was not run either, leaving modules uninstalled.
*Definitely* need something in oe-selftest for this.
I was not able to reproduce this. I used openembedded-core, core-image-minimal with the following lines added to local.conf: IMAGE_FEATURES_append = " package-management" DISTRO_FEATURES_append = " systemd" VIRTUAL-RUNTIME_init_manager = "systemd" DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" I also tried without the two latter lines.
IIRC, in the usual case there are no postinst scripts that need to be deferred. Pick a random postinst (or write a new recipe) and have it just echo something and exit 1, that should make it run on first boot.
That's exactly what I did.
Awesome. Closing then.
verified as per above comments.