summaryrefslogtreecommitdiffstats
path: root/projectroot
diff options
context:
space:
mode:
authorBastian Krause <bst@pengutronix.de>2021-08-24 18:52:47 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2021-09-03 17:18:47 +0200
commitce0e0bed719844ef6f813c4d176e350bd424636c (patch)
tree35305f1a4771442ea77ad5e3f1abcc84834ffe78 /projectroot
parentdfe93758629ffdfd6f4366f5d63ec8b09dca3a1c (diff)
downloadptxdist-ce0e0bed719844ef6f813c4d176e350bd424636c.tar.gz
ptxdist-ce0e0bed719844ef6f813c4d176e350bd424636c.tar.xz
projectroot: rauc-mark-good: adapt unit properties from systemd-bless-boot.service
Mark the system "good" when the boot-complete.target [1] is reached. "Type=oneshot" (instead of implicit "Type=simple") makes sure the unit is considered started once "rauc status mark-good" exits. "RemainAfterExit=yes" ensures that this service unit is only started once [2]. These options were adapted from [3] and [4]. [1] https://www.freedesktop.org/software/systemd/man/systemd.special.html#boot-complete.target [2] https://www.freedesktop.org/software/systemd/man/systemd.service.html#id-1.10.4 [3] https://github.com/systemd/systemd/blob/main/units/systemd-bless-boot.service.in [4] https://github.com/rauc/meta-rauc/pull/197 Signed-off-by: Bastian Krause <bst@pengutronix.de> Message-Id: <20210824165247.31292-1-bst@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'projectroot')
-rw-r--r--projectroot/usr/lib/systemd/system/rauc-mark-good.service4
1 files changed, 4 insertions, 0 deletions
diff --git a/projectroot/usr/lib/systemd/system/rauc-mark-good.service b/projectroot/usr/lib/systemd/system/rauc-mark-good.service
index af4daab9f..06f9fa8fd 100644
--- a/projectroot/usr/lib/systemd/system/rauc-mark-good.service
+++ b/projectroot/usr/lib/systemd/system/rauc-mark-good.service
@@ -2,8 +2,12 @@
Description=RAUC Good-marking Service
ConditionKernelCommandLine=|bootchooser.active
ConditionKernelCommandLine=|rauc.slot
+After=boot-complete.target
+Requires=boot-complete.target
[Service]
+Type=oneshot
+RemainAfterExit=yes
ExecStart=/usr/bin/rauc status mark-good
[Install]