blob: 06ab1064201c688e944a3b0514532f7875682b65 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001# polkit must prepare polkitd group
Patrick Williamsb48b7b42016-08-17 15:04:38 -05002DEPENDS += "polkit"
3
Brad Bishop19323692019-04-05 15:28:33 -04004inherit distro_features_check
5REQUIRED_DISTRO_FEATURES = "polkit"
6
Patrick Williamsb48b7b42016-08-17 15:04:38 -05007inherit useradd
8
9do_install_prepend() {
10 install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d
11 chown polkitd:polkitd ${D}${sysconfdir}/polkit-1/rules.d
12}
13USERADD_PARAM_${PN}_prepend = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"