public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] image-postproc: Revert of gate systemd preset-all on masked unit state (321185dc)
@ 2026-08-06 12:31 alexander.heinisch via isar-users
  0 siblings, 0 replies; only message in thread
From: alexander.heinisch via isar-users @ 2026-08-06 12:31 UTC (permalink / raw)
  To: isar-users; +Cc: wzh, badrikesh.prusty, Alexander Heinisch

From: Alexander Heinisch <alexander.heinisch@siemens.com>

Proposed fix in the previous patch 321185dc3ec8be8f2b3a547caf225cebdbd5edf9
tried to resolve an issue caused by a conflict of a preset, explicitly enabling
a masked target, but was fighting symptoms, instead of fixing the root cause.

Proper solution in cases where units are masked is to explicitly disable those in
the system-presets if they were explicitly enabled before. If a masked unit is not
explicitly set to be enabled in the preset no action is needed.

See discussion at: https://groups.google.com/g/isar-users/c/wojTiSSPfG4

Signed-off-by: Alexander Heinisch <alexander.heinisch@siemens.com>
---
 meta/classes-recipe/rootfs.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/classes-recipe/rootfs.bbclass b/meta/classes-recipe/rootfs.bbclass
index bdb9ea7a..2f80ac07 100644
--- a/meta/classes-recipe/rootfs.bbclass
+++ b/meta/classes-recipe/rootfs.bbclass
@@ -605,8 +605,7 @@ image_postprocess_populate_systemd_preset() {
         SYSTEMD_INSTALLED=$(dpkg-query --showformat='${db:Status-Status}' --show systemd 2>/dev/null)
 
         if [ "${SYSTEMD_INSTALLED}" = "installed" ]; then
-            systemctl list-unit-files --state=masked --no-legend | grep -q '^' \
-                || systemctl preset-all --preset-mode="enable-only"
+            systemctl preset-all --preset-mode="enable-only"
         fi
 EOSH
 }
-- 
2.47.3

-- 
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/20260806123136.550407-1-alexander.heinisch%40siemens.com.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-06 12:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-06 12:31 [PATCH] image-postproc: Revert of gate systemd preset-all on masked unit state (321185dc) alexander.heinisch via isar-users

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