From 9028462c5c52300ce4099eac63435cf6e165415b Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 22 Mar 2017 11:21:20 +0100 Subject: run-postinsts: do not reload daemon configuration Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- .../run-postinsts/run-postinsts/run-postinsts.service | 16 ++++++++++++++++ .../run-postinsts/run-postinsts_1.0.bbappend | 1 + 2 files changed, 17 insertions(+) create mode 100644 recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service create mode 100644 recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend (limited to 'recipes-devtools') 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:" -- cgit v1.2.3