summaryrefslogtreecommitdiffstats
path: root/meta/classes/extrausers.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/extrausers.bbclass')
-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'))]}"