summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/systemd/systemd-compat-units.bb19
-rw-r--r--meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service17
2 files changed, 1 insertions, 35 deletions
diff --git a/meta/recipes-core/systemd/systemd-compat-units.bb b/meta/recipes-core/systemd/systemd-compat-units.bb
index d8cc3f7852..e653470821 100644
--- a/meta/recipes-core/systemd/systemd-compat-units.bb
+++ b/meta/recipes-core/systemd/systemd-compat-units.bb
@@ -9,17 +9,7 @@ DEPENDS = "systemd-systemctl-native"
9 9
10inherit allarch 10inherit allarch
11 11
12SRC_URI = "file://*.service" 12ALLOW_EMPTY_${PN} = "1"
13
14do_install() {
15 install -d ${D}${systemd_unitdir}/system/basic.target.wants
16 install -d ${D}${systemd_unitdir}/system/sysinit.target.wants/
17 sed -i -e 's,@POSTINSTALL_INITPOSITION@,${POSTINSTALL_INITPOSITION},g' \
18 ${WORKDIR}/run-postinsts.service
19 install -m 0644 ${WORKDIR}/run-postinsts.service ${D}${systemd_unitdir}/system
20 ln -sf ../run-postinsts.service ${D}${systemd_unitdir}/system/basic.target.wants/
21 ln -sf ../run-postinsts.service ${D}${systemd_unitdir}/system/sysinit.target.wants/
22}
23 13
24SYSTEMD_DISABLED_SYSV_SERVICES = " \ 14SYSTEMD_DISABLED_SYSV_SERVICES = " \
25 busybox-udhcpc \ 15 busybox-udhcpc \
@@ -47,11 +37,4 @@ pkg_postinst_${PN} () {
47 done ; echo 37 done ; echo
48} 38}
49 39
50FILES_${PN} = "${systemd_unitdir}/system ${bindir}"
51RDPEPENDS_${PN} = "systemd" 40RDPEPENDS_${PN} = "systemd"
52
53# Define a variable to allow distros to run configure earlier.
54# (for example, to enable loading of ethernet kernel modules before networking starts)
55# note: modifying name or default value for POSTINSTALL_INITPOSITION requires
56# changes in opkg.inc
57POSTINSTALL_INITPOSITION ?= "98"
diff --git a/meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service b/meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service
deleted file mode 100644
index 35cf3d32de..0000000000
--- a/meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service
+++ /dev/null
@@ -1,17 +0,0 @@
1[Unit]
2Description=Run pending postinsts
3DefaultDependencies=no
4ConditionPathExists=|/etc/rcS.d/S@POSTINSTALL_INITPOSITION@run-postinsts
5After=systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount
6Before=sysinit.target
7
8[Service]
9ExecStart=/etc/rcS.d/S@POSTINSTALL_INITPOSITION@run-postinsts
10RemainAfterExit=No
11Type=oneshot
12StandardOutput=syslog
13TimeoutSec=0
14
15[Install]
16WantedBy=basic.target
17WantedBy=sysinit.target