diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-06-16 13:11:19 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2023-06-16 12:17:15 +0000 |
commit | cce8856658ae4ab176fb242d6e8e9d702eb529f3 (patch) | |
tree | 245acfd7b123b23e8803ec4ab7b1bac2588d28e1 /meta-app-framework/recipes-config | |
parent | c57f7a0610a7702f7057c416ce2b170d71ef001e (diff) |
polkit-rule-agl-app: add useradd class and USERADD_PARAMpike_15.91.0pike/15.91.015.91.0
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
Diffstat (limited to 'meta-app-framework/recipes-config')
-rw-r--r-- | meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb b/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb index fe6ecf863..57dda7787 100644 --- a/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb +++ b/meta-app-framework/recipes-config/polkit-rule-agl-app/polkit-rule-agl-app.bb @@ -6,7 +6,7 @@ SRC_URI = "file://50-agl-app.rules" DEPENDS += "polkit" -inherit features_check +inherit useradd features_check REQUIRED_DISTRO_FEATURES = "polkit" do_install() { @@ -15,4 +15,7 @@ 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" |