]> code.ossystems Code Review - openembedded-core.git/commit
nativesdk: Handle chown/chgrp calls in nativesdk do_install tasks
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 Nov 2021 16:11:45 +0000 (16:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Nov 2021 16:58:55 +0000 (16:58 +0000)
commite1f40670c438e33cae87678425de72ca03566888
treeee6aaafde4dc74b6a251cf6a7b69674095353039
parent8406e83ade1c34d8a7d8063f2e7445aafa471721
nativesdk: Handle chown/chgrp calls in nativesdk do_install tasks

We disable the useradd code for nativesdk targets since we don't support
postinstalls or multiple users in those cases. This means any usage
of chown/chgrp inside do_install tasks won't work and would have to be
conditional. Rather than require all recipes to do that, add intercepts
of the calls and map those to root/root user/groups. We can't just ignore
them as some calls are used to remove host contamination from the host
user ID so they need to be made, just as root.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/nativesdk.bbclass
scripts/nativesdk-intercept/chgrp [new file with mode: 0755]
scripts/nativesdk-intercept/chown [new file with mode: 0755]