diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2019-01-17 03:53:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-18 16:24:40 +0000 |
commit | 0ac56322d9d841b84ff993c176847e82a9ed1777 (patch) | |
tree | 1708926dce6a0030df05d095ccc2431a8cd78cd5 /meta/classes/extrausers.bbclass | |
parent | 4a7855e3f0a3fcb3f197890280ebd1ab88e85c24 (diff) | |
download | poky-0ac56322d9d841b84ff993c176847e82a9ed1777.tar.gz |
extrausers.bbclass: Suggest to use IMAGE_CLASSES rather than INHERIT
Since this class is only useful for image recipes, it is better to
suggest adding it via IMAGE_CLASSES instead of INHERIT in the example.
Also make the example a bit more readable by indenting the variable
values.
(From OE-Core rev: ee91a464f2cad6b3801e18fee28e639e1c957d41)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/extrausers.bbclass')
-rw-r--r-- | meta/classes/extrausers.bbclass | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/meta/classes/extrausers.bbclass b/meta/classes/extrausers.bbclass index 7709407b69..32569e97db 100644 --- a/meta/classes/extrausers.bbclass +++ b/meta/classes/extrausers.bbclass | |||
@@ -1,18 +1,17 @@ | |||
1 | # This bbclass is mainly used for image level user/group configuration. | 1 | # This bbclass is used for image level user/group configuration. |
2 | # Inherit this class if you want to make EXTRA_USERS_PARAMS effective. | 2 | # Inherit this class if you want to make EXTRA_USERS_PARAMS effective. |
3 | 3 | ||
4 | # Below is an example showing how to use this functionality. | 4 | # Below is an example showing how to use this functionality. |
5 | # INHERIT += "extrausers" | 5 | # IMAGE_CLASSES += "extrausers" |
6 | # EXTRA_USERS_PARAMS = "\ | 6 | # EXTRA_USERS_PARAMS = "\ |
7 | # useradd -p '' tester; \ | 7 | # useradd -p '' tester; \ |
8 | # groupadd developers; \ | 8 | # groupadd developers; \ |
9 | # userdel nobody; \ | 9 | # userdel nobody; \ |
10 | # groupdel -g video; \ | 10 | # groupdel -g video; \ |
11 | # groupmod -g 1020 developers; \ | 11 | # groupmod -g 1020 developers; \ |
12 | # usermod -s /bin/sh tester; \ | 12 | # usermod -s /bin/sh tester; \ |
13 | # " | 13 | # " |
14 | 14 | ||
15 | |||
16 | inherit useradd_base | 15 | inherit useradd_base |
17 | 16 | ||
18 | PACKAGE_INSTALL_append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS'))]}" | 17 | PACKAGE_INSTALL_append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS'))]}" |