Skip to contentSkip to conversation

package/e2fsprogs: enable systemd services

PATCH New James Hilliard 1 participant 1 message Oct 31, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/e2fsprogs: enable systemd services

These are normally enabled by systemctl preset-all.

---
 package/e2fsprogs/e2fsprogs.mk | 9 +++++++++
 1 file changed, 9 insertions(+)
package/e2fsprogs/e2fsprogs.mk +9 -0
index 28fd78047f..9a40055a4f 100644
@@ -74,5 +74,14 @@ define HOST_E2FSPROGS_INSTALL_CMDS
 	$(HOST_MAKE_ENV) $(MAKE1) -C $(@D) install install-libs
 endef
 
+define E2FSPROGS_INSTALL_INIT_SYSTEMD
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/default.target.wants
+	ln -sf ../../../../lib/systemd/system/e2scrub_reap.service \
+		$(TARGET_DIR)/etc/systemd/system/default.target.wants/e2scrub_reap.service
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/timers.target.wants
+	ln -sf ../../../../lib/systemd/system/e2scrub_all.timer \
+		$(TARGET_DIR)/etc/systemd/system/timers.target.wants/e2scrub_all.timer
+endef
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 1 line
2.20.1