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

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



  reply	other threads:[~2014-11-15 16:22 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 [this message]
2014-11-15 16:53   ` Peter A. Bigot
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=1416068535.28563.0.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=pab@pabigot.com \
    /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