Hello Ross, Post-installation scripts run immediately after installing a package on the target or during image creation when a package is included in an image. Does it not mean that we can set the file attributes(setcap) during image creation ?
I understand the delayed approach of executing it on the target, but my requirement is to do it on the build host. We do not want “setcap” utility to be present on the target. Regards Shrawan From: Burton, Ross [mailto:ross.bur...@intel.com] Sent: Saturday, July 02, 2016 2:56 PM To: Kumar, Shrawan Cc: Daniel.; Mathieu Allard; yocto@yoctoproject.org Subject: Re: [yocto] setcap using recipe On 2 July 2016 at 10:22, Kumar, Shrawan <shrawan.ku...@harman.com<mailto:shrawan.ku...@harman.com>> wrote: Can someone review the attached recipe and help solve the problem statement ? As has been said, you need to ensure the postinst is delayed so it runs on the target and not on the build host. http://www.yoctoproject.org/docs/2.1/dev-manual/dev-manual.html#new-recipe-post-installation-scripts Ross
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto