]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
extrausers.bbclass: Suggest to use IMAGE_CLASSES rather than INHERIT
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Thu, 17 Jan 2019 02:53:16 +0000 (03:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Jan 2019 11:02:44 +0000 (11:02 +0000)
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.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/extrausers.bbclass

index 7709407b698b396815e144c6f7dc20842e38ff84..32569e97db874ece039a74a401be06bef5fab7fb 100644 (file)
@@ -1,18 +1,17 @@
-# This bbclass is mainly used for image level user/group configuration.
+# This bbclass is used for image level user/group configuration.
 # Inherit this class if you want to make EXTRA_USERS_PARAMS effective.
 
 # Below is an example showing how to use this functionality.
-# INHERIT += "extrausers"
+# IMAGE_CLASSES += "extrausers"
 # EXTRA_USERS_PARAMS = "\
-# useradd -p '' tester; \
-# groupadd developers; \
-# userdel nobody; \
-# groupdel -g video; \
-# groupmod -g 1020 developers; \
-# usermod -s /bin/sh tester; \
+#     useradd -p '' tester; \
+#     groupadd developers; \
+#     userdel nobody; \
+#     groupdel -g video; \
+#     groupmod -g 1020 developers; \
+#     usermod -s /bin/sh tester; \
 # "
 
-
 inherit useradd_base
 
 PACKAGE_INSTALL_append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS'))]}"