mirror of
https://git.yoctoproject.org/poky
synced 2026-02-21 00:49:41 +01:00
ref-manual: Added useradd-staticids class and edits to some variables.
Added the new useradd-staticids class to the reference section for classes. Updated the USERADD_UID_TABLES and USERADD_GID_TABLES variables to tell how the system uses BBPATH in the default mode to get UID and GID information from the files/passwd and files/group files. Added a note indicating that you can delete the TMPDIR directory to fix things up if you configure useradd-staticids in a configured system. (From yocto-docs rev: a3f5ee3f5060369405d59a238fb02bddfeae5d6f) 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
9f1c18e22a
commit
90d52bd51e
@@ -3136,6 +3136,60 @@
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section id='ref-classes-useradd-staticids'>
|
||||
<title><filename>-useradd-staticids.bbclass</filename></title>
|
||||
|
||||
<para>
|
||||
The <filename>useradd-staticids</filename> class supports the addition of
|
||||
users or groups that have static user identification
|
||||
(<filename>uid</filename>) and group identification
|
||||
(<filename>gid</filename>) values.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
The default behavior of the OpenEmbedded build system for assigning
|
||||
<filename>uid</filename> and <filename>gid</filename> values when
|
||||
packages add users and groups during package install time is to
|
||||
look in
|
||||
<link linkend='var-BBPATH'><filename>BBPATH</filename></link> for
|
||||
<filename>files/passwd</filename> and <filename>files/group</filename>
|
||||
files for the values.
|
||||
This works fine for programs that do not care what the values of the
|
||||
resulting users and groups become.
|
||||
In these cases, the order of the installation determines the final
|
||||
<filename>uid</filename> and <filename>gid</filename> values.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If non-deterministic
|
||||
<filename>uid</filename> and <filename>gid</filename> values are a
|
||||
problem, you can override the default, dynamic application of these
|
||||
values by setting static values.
|
||||
See the
|
||||
<link linkend='var-USERADDEXTENSION'><filename>USERADDEXTENSION</filename></link>,
|
||||
<link linkend='var-USERADD_UID_TABLES'><filename>USERADD_UID_TABLES</filename></link>,
|
||||
<link linkend='var-USERADD_GID_TABLES'><filename>USERADD_GID_TABLES</filename></link>,
|
||||
and
|
||||
<link linkend='var-USERADD_ERROR_DYNAMIC'><filename>USERADD_ERROR_DYNAMIC</filename></link>
|
||||
variables for more information.
|
||||
You can also see the
|
||||
<link linkend='ref-classes-useradd'><filename>useradd</filename></link>
|
||||
class for additional information.
|
||||
</para>
|
||||
|
||||
<note><title>Notes</title>
|
||||
You do not use this class directly.
|
||||
You either enable or disable the class by setting the
|
||||
<filename>USERADDEXTENSION</filename> variable.
|
||||
If you enable or disable the class in a configured system,
|
||||
<link linkend='var-TMPDIR'><filename>TMPDIR</filename></link>
|
||||
might contain incorrect <filename>uid</filename> and
|
||||
<filename>gid</filename> values.
|
||||
Deleting the <filename>TMPDIR</filename> directory
|
||||
will correct this condition.
|
||||
</note>
|
||||
</section>
|
||||
|
||||
<section id='ref-classes-utility-tasks'>
|
||||
<title><filename>utility-tasks.bbclass</filename></title>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user