diff mbox series

[1/1] package/systemd-bootchart: enable systemd-bootchart.service

Message ID 20190903212812.36514-1-james.hilliard1@gmail.com
State Accepted
Headers show
Series [1/1] package/systemd-bootchart: enable systemd-bootchart.service | expand

Commit Message

James Hilliard Sept. 3, 2019, 9:28 p.m. UTC
This would normally be enabled by systemctl preset-all however since we
don't have a host systemctl we need to enable the service manually.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 package/systemd-bootchart/systemd-bootchart.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Thomas Petazzoni Sept. 17, 2019, 9:14 p.m. UTC | #1
On Tue,  3 Sep 2019 15:28:12 -0600
James Hilliard <james.hilliard1@gmail.com> wrote:

> This would normally be enabled by systemctl preset-all however since we
> don't have a host systemctl we need to enable the service manually.
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
>  package/systemd-bootchart/systemd-bootchart.mk | 6 ++++++
>  1 file changed, 6 insertions(+)

Applied to master, thanks.

Thomas
Peter Korsgaard Sept. 26, 2019, 9:28 a.m. UTC | #2
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@bootlin.com> writes:

 > On Tue,  3 Sep 2019 15:28:12 -0600
 > James Hilliard <james.hilliard1@gmail.com> wrote:

 >> This would normally be enabled by systemctl preset-all however since we
 >> don't have a host systemctl we need to enable the service manually.
 >> 
 >> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
 >> ---
 >> package/systemd-bootchart/systemd-bootchart.mk | 6 ++++++
 >> 1 file changed, 6 insertions(+)

Committed to 2019.02.x, 2019.05.x and 2019.08.x, thanks.
diff mbox series

Patch

diff --git a/package/systemd-bootchart/systemd-bootchart.mk b/package/systemd-bootchart/systemd-bootchart.mk
index bcc3dbe22a..62bc79539b 100644
--- a/package/systemd-bootchart/systemd-bootchart.mk
+++ b/package/systemd-bootchart/systemd-bootchart.mk
@@ -16,4 +16,10 @@  SYSTEMD_BOOTCHART_DEPENDENCIES = systemd
 
 SYSTEMD_BOOTCHART_CONF_OPTS = --disable-man
 
+define SYSTEMD_BOOTCHART_INSTALL_INIT_SYSTEMD
+	mkdir -p $(TARGET_DIR)/etc/systemd/system/sysinit.target.wants
+	ln -sf ../../../../lib/systemd/system/systemd-bootchart.service \
+		$(TARGET_DIR)/etc/systemd/system/sysinit.target.wants/systemd-bootchart.service
+endef
+
 $(eval $(autotools-package))