Download meta.bbclass - Yocto Project
Transcript
Variables Glossary
USERADD_UID_TABLES = "files/passwd"
Note
Setting the USERADDEXTENSION variable to "useraddstaticids" causes the build system to use static uid values.
USERADD_PACKAGES
When a recipe inherits the useradd class, this variable specifies
the individual packages within the recipe that require users and/or
groups to be added.
You must set this variable if the recipe inherits the class. For example,
the following enables adding a user for the main package in a recipe:
USERADD_PACKAGES = "${PN}"
Note
If follows that if you are going to use the USERADD_PACKAGES
variable, you need to set one or more of the USERADD_PARAM,
GROUPADD_PARAM, or GROUPMEMS_PARAM variables.
USERADD_PARAM
When a recipe inherits the useradd class, this variable specifies
for a package what parameters should be passed to the useradd
command if you wish to add a user to the system when the package
is installed.
Here is an example from the dbus recipe:
USERADD_PARAM_${PN} = "--system --home ${localstatedir}/lib/dbus \
--no-create-home --shell /bin/false \
--user-group messagebus"
For information on the standard Linux shell command useradd, see
http://linux.die.net/man/8/useradd.
USERADDEXTENSION
When set to "useradd-staticids", causes the OpenEmbedded build
system to base all user and group additions on a static passwd and
group files found in BBPATH.
To use static user identification (uid) and group identification (gid)
values, set the variable as follows in your local.conf file:
USERADDEXTENSION = "useradd-staticids"
Note
Setting this variable to use static uid and gid values causes
the OpenEmbedded build system to employ the useraddstaticids class.
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.
177