ref-manual: variables: adding multiple groups in GROUPADD_PARAM

Add missing documentation on how to add multiple groups with a single
GROUPADD_PARAM:${PN}

(From yocto-docs rev: 46f82dcb3b4042491efd44b9c15a06e3c910ec85)

Signed-off-by: Geoff Parker <geoffrey.parker@arthrex.com>
Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
Geoff Parker
2024-02-27 23:24:55 -08:00
committed by Steve Sakoman
parent 48bd3888df
commit d51c7e990b

View File

@@ -2962,6 +2962,14 @@ system and gives an overview of their function and contents.
GROUPADD_PARAM:${PN} = "-r netdev"
More than one group can be added by separating each set of different
groups' parameters with a semicolon.
Here is an example adding multiple groups from the ``useradd-example.bb``
file in the ``meta-skeleton`` layer::
GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
For information on the standard Linux shell command
``groupadd``, see https://linux.die.net/man/8/groupadd.