* devtool deploy-target with strip option: failed to preserve ownership #devtool #dunfell
@ 2021-06-24 10:11 florian.amstutz
2021-06-24 17:34 ` [yocto] " Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: florian.amstutz @ 2021-06-24 10:11 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 3015 bytes --]
Hi all,
when I use "devtool deploy-target" with the --strip option in the eSDK, the ownership cannot be preserved during copying the files from "image" to "deploy-target-stripped":
devtool deploy-target --strip --no-host-check --no-preserve less root@192.168.7.2
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/bin/less': Operation not permitted
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/bin/lesskey': Operation not permitted
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/bin/lessecho': Operation not permitted
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/bin': Operation not permitted
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share/man/man1/less.1': Operation not permitted
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share/man/man1/lesskey.1': Operation not permitted
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share/man/man1/lessecho.1': Operation not permitted
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share/man/man1': Operation not permitted
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share/man': Operation not permitted
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share': Operation not permitted
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr': Operation not permitted
cp: failed to preserve ownership for '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped': Operation not permitted
INFO: Successfully deployed /home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped
On the target, the deployed files have then the ownership of the eSDK user:
root@qemu:~# ls -lah /usr/bin/less
-rwx------ 1 1002 1003 116.7K Jun 24 08:53 /usr/bin/less
"devtool deploy-target" without the --strip option works as expected. The files are owned by root.
The eSDK has been built and installed on the same machine (tested on Ubuntu 16.04, 18.04 and 20.04).
Used Yocto release: 3.1.8
Thanks in advance for any help!
Best regards,
Florian
[-- Attachment #2: Type: text/html, Size: 3477 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [yocto] devtool deploy-target with strip option: failed to preserve ownership #devtool #dunfell
2021-06-24 10:11 devtool deploy-target with strip option: failed to preserve ownership #devtool #dunfell florian.amstutz
@ 2021-06-24 17:34 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2021-06-24 17:34 UTC (permalink / raw)
To: florian.amstutz, yocto
On 6/24/21 3:11 AM, florian.amstutz@scs.ch wrote:
> Hi all,
> when I use "devtool deploy-target" with the --strip option in the eSDK,
> the ownership cannot be preserved during copying the files from "image"
> to "deploy-target-stripped":
> devtool deploy-target --strip --no-host-check --no-preserve less
> root@192.168.7.2
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/bin/less':
> Operation not permitted
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/bin/lesskey':
> Operation not permitted
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/bin/lessecho':
> Operation not permitted
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/bin':
> Operation not permitted
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share/man/man1/less.1':
> Operation not permitted
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share/man/man1/lesskey.1':
> Operation not permitted
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share/man/man1/lessecho.1':
> Operation not permitted
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share/man/man1':
> Operation not permitted
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share/man':
> Operation not permitted
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr/share':
> Operation not permitted
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped/usr':
> Operation not permitted
> cp: failed to preserve ownership for
> '/home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped':
> Operation not permitted
> INFO: Successfully deployed
> /home/yocto/sdk/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/less/551-r0/deploy-target-stripped
> On the target, the deployed files have then the ownership of the eSDK user:
> root@qemu:~# ls -lah /usr/bin/less
> -rwx------ 1 1002 1003 116.7K Jun 24 08:53 /usr/bin/less
> "devtool deploy-target" without the --strip option works as expected.
> The files are owned by root.
> The eSDK has been built and installed on the same machine (tested on
> Ubuntu 16.04, 18.04 and 20.04).
> Used Yocto release: 3.1.8
> Thanks in advance for any help!
Can you file a ticket in bugzilla for this as well please.
> Best regards,
> Florian
>
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-24 17:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-24 10:11 devtool deploy-target with strip option: failed to preserve ownership #devtool #dunfell florian.amstutz
2021-06-24 17:34 ` [yocto] " Khem Raj
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.