1From 420ae0f395838b852ae8b8fe5528056c36dc0919 Mon Sep 17 00:00:00 2001
2From: Claudius Heine <ch@denx.de>
3Date: Wed, 11 May 2022 15:14:22 +0200
4Subject: [PATCH] add WantedBy directive to btrfsmaintenance-refresh.service
5
6Just trigger the service on the first boot, to configure services to the
7configuration file deployed in the package, afterwards disable the
8service, so that is only triggered when the configuration file has
9changed.
10
11Upstream-Status: Inappropriate [OE specific]
12
13Signed-off-by: Claudius Heine <ch@denx.de>
14---
15 btrfsmaintenance-refresh.service | 4 ++++
16 1 file changed, 4 insertions(+)
17
18diff --git a/btrfsmaintenance-refresh.service b/btrfsmaintenance-refresh.service
19index d6225a6..58d0e09 100644
20--- a/btrfsmaintenance-refresh.service
21+++ b/btrfsmaintenance-refresh.service
22@@ -3,4 +3,8 @@ Description=Update cron periods from /etc/default/btrfsmaintenance
23
24 [Service]
25 ExecStart=/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh systemd-timer
26+ExecStart=systemctl disable btrfsmaintenance-refresh.service
27 Type=oneshot
28+
29+[Install]
30+WantedBy=multi-user.target
31--
322.33.3
33
34