If you attach log.do_rootfs, that would help. It is supposed to contain full information about the failure, and I would not want to start special-casing those. Alex On Mon, 31 May 2021 at 21:12, Armin Kuster wrote: > I ran into an issue with a systemd service that had a depend. > The post init error message was a bit misleading; > > 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. > > All I found was a python trace back in the logs. I have provided a version > of an > error message that I hope is acceptable. The second patch is for RPM > adapting > to use the 'error message' to help provide a bit more info. > > The RPM solusion has been tested and before porting this to the other > package managers, I want to make sure the 'error message' was accepted. > > > > Armin Kuster (2): > systemctl: Stop tracebacks use formated error messages > package_manager/rpm: decode systemctl failures > > meta/lib/oe/package_manager/rpm/__init__.py | 3 +++ > .../systemd/systemd-systemctl/systemctl | 24 +++++++++++++++---- > 2 files changed, 22 insertions(+), 5 deletions(-) > > -- > 2.25.1 > > > > >