summaryrefslogtreecommitdiffstats
path: root/remote/modules/policykit/policykit.build
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/policykit/policykit.build')
-rw-r--r--remote/modules/policykit/policykit.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/remote/modules/policykit/policykit.build b/remote/modules/policykit/policykit.build
index b6b70b7f..7c2f3991 100644
--- a/remote/modules/policykit/policykit.build
+++ b/remote/modules/policykit/policykit.build
@@ -6,7 +6,7 @@ fetch_source () {
}
build () {
- COPYLIST="list_dpkg_output"
+ COPYLIST="$MODULE_DIR/list_dpkg_output"
[ -e "${COPYLIST}" ] && rm "${COPYLIST}"
list_packet_files >> "${COPYLIST}"
@@ -14,7 +14,8 @@ build () {
}
post_copy() {
-
+ local POLPATH="$(grep '/polkitd$' "$COPYLIST" | head -1 | sed -e 's/[\/&]/\\&/g')"
+ sed -i "s/%%POLKITD%%/${POLPATH}/g" "$TARGET_BUILD_DIR/etc/systemd/system/polkitd.service"
#Add Polkit User/Group/Shadow to Stage3.2
pinfo "Adding polkitd user to target system..."
add_user "polkitd"