From 68a55c8ff779d8df90626e68d5d4e48660dd8027 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 7 Apr 2014 14:46:03 -0700 Subject: ref-manual: Edits to fix up how GID and UIDs are handled. Some review edits to change the useradd-staticids class and the related USERADD* variables. Input from Paul Eggleton. (From yocto-docs rev: 9b94046721a971de41d2062a48d624e06dcf17f0) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-classes.xml | 27 ++++++++------- documentation/ref-manual/ref-variables.xml | 54 +++++++++++++++--------------- 2 files changed, 42 insertions(+), 39 deletions(-) diff --git a/documentation/ref-manual/ref-classes.xml b/documentation/ref-manual/ref-classes.xml index df114f4eb2..0031df26d8 100644 --- a/documentation/ref-manual/ref-classes.xml +++ b/documentation/ref-manual/ref-classes.xml @@ -3137,11 +3137,11 @@
- <filename>-useradd-staticids.bbclass</filename> + <filename>useradd-staticids.bbclass</filename> - The useradd-staticids class supports the addition of - users or groups that have static user identification + The useradd-staticids class supports the addition + of users or groups that have static user identification (uid) and group identification (gid) values. @@ -3150,28 +3150,31 @@ 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. + add them dynamically. 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 + However, if non-deterministic uid and gid values are a problem, you can override the default, dynamic application of these values by setting static values. + When you set static values, the OpenEmbedded build system looks in + BBPATH for + files/passwd and files/group + files for the values. + + + + To use static uid and gid + values, you need to set some variables. See the USERADDEXTENSION, USERADD_UID_TABLES, USERADD_GID_TABLES, and USERADD_ERROR_DYNAMIC - variables for more information. + variables. You can also see the useradd class for additional information. diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 6eae958e58..258ae2c6db 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -7853,26 +7853,24 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" - The default behavior for the build system is to look in + When applying static group identification + (gid) values, the OpenEmbedded build + system looks in BBPATH - for a files/group file and then dynamically - apply uid values. - However, you can override this behavior by using the - USERADDEXTENSION - variable. - When you do use static values, you must also set the - USERADD_GID_TABLES variable in your - local.conf file as follows: + for a files/group file and then applies + those uid values. + Set the variable as follows in your + local.conf file: USERADD_GID_TABLES = "files/group" - When using static information for user adds, you must - also use the - USERADD_UID_TABLES - variable. + Setting the + USERADDEXTENSION + variable to "useradd-staticids" causes the build system + to use static gid values. @@ -7887,26 +7885,24 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" - The default behavior for the build system is to look in + When applying static user identification + (uid) values, the OpenEmbedded build + system looks in BBPATH - for the files/passwd file and - then dynamically apply uid values. - However, you can override this behavior by using the - USERADDEXTENSION - variable. - When you do use static values, you must also set the - USERADD_UID_TABLES variable in your - local.conf file as follows: + for a files/passwd file and then applies + those uid values. + Set the variable as follows in your + local.conf file: USERADD_UID_TABLES = "files/passwd" - When using static information for group adds, you must - also use the - USERADD_GID_TABLES - variable. + Setting the + USERADDEXTENSION + variable to "useradd-staticids" causes the build system + to use static uid values. @@ -7976,7 +7972,11 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" OpenEmbedded build system to base all user and group additions on a static passwd and - group files. + group files found in + BBPATH. + + + To use static user identification (uid) and group identification (gid) values, set the variable -- cgit v1.2.3-54-g00ecf