mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 15:29:40 +01:00
ref-manual: Added extrausers class and EXTRA_USERS_PARAMS variable.
(From yocto-docs rev: e339505941f620ff74cd1bdd5f652c341baf2aad) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
affd9bf773
commit
6032dcdb32
@@ -535,6 +535,44 @@
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section id='ref-classes-extrausers'>
|
||||
<title><filename>extrausers.bbclass</filename></title>
|
||||
|
||||
<para>
|
||||
The extra users (<filename>extrausers</filename>) class allows
|
||||
additional user and group configuration to be applied at the image
|
||||
level.
|
||||
Inheriting this class either globally or from an image recipe allows
|
||||
additional user and group operations to be performed using the
|
||||
<link linkend='var-EXTRA_USERS_PARAMS'><filename>EXTRA_USERS_PARAMS</filename></link>
|
||||
variable.
|
||||
<note>
|
||||
The user and group operations added using the
|
||||
<filename>extrausers</filename> class are not tied to a specific
|
||||
recipe but can be performed across the image as a whole.
|
||||
See the
|
||||
<link linkend='ref-classes-useradd'><filename>useradd</filename></link>
|
||||
class for information on how to add user and group configuration
|
||||
to a specific recipe.
|
||||
</note>
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Here is an example that uses this class in an image recipe:
|
||||
<literallayout class='monospaced'>
|
||||
inherit extrausers
|
||||
EXTRA_USERS_PARAMS = "\
|
||||
useradd -p '' tester; \
|
||||
groupadd developers; \
|
||||
userdel nobody; \
|
||||
groupdel -g video; \
|
||||
groupmod -g 1020 developers; \
|
||||
usermod -s /bin/sh tester; \
|
||||
"
|
||||
</literallayout>
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section id='ref-classes-debian'>
|
||||
<title>Debian Renaming - <filename>debian.bbclass</filename></title>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user