summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2017-03-22 11:21:20 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-04-07 14:42:19 +0200
commit9028462c5c52300ce4099eac63435cf6e165415b (patch)
treee12e9a6ad37a8fa50c3010ee813f29428af0579b
parent8e759842280857d0b7fd2f18e246608fd56435e3 (diff)
run-postinsts: do not reload daemon configuration
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service16
-rw-r--r--recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend1
2 files changed, 17 insertions, 0 deletions
diff --git a/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service b/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service
new file mode 100644
index 0000000..1b71a1f
--- /dev/null
+++ b/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Run pending postinsts
+DefaultDependencies=no
+After=systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount
+Before=sysinit.target
+ConditionPathExistsGlob=#SYSCONFDIR#/*-postinsts
+
+[Service]
+Type=oneshot
+ExecStart=#SBINDIR#/run-postinsts
+ExecStartPost=#BASE_BINDIR#/systemctl --no-reload disable run-postinsts.service
+RemainAfterExit=No
+TimeoutSec=0
+
+[Install]
+WantedBy=sysinit.target
diff --git a/recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend b/recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend
new file mode 100644
index 0000000..49e7305
--- /dev/null
+++ b/recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend
@@ -0,0 +1 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/opkg:"