Skip to contentSkip to conversation

package/rauc/rauc.mk: add systemd service file hook

PATCH New Bartosz Bilas 2 participants 2 messages Nov 14, 2019 – Nov 18, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/rauc/rauc.mk: add systemd service file hook

---
 package/rauc/rauc.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/rauc/rauc.mk +6 -0
index a49a580..f3434e9 100644
@@ -30,6 +30,12 @@ ifeq ($(BR2_PACKAGE_SYSTEMD),y)
 RAUC_DEPENDENCIES += systemd
 endif
 
+define RAUC_INSTALL_INIT_SYSTEMD
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
+	ln -sf ../../../../lib/systemd/system/rauc.service \
+		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/rauc.service
+endef
+
 HOST_RAUC_DEPENDENCIES = \
 	host-pkgconf \
 	host-openssl \
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/rauc/rauc.mk: add systemd service file hook

Quoted 4 lines · On Thu, 14 Nov 2019 11:59:47 +0100 Bartosz Bilas <[email protected]>…
---
 package/rauc/rauc.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com