All of lore.kernel.org
 help / color / mirror / Atom feed
* Post install script in a recipe
@ 2015-03-13 11:39 Bipnesh, Abhinav (Abhinav)
  0 siblings, 0 replies; only message in thread
From: Bipnesh, Abhinav (Abhinav) @ 2015-03-13 11:39 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 853 bytes --]

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



[-- Attachment #2: Type: text/html, Size: 5172 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-13 11:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 11:39 Post install script in a recipe Bipnesh, Abhinav (Abhinav)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.