The only diff left to e.g. polkit and systemd is the USERADD_PARAM.
Add it into the recipe.
Bug-AGL: SPEC-4824
Change-Id: I7eb2862dc5c40577a1c3311ac9b7a7cc43c5be2a
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/29023
DEPENDS += "polkit"
-inherit features_check
+inherit useradd features_check
REQUIRED_DISTRO_FEATURES = "polkit"
do_install() {
install -m 0644 ${WORKDIR}/50-agl-app.rules ${D}${datadir}/polkit-1/rules.d
}
+USERADD_PACKAGES = "${PN}"
+USERADD_PARAM:${PN} += "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"
+
FILES:${PN} += "${datadir}/polkit-1/rules.d/*.rules"