From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 07 Oct 2021 12:19:51 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mYQVD-0006UD-Jc for lore@lore.pengutronix.de; Thu, 07 Oct 2021 12:19:51 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mYQVD-0006MF-7o; Thu, 07 Oct 2021 12:19:51 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYQTu-0004jF-M8; Thu, 07 Oct 2021 12:18:30 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mYQTu-0005y4-51; Thu, 07 Oct 2021 12:18:30 +0200 Received: from mol by dude03.red.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mYQTu-00GTAB-25; Thu, 07 Oct 2021 12:18:30 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Thu, 7 Oct 2021 12:18:30 +0200 Message-Id: <20211007101830.3925308-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165247.31292-1-bst@pengutronix.de> References: <20210824165247.31292-1-bst@pengutronix.de> MIME-Version: 1.0 Subject: Re: [ptxdist] [APPLIED] projectroot: rauc-mark-good: adapt unit properties from systemd-bless-boot.service 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: Bastian Krause Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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.ext.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as ce0e0bed719844ef6f813c4d176e350bd424636c. Michael [sent from post-receive hook] On Thu, 07 Oct 2021 12:18:29 +0200, Bastian Krause wrote: > 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 > Message-Id: <20210824165247.31292-1-bst@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/projectroot/usr/lib/systemd/system/rauc-mark-good.service b/projectroot/usr/lib/systemd/system/rauc-mark-good.service > index af4daab9f443..06f9fa8fd419 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] _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de