Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Peter A. Bigot" <pab@pabigot.com>
To: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: why does useradd.bbclass loop retrying its commands?
Date: Sat, 15 Nov 2014 10:53:29 -0600	[thread overview]
Message-ID: <54678509.3080902@pabigot.com> (raw)
In-Reply-To: <1416068535.28563.0.camel@linuxfoundation.org>

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


  reply	other threads:[~2014-11-15 16:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-15  5:37 why does useradd.bbclass loop retrying its commands? Peter A. Bigot
2014-11-15 16:22 ` Richard Purdie
2014-11-15 16:53   ` Peter A. Bigot [this message]
2014-11-15 21:19 ` Mark Hatle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54678509.3080902@pabigot.com \
    --to=pab@pabigot.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=richard.purdie@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox