In one recipe i can see the following but it is not creating any extra user or group, that i confirmed while inspecting rpm file.
inherit extrausers
EXTRA_USERS_PARAMS = "\
useradd -p '' example; \
groupadd example; \
"
So I added the following in the recipe which created a user and group for me.
inherit useradd
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "--system example"
USERADD_PARAM_${PN} = "--system -M -d /var/lib/example -s /bin/false -g example example"
What is the exact difference between useradd and extrausers in yocto. Why extrausers cannot able to create user and group.