Hello everyone,
I'm having an issue with a postinstall scriptlet failing for a package
that I am trying to add to my Yocto image. Initially I had a simple
CMake C++ application that installs itself (a single binary file), a
systemd service and a d-bus interface file. This was causing no issues.
Lets call this application A. Then I wanted to create a second
application based on this, so I copied everything from application A to
application B, replacing the name A with B everywhere. When I try to add
this second application B to my image I get this error:
ERROR: do_rootfs: Postinstall scriptlets of ['B'] 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.
By looking at the postinstall scriptlet (which I suppose comes from
inheriting the systemd class) I assume that the command:
systemctl ${OPTS} enable "$service"
for some reason fails.
I thought I had missed replacing the name A with B somewhere, but the in
the postinst script the correct name (B) is used.
Any ideas? I do not know where to continue troubleshooting from here. Is
it possible to "debug" the postinstall scriptlet in the environment that
it is running in?
//Pelle
The information contained in this email is intended solely for the use of the
individual or entity to whom it is addressed and may contain information that
is confidential. Please delete and notify the sender if received in error. SKF
does not accept liability for any damage arising from this email.
For information on SKF’s processing of your personal data, please visit SKF’s
Privacy Policy available via
www.skf.com<https://www.skf.com/us/footer/privacy-policy>.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59725): https://lists.yoctoproject.org/g/yocto/message/59725
Mute This Topic: https://lists.yoctoproject.org/mt/98362025/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-