[OE-core] why does useradd.bbclass loop retrying its commands?
Peter A. Bigot
pab at pabigot.com
Sat Nov 15 16:53:29 UTC 2014
On 11/15/2014 10:22 AM, Richard Purdie wrote:
> 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.
Makes sense. I do see that extrausers.bbclass has a comment explaining
why it only passes retries=1.
Peter
More information about the Openembedded-core
mailing list