openembedded / meta-openembedded

MIT License
400 stars 695 forks source link

Haveged: Deferring to first boot via 'exit 1' is no longer supported. #170

Open james-bay opened 4 years ago

james-bay commented 4 years ago

I have a error with haveged 1.9.6 (yocto zeus)

Postinstall scriptlets of ['haveged'] 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.
kraj commented 4 years ago

Can you check if this happens with master too ? if yes then perhaps there is a patch already that can be backported.

james-bay commented 4 years ago

There are no problems with master branch.

With zeus branch, there are messages in log.do_rootfs about haveged:

...
update-rc.d: /home/james/yocto-zeus/rpi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/qt5-image/1.0-r0/rootfs/etc/init.d / haveged: file does not exist
...
Configuring haveged.
haveged.postinst returned 1, marking as unpacked only, configuration required on target.
...
WARNING: haveged.postinst returned 1, marking as unpacked only, configuration required on target.
ERROR: Postinstall scriptlets of ['haveged'] 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/james/yocto-zeus/rpi/build/tmp/work/raspberrypi3-poky-linux-gnueabi/qt5-image/1.0-r0/temp/log.do_rootfs.

I use systemd as an init system.

james-bay commented 4 years ago

I applied this patch and build completed successfully. Thanks, @kraj!

kraj commented 4 years ago

We need to backport this to Zeus @akuster