summaryrefslogtreecommitdiff
path: root/scripts/relocate_sdk.py
diff options
context:
space:
mode:
authorChen Qi <qi.chen@windriver.com>2013-10-21 10:42:29 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-26 15:53:24 +0100
commitacce6ff1a77cfd29e3868faa89b120becb58bbbf (patch)
tree86a521a7f44abc22705bc0ffdbdbb78fda0a32b6 /scripts/relocate_sdk.py
parentd75b659ca22991662c78e4e7913f75675acf7e66 (diff)
downloadopenembedded-core-acce6ff1a77cfd29e3868faa89b120becb58bbbf.tar.gz
openembedded-core-acce6ff1a77cfd29e3868faa89b120becb58bbbf.tar.bz2
openembedded-core-acce6ff1a77cfd29e3868faa89b120becb58bbbf.zip
runqemu-extract-sdk: add --numeric-owner option to tar command
If the same username exists on both target and the build host, but the uids differ, and we start target via NFS, then the uid for the user will be incorrect on target. For example, if postfix's uid on host is 119 and on target is 1024, then if we start target via NFS, the uid for postfix will be 119. The root cause is that when we use runqemu-extract-sdk to generate the NFS rootfs for later use, the tar command will respect the username instead of uid. So if PSEUDO_PASSWD environment is not set correctly, the host /etc/passwd will be used, resulting in wrong uids. The situation for gid is completely analogous to that of uid. It's almost impossible for the runqemu-extract-sdk to guess the correct location of the needed password file merely based on the target tarball name. This patch solves this problem by adding the '--numeric-owner' option to the tar command so that the uid/gid will be used when extracting the tarball using runqemu-extract-sdk. In this situation, we'll always get the correct uid/gid after extracting the tarball. [YOCTO #5364] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'scripts/relocate_sdk.py')
0 files changed, 0 insertions, 0 deletions