aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsh Charles <ashcharles@gmail.com>2015-01-28 17:38:13 -0800
committerMartin Jansa <Martin.Jansa@gmail.com>2015-02-12 19:33:24 +0100
commitb196d3e2131913a35ce30b87ac8fd7521952ca33 (patch)
treedd2e4c01bd7d8a924de9ed1f818b8a9e4069b1b1
parent89b48fdf7c5cabb73ffd7492bd45789001f27763 (diff)
downloadmeta-openembedded-contrib-b196d3e2131913a35ce30b87ac8fd7521952ca33.tar.gz
meta-openembedded-contrib-b196d3e2131913a35ce30b87ac8fd7521952ca33.tar.bz2
meta-openembedded-contrib-b196d3e2131913a35ce30b87ac8fd7521952ca33.zip
polkit-group-rule: Add polkitd user and group
Recipes including polkit-group-rule.inc correctly install a directory with the user and group set as 'polkitd'. To avoid warnings like these when assemblying the rootfs, WARNING: log_check: warning: user polkitd does not exist - using root ... WARNING: log_check: warning: group polkitd does not exist - using root create this user and group. Note: although the polkit recipe itself, on which this depends, is creating this same user and group, it seems that the useradd class needs this to be specified independently. Signed-off-by: Ash Charles <ashcharles@gmail.com> Acked-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-extended/polkit/polkit-group-rule.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/polkit/polkit-group-rule.inc b/meta-oe/recipes-extended/polkit/polkit-group-rule.inc
index 8d1a89aa3e..3435e93a0f 100644
--- a/meta-oe/recipes-extended/polkit/polkit-group-rule.inc
+++ b/meta-oe/recipes-extended/polkit/polkit-group-rule.inc
@@ -7,3 +7,4 @@ do_install_prepend() {
install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d
chown polkitd:polkitd ${D}${sysconfdir}/polkit-1/rules.d
}
+USERADD_PARAM_${PN}_prepend = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"