[OE-core] [PATCH 1/1] useradd_base.bbclass: fix simultaneous with flock
Burton, Ross
ross.burton at intel.com
Tue Feb 23 16:29:22 UTC 2016
On 23 February 2016 at 02:45, <kai.kang at windriver.com> wrote:
> When perform useradd during populate sysroot, it locks files passwd.lock
> and group.lock at same time. And then it meets a dead lock issue
> randomly.
>
> Use flock to reslove it by using an universal lock file for all the
> user and group related operations.
>
I got an error when openssh's do_install was running useradds to the
sysroot:
| DEBUG: Executing shell function useradd_sysroot
| Running useradd commands...
|
/data/poky-master/tmp-glibc/work/core2-32-poky-linux/openssh/7.1p2-r0/temp/run.useradd_sysroot.13825:
264: local: /data/poky-master/tmp-glibc/sysroots/intel-core2-32: bad
variable name
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: useradd_sysroot (log file is located at
/data/poky-master/tmp-glibc/work/core2-32-poky-linux/openssh/7.1p2-r0/temp/log.do_install.13825)
ERROR: Task 2939 (/home/ross/Yocto/poky/meta/recipes-connectivity/openssh/
openssh_7.1p2.bb, do_install) failed with exit code '1'
262 perform_useradd() {
263 local rootdir="$1"
264 local opts=`echo $2 | sed s/\'/\"/g`
265 bbnote "openssh: Performing useradd with [$opts]"
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160223/8f1b063a/attachment-0002.html>
More information about the Openembedded-core
mailing list