ERROR: security-build-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['clamav-daemon'] have failed. If the intention is to defer them to first boot, then please place them into pkg_postinst_ontarget_${PN} (). Deferring to first boot via 'exit 1' is no longer supported. Details of the failure are in /home/build/builds/master/tmp/work/qemux86_64-poky-linux/security-build-image/1.0-r0/temp/log.do_rootfs. The problem is a missing dependency in the systemd service file. This is the error. __main__.SystemdUnitNotFoundError: (PosixPath('/home/build/builds/master/tmp/work/qemux86_64-poky-linux/security-build-image/1.0-r0/rootfs'), 'clamav-daemon.socket') %post(clamav-daemon-0.104.0-r0.core2_64): waitpid(3635548) rc 3635548 status 100 warning: %post(clamav-daemon-0.104.0-r0.core2_64) scriptlet failed, exit status 1 Not sure if we can improve the Error to be more informative. The recipe did have a "pkg_postinst_ontarget_" so it sent me off in a wild goose chase. Wonder if systemd_preset_all() could be more informative.
patches sent to ML
Armin, Is this fixed now and if so, what are the patches? ../Randy
(In reply to comment #2) > Armin, > > Is this fixed now and if so, what are the patches? > > ../Randy yes. https://git.yoctoproject.org/poky/commit/?id=75f691d728dba4de53f89cd7ce1cdb69e35000cf
Thanks Armin.