From d89fc818b716d099f83a5a9a973be428e2b66806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darrel=20Gri=C3=ABt?= Date: Mon, 30 Dec 2024 14:10:33 +0100 Subject: [PATCH] polkit: Install rules in subdir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/openembedded/meta-openembedded/commit/d5e90541f8e35916abc930b2da6de037b23d51a1 moved the rules to /usr/share/ instead of /etc/. The commit also removed the install:prepend() step. This results in the rules being installed as file /usr/share/polkit-1/rules.d instead of in that folder. This commit adds back the install prepend step such that the rules are installed in said folder. Signed-off-by: Darrel Griƫt Signed-off-by: Khem Raj --- meta-oe/recipes-extended/polkit/polkit-group-rule.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-oe/recipes-extended/polkit/polkit-group-rule.inc b/meta-oe/recipes-extended/polkit/polkit-group-rule.inc index f57ca2611b..531f203efe 100644 --- a/meta-oe/recipes-extended/polkit/polkit-group-rule.inc +++ b/meta-oe/recipes-extended/polkit/polkit-group-rule.inc @@ -6,4 +6,8 @@ REQUIRED_DISTRO_FEATURES = "polkit" inherit useradd +do_install:prepend() { + install -m 700 -d ${D}${datadir}/polkit-1/rules.d +} + FILES:${PN} += "${datadir}/polkit-1/rules.d"