[yocto] Post install script in a recipe

Bipnesh, Abhinav (Abhinav) abhinavbipnesh at avaya.com
Fri Mar 13 04:39:00 PDT 2015


Hi All,


I was trying to perform a post install activity as part of the recipe using pkg_postinst_PACKAGENAME() but seems it's not working. Below is the sample function we have written as part of the recipe



pkg_postinst_test (){

    #!/bin/sh -xe

    echo " we are calling post install for test"

    mkdir -p /test/logs/1

    touch /test/test1/test2/test3/sample.txt



}



testX directory exists as they are created as part of the install activity. When we verify the post install we did find the file being created as below is the output



ls /test/test1/test2/test3/*.txt

ls: cannot access /test/test1/test2/test3/*.txt: No such file or directory



So any thoughts how to fix this issue as we need to perform some post install activity as part of the package installation.



Regards,

Abhinav


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


More information about the yocto mailing list