On 2 July 2016 at 11:37, Kumar, Shrawan <shrawan.ku...@harman.com> wrote:
> 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. > > Then I suggest that you test the setcap patch that I pointed to earlier, you'll likely need the pseudo 1.8 upgrade that Joshua sent last night. This should ensure that setcap works in the pseudo environment. Then follow the instructions in image_types.bbclass to ensure that xattrs are preserved when the image is created, and check your kernel configuration to confirm that xattrs are supported. I recommend attempting to use fsetattr on the target directly to verify this. If all the pieces are in place then they should work. There's a number of bugs in bugzilla for tracking these issues (#9859 is the metabug tracking them). Your help in solving this would be much appreciated! Ross
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto