mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] rauc: optional rauc-mark-good.service installation
@ 2024-05-28 14:55 r.czerwinski
  2024-05-31  7:37 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: r.czerwinski @ 2024-05-28 14:55 UTC (permalink / raw)
  To: ptxdist; +Cc: Rouven Czerwinski

From: Rouven Czerwinski <r.czerwinski@pengutronix.de>

Make the installation and enablement of the rauc-mark-good.service
optional. This is useful for BSPs which have the application indicate if
startup was successful instead of indicating successful startup using the
rauc-mark-good-service.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
v2:
- fix typos
- properly name service in KConfig entry
 rules/rauc.in   | 10 ++++++++++
 rules/rauc.make |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/rules/rauc.in b/rules/rauc.in
index ee9c3f955..68fa59b31 100644
--- a/rules/rauc.in
+++ b/rules/rauc.in
@@ -46,6 +46,16 @@ config RAUC_SERVICE
 	  that communicate with each other via D-Bus interface.
 	  Only deactivate this if you have a system that does not provide D-Bus!
 
+config RAUC_MARK_GOOD
+	bool
+	prompt "Enable systemd rauc-mark-good.service"
+	default y
+	help
+	  Installs and enables the default rauc-mark-good.service shipped with rauc.
+	  The rauc-mark-good.service runs when the systemd has successfully started
+	  up, which is not desirable if the application indicates the succesful
+	  startup.
+
 config RAUC_NETWORK
 	bool
 	prompt "Enable network support"
diff --git a/rules/rauc.make b/rules/rauc.make
index 38577f94d..7aed77e89 100644
--- a/rules/rauc.make
+++ b/rules/rauc.make
@@ -95,10 +95,12 @@ ifdef PTXCONF_INITMETHOD_SYSTEMD
 	@$(call install_alternative, rauc, 0, 0, 0644, \
 		/usr/lib/systemd/system/rauc.service)
 
+ifdef PTXCONF_RAUC_MARK_GOOD
 	@$(call install_alternative, rauc, 0, 0, 0644, \
 		/usr/lib/systemd/system/rauc-mark-good.service)
 	@$(call install_link, rauc, ../rauc-mark-good.service, \
 		/usr/lib/systemd/system/multi-user.target.wants/rauc-mark-good.service)
+endif
 else
 	@$(call install_copy, rauc, 0, 0, 0755, -, \
 		/usr/libexec/rauc-service.sh)
-- 
2.44.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-31  7:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-28 14:55 [ptxdist] [PATCH v2] rauc: optional rauc-mark-good.service installation r.czerwinski
2024-05-31  7:37 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox