[PATCH v3 0/1] image-postproc: ignore systemd preset failures

3 views
Skip to first unread message

Badrikesh Prusty

unread,
Feb 18, 2026, 11:44:16 PM (3 hours ago) Feb 18
to isar-...@googlegroups.com, gokhan...@siemens.com, alexander...@siemens.com, Badrikesh Prusty
changes in v3:
* Do not disable pre-population of enabled systemd services during build,
as this is the correct default behavior. Downstream layers can disable
it if needed.
* Ignore failures from systemd preset only.

changes in v2:
* Disable populate-systemd-preset at build time by default due to service
failures observed on some systems.

Badrikesh Prusty (1):
image-postproc: ignore systemd preset failures

meta/classes-recipe/rootfs.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--
2.39.5

Badrikesh Prusty

unread,
Feb 18, 2026, 11:44:18 PM (3 hours ago) Feb 18
to isar-...@googlegroups.com, gokhan...@siemens.com, alexander...@siemens.com, Badrikesh Prusty
Add '|| true' to systemd preset invocation during image postprocessing
to tolerate failures caused by already-masked units.

Signed-off-by: Badrikesh Prusty <badrikes...@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 8485b32f..ef3ddb84 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
fi
}

--
2.39.5

Reply all
Reply to author
Forward
0 new messages