Tell the user that they should switch to using USERMOD_PARAM instead of
GROUPMEMS_PARAM.
[YOCTO#16277]
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
update_useradd_package(pkg)
}
+do_recipe_qa[postfuncs] += "recipe_qa_deprecate_groupmems_param"
+python recipe_qa_deprecate_groupmems_param() {
+ useradd_packages = d.getVar('USERADD_PACKAGES') or ""
+ for pkg in useradd_packages.split():
+ if d.getVar(f"GROUPMEMS_PARAM:{pkg}"):
+ bb.warn("The GROUPMEMS_PARAM variable is deprecated. Please use USERMOD_PARAM instead.")
+ return
+}
+
# Use the following to extend the useradd with custom functions
USERADDEXTENSION ?= ""