[yocto] File permissions on package_ipk.bbclass

Khem Raj raj.khem at gmail.com
Fri Jun 2 16:59:45 PDT 2017


Hi Ian

On Fri, Jun 2, 2017 at 3:52 PM, Ian Welch <ian_welch at trimble.com> wrote:

> Thanks Raj.
>
> We are looking at using `sudo` but this may have a ripple effect in our
> other build scripts. I was hoping there was a more elegant way to handle
> this.
>
> We are using version Yocto v1.7
>


​pseudo is yocto utility which is abstracting the super
user operations even when you are building as normal user
which is at times needed when packaging a rootfs e.g.

cam you examine the content of an ipk and check if the
file perms are wrong for contents of an ipk?​



>
> ~Ian
>
> On Fri, Jun 2, 2017 at 3:14 PM, Khem Raj <raj.khem at gmail.com> wrote:
>
>> On Fri, Jun 2, 2017 at 1:57 PM, Ian Welch <ian_welch at trimble.com> wrote:
>> > Hello,
>> >      We are using the package_ipk.bbclass to create packages for opkg
>> that
>> > will be installed on our embedded hardware (target). We are also using
>> > Jenkins as a CI server to run bitbake. We have discovered that when we
>> > install packages built on Jenkins we get all kinds of file permissions
>> > errors after installing the ipks on our target system. I have tracked
>> the
>> > issue down to bitbake being run by a user called "jenkins" on our
>> Jenkins
>> > system. The permissions of the files are all "jenkins:jenkins" prior to
>> the
>> > do_package task running which results in these permissions getting
>> packaged
>> > into the .ipk files.
>> >
>> > Is there a way to change the ownership of the files prior to being
>> packaged?
>> > I'm thinking of something like a package_ipk.bbappend file or
>> environment
>> > variable?
>> >
>>
>> pseudo should have taken care of this.
>> what release are you on ?
>>
>> > Cheers,
>> >
>> > --
>> >
>> > Ian Welch
>> > Trimble Navigation
>> > 10368 Westmoor Drive | Westminster, CO 80021
>> >
>> >
>> > --
>> > _______________________________________________
>> > yocto mailing list
>> > yocto at yoctoproject.org
>> > https://lists.yoctoproject.org/listinfo/yocto
>> >
>>
>
>
>
> --
>
> Ian Welch
> Engineering Manager, Civil Engineering & Construction
> 10368 Westmoor Drive | Westminster, CO 80021
> +1-303-635-8750 <(303)%20635-8750> Direct | +1-720-320-5181
> <(720)%20320-5181> Mobile
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20170602/029ad9b8/attachment.html>


More information about the yocto mailing list