<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/classes/useradd.bbclass, branch edison</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=edison</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=edison'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2012-05-31T20:11:45+00:00</updated>
<entry>
<title>useradd.bbclass: retry useradd/groupadd commands to avoid lock race issues</title>
<updated>2012-05-31T20:11:45+00:00</updated>
<author>
<name>Scott Garman</name>
<email>scott.a.garman@intel.com</email>
</author>
<published>2012-03-23T04:43:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=68cd8deadc2f4b30ed618d6a3afaed6b2c4c514b'/>
<id>urn:sha1:68cd8deadc2f4b30ed618d6a3afaed6b2c4c514b</id>
<content type='text'>
A race condition can occur when adding users and groups to the
passwd and group files, causing errors like the following:

 ERROR: Function 'useradd_sysroot' failed
 Tried to access "/etc/group" but this was locked.

This fix will cause the useradd code to retry the useradd and
groupadd commands up to 10 times (with a 1s sleep in between
attempts) before failing.

This fixes [YOCTO #1794]

(From OE-Core rev: 68c589f1b5ee36f0aff151b728447ffdae14622c)

(From OE-Core rev: fb9f5feaa49b78d03d25d96254a5ce04079ce594)

Signed-off-by: Scott Garman &lt;scott.a.garman@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>shadow-sysroot: Fix for multilib</title>
<updated>2012-05-31T20:11:45+00:00</updated>
<author>
<name>Zhai Edwin</name>
<email>edwin.zhai@intel.com</email>
</author>
<published>2012-03-06T17:03:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=b2a0243f053dca10c3650498509f43c9eb7721a9'/>
<id>urn:sha1:b2a0243f053dca10c3650498509f43c9eb7721a9</id>
<content type='text'>
Fix following error in multilib build:
"ERROR: Task do_package_setscene depends upon nonexistant task
poky/meta/recipes-extended/shadow/shadow-sysroot_4.1.4.3.bb:do_populate_sysroot_setscene"

&gt;From richard.purdie@linuxfoundation.org

(From OE-Core rev: 5de2c22fb42c12783abc090a81f10db9eb39732f)

(From OE-Core rev: 8a8b1a49e3c7f96d76f6457a1f9a14e1eb4d5302)

Signed-off-by: Zhai Edwin &lt;edwin.zhai@intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd.bbclass: override USERADDSETSCENEDEPS to empty when building cross packages</title>
<updated>2012-05-31T20:11:44+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2012-02-24T20:50:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=a99b7d39dc67a3915d775ad9d64cd5b4479d0903'/>
<id>urn:sha1:a99b7d39dc67a3915d775ad9d64cd5b4479d0903</id>
<content type='text'>
(From OE-Core rev: 5650eb44ea28c87f2f87ea3c5a557b9f08d58775)

(From OE-Core rev: fa0f0052b49b7809b9b55df6049a0dfedbc94560)

Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd.bbclass: skip processing on virtclass-cross extended packages</title>
<updated>2012-05-31T20:11:44+00:00</updated>
<author>
<name>Otavio Salvador</name>
<email>otavio@ossystems.com.br</email>
</author>
<published>2012-02-07T18:25:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=755508c423e73945a107c72eec7b96e698ca3176'/>
<id>urn:sha1:755508c423e73945a107c72eec7b96e698ca3176</id>
<content type='text'>
(From OE-Core rev: 4308acbbd43e6b8b37123d95df6675233007dae4)

(From OE-Core rev: 4a338c552d989d37a26eb6cc0c1da95a6928af9f)

Signed-off-by: Otavio Salvador &lt;otavio@ossystems.com.br&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd.bbclass: Fix missing quote</title>
<updated>2012-05-31T20:11:44+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2012-01-27T23:57:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=adbf38414e583ab0190474556316b90cc6ed8458'/>
<id>urn:sha1:adbf38414e583ab0190474556316b90cc6ed8458</id>
<content type='text'>
(From OE-Core rev: d7b13cd42ab8d5f44f97e119b73ec2e363677d26)

(From OE-Core rev: 6e21a379542ef5428d6005782f1ad4a8c764eb47)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd: Ensure dependencies are only added for target recipes, not native or nativesdk</title>
<updated>2012-05-31T20:11:44+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2012-01-27T16:59:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=c3be61e204646bb4a71675e08dbfc8861ff178a3'/>
<id>urn:sha1:c3be61e204646bb4a71675e08dbfc8861ff178a3</id>
<content type='text'>
(From OE-Core rev: 63d006b2d3fc2223c74f81b91f70f5c841108c80)

(From OE-Core rev: d6c43fdc815347a0adfee590da56f8b332540da6)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd.bbclass: Add explict setscene dependencies to ensure correct ordering of setscene tasks</title>
<updated>2012-05-31T20:11:43+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2012-01-26T19:13:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=490753f4400222d19e83412294b75f3cda94942a'/>
<id>urn:sha1:490753f4400222d19e83412294b75f3cda94942a</id>
<content type='text'>
(From OE-Core rev: ffc7bbcf0011de3f1f6e8d95f1de0b8f7164fa51)

(From OE-Core rev: a9aae582a6068a946cf177ce33e54cb0aee6c6e5)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd.bbclass: Ensure pseudo can load in the pseudo unloaded case</title>
<updated>2012-05-31T20:11:43+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2012-01-26T12:51:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f3fc5e1e3f115dc4145167f5da5a9ada59f02903'/>
<id>urn:sha1:f3fc5e1e3f115dc4145167f5da5a9ada59f02903</id>
<content type='text'>
In the do_populate_sysroot_setscene case, pseudo has been unloaded and we need
to reload it. This code change ensures all the pseudo options are specified
so pseudo loads correctly.

It also improves some of the comments so all the different contexts are listed.

(From OE-Core rev: 76345cd61c9523ce6755ef8e923dec37800b7a98)

(From OE-Core rev: 6f25ede827ee469464ca2db72bf05c75fa7c11f3)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd.bbclass: Execute user addition code before do_package_setscene, not after do_populate_sysroot_setscene</title>
<updated>2012-05-31T20:11:43+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2012-01-26T14:41:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=e2c5e5a513b9f9bf34d2970b43b1582d9c85f0bb'/>
<id>urn:sha1:e2c5e5a513b9f9bf34d2970b43b1582d9c85f0bb</id>
<content type='text'>
The user addition needs to happen before the do_package files are extracted
by do_package_setscene since those are the ones we need to preserve the file
ownership information for. This patch ensures this happens.

(From OE-Core rev: 34282c1b996ef008384af456735692d66ddabc13)

(From OE-Core rev: b571766ffc7ec5aa78035557c25a0e8b244c17c8)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>useradd: Ensure -native recipes don't depend on target recipes</title>
<updated>2012-05-31T20:11:43+00:00</updated>
<author>
<name>Richard Purdie</name>
<email>richard.purdie@linuxfoundation.org</email>
</author>
<published>2011-11-21T13:59:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=c5a9efca9671ce0c526701463f480dbb387aacce'/>
<id>urn:sha1:c5a9efca9671ce0c526701463f480dbb387aacce</id>
<content type='text'>
Without this change, dbus-native can end up depending upon base-passwd
for example. This change mirrors the existing nativesdk code.

Based on a patch from Henning Heinold &lt;heinold@inf.fu-berlin.de&gt;
but with some additions from me.

(From OE-Core rev: eba81d1c606ec29ffb793c1cb3cfed9562d552bc)

(From OE-Core rev: b325378930655beeec03bbc5ce6ccf2b29f408fd)

Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Signed-off-by: Joshua Lock &lt;josh@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
