From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 22 May 2024 16:26:16 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s9mv2-00DmV5-0N for lore@lore.pengutronix.de; Wed, 22 May 2024 16:26:16 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1s9mv1-0007cy-DW; Wed, 22 May 2024 16:26:15 +0200 Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=localhost) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s9muh-0007ci-Hz; Wed, 22 May 2024 16:25:55 +0200 From: r.czerwinski@pengutronix.de To: ptxdist@pengutronix.de Date: Wed, 22 May 2024 16:25:54 +0200 Message-ID: <20240522142554.287231-1-r.czerwinski@pengutronix.de> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH] rauc: optional rauc-mark-good.service installation X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Rouven Czerwinski Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false From: Rouven Czerwinski Make the installation and enablement of the ruac-mark-good.service optional. This is useful for BSPs which have the application indicate if startup was successful instead of indicating succesful startup using the rauc-mark-good-service. Signed-off-by: Rouven Czerwinski --- 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..c65e3f04f 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 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.0