While tuning the recipe, it appears that
having long options helps to understand
the recipe.
Bug-AGL: SPEC-2437
Bug-AGL: SPEC-2006
Change-Id: Ie3d1b288db0d2db3159f1b3453a02db46e863c4f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
USERADD_PACKAGES = "${PN}"
-USERADD_PARAM_${PN} = "-g ${afm_name} -d ${afm_datadir} -r ${afm_name}"
-GROUPADD_PARAM_${PN} = "-r ${afm_name}"
+USERADD_PARAM_${PN} = "--system --gid ${afm_name} --home-dir ${afm_datadir} ${afm_name}"
+GROUPADD_PARAM_${PN} = "--system ${afm_name}"
FILES_${PN} += "\
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '${systemd_user_unitdir}/afm-user-daemon.service', '', d)} \