From: "'Prusty, Badrikesh' via isar-users" <isar-users@googlegroups.com>
To: "Kiszka, Jan" <jan.kiszka@siemens.com>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Cc: "MOESSBAUER, Felix" <felix.moessbauer@siemens.com>,
"Cetin, Gokhan" <gokhan.cetin@siemens.com>,
"Heinisch, Alexander" <alexander.heinisch@siemens.com>
Subject: RE: [PATCH v4] image-postproc: ignore systemd preset failures
Date: Wed, 29 Apr 2026 06:47:46 +0000 [thread overview]
Message-ID: <SG2PR06MB5107CC636CF781C80C03066B91342@SG2PR06MB5107.apcprd06.prod.outlook.com> (raw)
In-Reply-To: <d2ef88a6-3a31-48ee-93b0-e4885ae6f0e5@siemens.com>
Hi,
Thanks for the suggestion. Updated as suggested. Link: https://groups.google.com/g/isar-users/c/wojTiSSPfG4
Many thanks,
Badrikesh
-----Original Message-----
From: Kiszka, Jan (FT RPD CED) <jan.kiszka@siemens.com>
Sent: 27 April 2026 15:30
To: Prusty, Badrikesh (FT FDS CES LX PBU 2) <badrikesh.prusty@siemens.com>; isar-users@googlegroups.com
Cc: Moessbauer, Felix (FT RPD CED OES-DE) <felix.moessbauer@siemens.com>; Çetin, Gökhan (FT D EU TR C&E) <gokhan.cetin@siemens.com>; Heinisch, Alexander (FT RPD CED SES-AT) <alexander.heinisch@siemens.com>
Subject: Re: [PATCH v4] image-postproc: ignore systemd preset failures
On 27.04.26 06:21, Badrikesh Prusty wrote:
> Add '|| true' to systemd preset invocation during image postprocessing
> to tolerate failures caused by already-masked units.
>
> Fixes: 72b88a12 ("classes/image-postproc: Enable systemd units based
> on systemd presets")
>
> Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
> ---
> meta/classes-recipe/rootfs.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes-recipe/rootfs.bbclass
> b/meta/classes-recipe/rootfs.bbclass
> index 8b502a50..adb6c614 100644
> --- a/meta/classes-recipe/rootfs.bbclass
> +++ b/meta/classes-recipe/rootfs.bbclass
> @@ -574,7 +574,7 @@ image_postprocess_populate_systemd_preset() {
> --show systemd || echo "" )
>
> if (test "$SYSTEMD_INSTALLED" = "installed"); then
> - sudo chroot '${ROOTFSDIR}' systemctl preset-all --preset-mode="enable-only"
> + sudo chroot '${ROOTFSDIR}' systemctl preset-all
> + --preset-mode="enable-only" || true
A better pattern than "|| true" is
[ masked ] || systemctl ...
Jan
--
Siemens AG, Foundational Technologies
Linux Expert Center
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/SG2PR06MB5107CC636CF781C80C03066B91342%40SG2PR06MB5107.apcprd06.prod.outlook.com.
prev parent reply other threads:[~2026-04-29 6:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-27 4:21 'Badrikesh Prusty' via isar-users
2026-04-27 9:59 ` 'Jan Kiszka' via isar-users
2026-04-29 6:47 ` 'Prusty, Badrikesh' via isar-users [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SG2PR06MB5107CC636CF781C80C03066B91342@SG2PR06MB5107.apcprd06.prod.outlook.com \
--to=isar-users@googlegroups.com \
--cc=alexander.heinisch@siemens.com \
--cc=badrikesh.prusty@siemens.com \
--cc=felix.moessbauer@siemens.com \
--cc=gokhan.cetin@siemens.com \
--cc=jan.kiszka@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox