summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2019-01-17 03:53:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-18 16:24:40 +0000
commit0ac56322d9d841b84ff993c176847e82a9ed1777 (patch)
tree1708926dce6a0030df05d095ccc2431a8cd78cd5 /meta/classes
parent4a7855e3f0a3fcb3f197890280ebd1ab88e85c24 (diff)
downloadpoky-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')
-rw-r--r--meta/classes/extrausers.bbclass17
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
16inherit useradd_base 15inherit useradd_base
17 16
18PACKAGE_INSTALL_append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS'))]}" 17PACKAGE_INSTALL_append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS'))]}"