[yocto] pkg_postinst shell?

Takashi Matsuzawa tmatsuzawa at xevo.com
Sun Jan 29 21:29:52 PST 2017


Hello.
It seems the below patch fixes this problem.

systemd.bbclass: don't block on service restart
https://patchwork.openembedded.org/patch/134317/

(By the way, it may related to my question in another thread, but which is the convenient way to apply this kind of patches to my local build system?)

________________________________
From: Takashi Matsuzawa
Sent: Saturday, January 28, 2017 11:58 AM
To: yocto at yoctoproject.org
Subject: pkg_postinst shell?


Hello Yocto.
I am debugging my recipe, which uses pkg_postinst but does not seem to work as expected.

It runs fine without $D detection.
However, if I try to run it at first boot (skipping with exit 1 if $D is not empty), the board boot seems to hang.
I think error (syntax error, etc.?) happening when it is run on the board, but package manager.

I doubt it is caused by non-existence of '#!/bin/sh' in my script but I am not sure since I am still trying the builds again and again.

i) Regarding the posttest script execution, is there log available so that I can look into (instead of writing out log file by myself from within my script)?  I do not seem to find it in temp folder of my recipes's working directory.

ii) Is '#!/bin/sh' always necessary?

iii) What happens with pkg_postinst_PN_append?  If it is defined without pkg_postinst_PN, it still works and executed?  If i) is true what about '#!/bin/sh' in this case?

If you have qucik suggestions, it is a great help.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170130/6e28bd19/attachment.html>


More information about the yocto mailing list