<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 16 February 2016 at 07:14,  <span dir="ltr">&lt;<a href="mailto:kai.kang@windriver.com" target="_blank">kai.kang@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":4lc" class="a3s" style="overflow:hidden">+FLOCK_FILE=$SYSROOT/etc<br></div></blockquote></div><br>useradd_base is also used by extrausers.bbclass, so it would be best if useradd_base decided where to use as a lock ($rootdir/${sysconfdir} sounds sensible) instead of expecting that the caller sets FLOCK_FILE and mysteriously failing if it wasn&#39;t set.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Also if we&#39;re locking and waiting properly instead of using timeouts and loops, can we remove the &quot;does it exist?&quot; check before the operation (eg groupadd -f will exit 0 if the group exists) and after (with proper locking that shouldn&#39;t be happening).</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>