From 90d52bd51e0e34dc8ffd9c83c3d7fe9551dcce8f Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 7 Apr 2014 14:10:50 -0700 Subject: 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 Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 54 ++++++++++++++++++++++++++++++ documentation/ref-manual/ref-variables.xml | 22 +++++++++--- 2 files changed, 71 insertions(+), 5 deletions(-) (limited to 'documentation/ref-manual') diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index babe9bd2d6..df114f4eb2 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -3136,6 +3136,60 @@ +
+ <filename>-useradd-staticids.bbclass</filename> + + + The useradd-staticids class supports the addition of + users or groups that have static user identification + (uid) and group identification + (gid) values. + + + + The default behavior of the OpenEmbedded build system for assigning + uid and gid values when + packages add users and groups during package install time is to + look in + BBPATH for + files/passwd and files/group + 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 + uid and gid values. + + + + If non-deterministic + uid and gid values are a + problem, you can override the default, dynamic application of these + values by setting static values. + See the + USERADDEXTENSION, + USERADD_UID_TABLES, + USERADD_GID_TABLES, + and + USERADD_ERROR_DYNAMIC + variables for more information. + You can also see the + useradd + class for additional information. + + + Notes + You do not use this class directly. + You either enable or disable the class by setting the + USERADDEXTENSION variable. + If you enable or disable the class in a configured system, + TMPDIR + might contain incorrect uid and + gid values. + Deleting the TMPDIR directory + will correct this condition. + +
+
<filename>utility-tasks.bbclass</filename> diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index d553ba8f71..6eae958e58 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -7853,8 +7853,10 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" - The default behavior for the build system is to dynamically - apply gid values. + The default behavior for the build system is to look in + BBPATH + for a files/group file and then dynamically + apply uid values. However, you can override this behavior by using the USERADDEXTENSION variable. @@ -7885,8 +7887,10 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" - The default behavior for the build system is to dynamically - apply uid values. + The default behavior for the build system is to look in + BBPATH + for the files/passwd file and + then dynamically apply uid values. However, you can override this behavior by using the USERADDEXTENSION variable. @@ -7965,7 +7969,7 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" - USERADDEXTENTION + USERADDEXTENSION When set to "useradd-staticids", causes the @@ -7980,6 +7984,14 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" USERADDEXTENSION = "useradd-staticids" + + Setting this variable to use static + uid and gid + values causes the OpenEmbedded build system to employ + the + useradd-staticids + class. + -- cgit v1.2.3-54-g00ecf