Skip to content

V4: Replace retry logic in useradd with flock

[email protected] openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

V4 from the cover letter

* re-add check whether user/group exist

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1useradd_base.bbclass: replace retry logic with flockmeta/classes/useradd.bbclass meta/classes/useradd_base.bbclass+46 -1250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] V4: Replace retry logic in useradd with flock

From: Kai Kang <[email protected]>

V4:
* re-add check whether user/group exist

Hi Ross,

I add check back that avahi fails to do compile when remove the checks:

| useradd: user 'avahi-autoipd' already exists

So I add

set +e

But it fails with:

ERROR: Fakeroot process (13034) exited unexpectedly (-9), shutting down...

So I add the checks back and the commit works.

Regards,
Kai

The following changes since commit 4006a7f2762ccd5dcbc6cdff49482d4387a73261:

sanity: Fix int verses string reference (2016-02-28 22:54:09 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib kangkai/flockv4
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/flockv4

Kai Kang (1):
useradd_base.bbclass: replace retry logic with flock

 meta/classes/useradd.bbclass      |   6 +-
 meta/classes/useradd_base.bbclass | 165 ++++++++++----------------------------
 2 files changed, 46 insertions(+), 125 deletions(-)
Signature · 1 line
2.6.1