From cdbaa32fd17fcde0221eeffd881d7d46d09656fb Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 7 Apr 2014 12:25:29 -0700 Subject: ref-manual: New variables to support static uid and gid values. Added variable descriptions for the following variables: * USERADDEXTENTIONS * USERADD_UID_TABLES * USERADD_GID_TABLES * USERADD_ERROR_DYNAMIC. (From yocto-docs rev: 988c21db5ca2bc5a6884acc2320e0143e3a7cf14) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 135 +++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) (limited to 'documentation/ref-manual') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 210d15099f..58b508e516 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -7806,6 +7806,107 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" + USERADD_ERROR_DYNAMIC + + + Forces the OpenEmbedded build system to produce an error + if the user identification (uid) and + group identification (gid) values + are not defined in files/passwd + and files/group files. + + + + The default behavior for the build system is to dynamically + apply uid and + gid values. + Consequently, the USERADD_ERROR_DYNAMIC + variable is by default not set. + If you plan on using statically assigned + gid and uid + values, you should set + the USERADD_ERROR_DYNAMIC variable in + your local.conf file as + follows: + + USERADD_ERROR_DYNAMIC = "1" + + Overriding the default behavior implies you are going to + also take steps to set static uid and + gid values through use of the + USERADDEXTENSION, + USERADD_UID_TABLES, + and + USERADD_GID_TABLES + variables. + + + + + USERADD_GID_TABLES + + + Specifies a password file to use for obtaining static + group identification (gid) values + when the OpenEmbedded build system adds a group to the + system during package installation. + + + + The default behavior for the build system is to dynamically + apply gid 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: + + USERADD_GID_TABLES = "files/group" + + + + + When using static information for user adds, you must + also use the + USERADD_UID_TABLES + variable. + + + + + USERADD_UID_TABLES + + + Specifies a password file to use for obtaining static + user identification (uid) values + when the OpenEmbedded build system adds a user to the + system during package installation. + + + + The default behavior for the build system is to 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: + + USERADD_UID_TABLES = "files/passwd" + + + + + When using static information for group adds, you must + also use the + USERADD_GID_TABLES + variable. + + + + USERADD_PACKAGES @@ -7863,6 +7964,40 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" + + USERADDEXTENTION + + + When set to "useradd-staticids", causes the + OpenEmbedded build system to base all user and group + additions on a static + passwd and + group files. + To use static user identification (uid) + and group identification (gid) + values, set the variable + as follows in your local.conf file: + + USERADDEXTENSION = "useradd-staticids" + + + + + If you use static uid and + gid information, you must also + specify the files/passwd and + files/group files by setting the + USERADD_UID_TABLES + and + USERADD_GID_TABLES + variables. + Additionally, you should also set the + USERADD_ERROR_DYNAMIC + variable. + + + + -- cgit v1.2.3-54-g00ecf