[OE-core] [PATCH 1/1] useradd_base.bbclass: fix simultaneous with flock

Kang Kai Kai.Kang at windriver.com
Tue Feb 16 02:14:27 UTC 2016


On 2016年02月15日 20:31, Burton, Ross wrote:
>
> On 15 February 2016 at 01:59, <kai.kang at windriver.com 
> <mailto:kai.kang at windriver.com>> wrote:
>
>     +          eval flock -x -w 100
>     $rootdir/tmp/user-and-group-ops.flock -c  \'$PSEUDO useradd
>     $opts\' || true
>
>
> This is a great patch, but why not just flock $rootdir/etc instead of 
> new file in tmp?    Surely images end up being created with 
> /tmp/user-and-group-ops.flock in them?

I didn't try to think take a directory as a lock and I'll try it. For 
the lock file in $rootdir/tmp/, it is ok that /tmp will be remounted and 
user won't see the lock file.

Thanks,
Kai



>
> Ross


-- 
Regards,
Neil | Kai Kang

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160216/71020105/attachment-0002.html>


More information about the Openembedded-core mailing list