diff options
-rw-r--r-- | meta/recipes-core/systemd/systemd-compat-units.bb | 19 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd-compat-units/run-postinsts.service | 17 |
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 | ||
10 | inherit allarch | 10 | inherit allarch |
11 | 11 | ||
12 | SRC_URI = "file://*.service" | 12 | ALLOW_EMPTY_${PN} = "1" |
13 | |||
14 | do_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 | ||
24 | SYSTEMD_DISABLED_SYSV_SERVICES = " \ | 14 | SYSTEMD_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 | ||
50 | FILES_${PN} = "${systemd_unitdir}/system ${bindir}" | ||
51 | RDPEPENDS_${PN} = "systemd" | 40 | RDPEPENDS_${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 | ||
57 | POSTINSTALL_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] | ||
2 | Description=Run pending postinsts | ||
3 | DefaultDependencies=no | ||
4 | ConditionPathExists=|/etc/rcS.d/S@POSTINSTALL_INITPOSITION@run-postinsts | ||
5 | After=systemd-remount-fs.service systemd-tmpfiles-setup.service tmp.mount | ||
6 | Before=sysinit.target | ||
7 | |||
8 | [Service] | ||
9 | ExecStart=/etc/rcS.d/S@POSTINSTALL_INITPOSITION@run-postinsts | ||
10 | RemainAfterExit=No | ||
11 | Type=oneshot | ||
12 | StandardOutput=syslog | ||
13 | TimeoutSec=0 | ||
14 | |||
15 | [Install] | ||
16 | WantedBy=basic.target | ||
17 | WantedBy=sysinit.target | ||