Skip to contentSkip to conversation

systemd: restore use of sysinit.target.wants by pre-creating the dir

PATCH New Denys Dmytriyenko 1 participant 1 message Sep 20, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: restore use of sysinit.target.wants by pre-creating the dir

TODO: convert to use systemd-conf instead of main systemd for machine/distro config

---
 meta-arago-distro/recipes-core/systemd/systemd_%.bbappend | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-arago-distro/recipes-core/systemd/systemd_%.bbappend +2 -2
index eb70690..39fe64d 100644
@@ -31,9 +31,9 @@ do_install_append() {
     install -m 0644 ${WORKDIR}/30-wlan.network ${D}${sysconfdir}/systemd/network/
     install -m 0644 ${WORKDIR}/60-usb.network ${D}${sysconfdir}/systemd/network/
 
-    install -d ${D}${sysconfdir}/systemd/system/
+    install -d ${D}${sysconfdir}/systemd/system/sysinit.target.wants
     install -m 0644 ${WORKDIR}/sync-clocks.service ${D}${sysconfdir}/systemd/system/
-    ln -sf ../sync-clocks.service ${D}${sysconfdir}/systemd/system/multi-user.target.wants/sync-clocks.service
+    ln -sf ../sync-clocks.service ${D}${sysconfdir}/systemd/system/sysinit.target.wants/sync-clocks.service
 
     # Allow automount from udev
     install -m 0644 ${D}${systemd_system_unitdir}/systemd-udevd.service ${D}${sysconfdir}/systemd/system/
Signature · 1 line
2.7.4