[OE-core] why does useradd.bbclass loop retrying its commands?

Richard Purdie richard.purdie at linuxfoundation.org
Sat Nov 15 16:22:15 UTC 2014


On Fri, 2014-11-14 at 23:37 -0600, Peter A. Bigot wrote:
> The useradd, groupadd, and groupmems commands in useradd.bbclass are 
> executed in a loop with up to 10 failed attempts before they give up.  
> This appears to have always been the case, as long as that file has been 
> present.
> 
> Is there any reason why an initial failed attempt to execute one of 
> these commands would be expected to succeed on retry, other than because 
> delaying failure gives a chance for concurrently executing task to 
> complete and so satisfy a dependency?

Another recipe can be altering the files and holding the lock so in
theory, yes, the retries can help.

Cheers,

Richard




More information about the Openembedded-core mailing list