public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] image-postproc: apply all systemd preset rules and ignore failures
@ 2025-12-12  5:32 'Badrikesh Prusty' via isar-users
  2025-12-15  7:31 ` 'MOESSBAUER, Felix' via isar-users
  0 siblings, 1 reply; 6+ messages in thread
From: 'Badrikesh Prusty' via isar-users @ 2025-12-12  5:32 UTC (permalink / raw)
  To: isar-users; +Cc: Badrikesh Prusty

Update image postprocessing to run 'systemctl preset-all' without
restricting to '--preset-mode=enable-only', so that both enable and
disable rules from systemd preset files are applied.

Add '|| true' to ignore failures from already masked units set by
package post-install scripts during rootfs_install tasks.

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 8485b32f..7e79bb8e 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 || true
     fi
 }
 
-- 
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/20251212053214.80936-1-badrikesh.prusty%40siemens.com.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-12-16  9:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-12  5:32 [PATCH] image-postproc: apply all systemd preset rules and ignore failures 'Badrikesh Prusty' via isar-users
2025-12-15  7:31 ` 'MOESSBAUER, Felix' via isar-users
2025-12-15 11:50   ` 'Heinisch, Alexander' via isar-users
2025-12-15 13:58     ` 'Prusty, Badrikesh' via isar-users
2025-12-16  2:32       ` 'Prusty, Badrikesh' via isar-users
2025-12-16  9:17         ` 'Heinisch, Alexander' 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