January 2018
Intermediate to advanced
456 pages
12h 49m
English
When generating users and groups using the useradd class, the uid and gid values are assigned dynamically during package installation. If this is not desired, there is a way to assign system-wide static uid and gid values by providing your own passwd and group files.
To do this, you need to define the USERADDEXTENSION variable in your conf/local.conf file as follows:
USERADDEXTENSION = "useradd-staticids"
The build system will then search the BBPATH variable for files/passwd and files/group files to obtain the uid and gid values. The files have the standard passwd layout as defined previously, with the password field ignored.
The default filenames can be overridden by using the USERADD_UID_TABLES and USERADD_GID_TABLES variables. ...
Read now
Unlock full access