On 2016年02月15日 20:31, Burton, Ross wrote:

On 15 February 2016 at 01:59, <kai.kang@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