public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] installer: enable bootstrapper TTY services in postinst
@ 2025-12-14  7:39 'Badrikesh Prusty' via isar-users
  2025-12-17 12:57 ` Anton Mikanovich
  0 siblings, 1 reply; 2+ messages in thread
From: 'Badrikesh Prusty' via isar-users @ 2025-12-14  7:39 UTC (permalink / raw)
  To: isar-users; +Cc: Badrikesh Prusty

Enable configured console systemd services listed in
TARGET_BOOTSTRAPPER_TTY_SERVICES during post-installation.

This ensures custom consoles (e.g. serial-getty@ttyACM0) are enabled at
image build time so the installer is launched on them at first boot.

Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
---
 .../target-bootstrapper-service/files/postinst.tmpl        | 7 +++++++
 .../target-bootstrapper-service.bb                         | 4 ++++
 2 files changed, 11 insertions(+)
 create mode 100644 meta-isar/recipes-installer/target-bootstrapper-service/files/postinst.tmpl

diff --git a/meta-isar/recipes-installer/target-bootstrapper-service/files/postinst.tmpl b/meta-isar/recipes-installer/target-bootstrapper-service/files/postinst.tmpl
new file mode 100644
index 00000000..7c24af17
--- /dev/null
+++ b/meta-isar/recipes-installer/target-bootstrapper-service/files/postinst.tmpl
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+for tty_service in ${TARGET_BOOTSTRAPPER_TTY_SERVICES}; do
+    deb-systemd-helper enable ${tty_service} || true
+done
diff --git a/meta-isar/recipes-installer/target-bootstrapper-service/target-bootstrapper-service.bb b/meta-isar/recipes-installer/target-bootstrapper-service/target-bootstrapper-service.bb
index c3441494..3668d946 100644
--- a/meta-isar/recipes-installer/target-bootstrapper-service/target-bootstrapper-service.bb
+++ b/meta-isar/recipes-installer/target-bootstrapper-service/target-bootstrapper-service.bb
@@ -22,9 +22,13 @@ python(){
 inherit dpkg-raw
 
 SRC_URI = "\
+    file://postinst.tmpl \
     file://target-bootstrapper.override.conf \
     "
 
+TEMPLATE_FILES = "postinst.tmpl"
+TEMPLATE_VARS = "TARGET_BOOTSTRAPPER_TTY_SERVICES"
+
 DEPENDS += " target-bootstrapper"
 DEBIAN_DEPENDS = "target-bootstrapper"
 
-- 
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/20251214073922.2297730-1-badrikesh.prusty%40siemens.com.

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

* Re: [PATCH] installer: enable bootstrapper TTY services in postinst
  2025-12-14  7:39 [PATCH] installer: enable bootstrapper TTY services in postinst 'Badrikesh Prusty' via isar-users
@ 2025-12-17 12:57 ` Anton Mikanovich
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Mikanovich @ 2025-12-17 12:57 UTC (permalink / raw)
  To: Badrikesh Prusty, isar-users

14/12/2025 09:39, 'Badrikesh Prusty' via isar-users wrote:
> Enable configured console systemd services listed in
> TARGET_BOOTSTRAPPER_TTY_SERVICES during post-installation.
>
> This ensures custom consoles (e.g. serial-getty@ttyACM0) are enabled at
> image build time so the installer is launched on them at first boot.
>
> Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
Applied to next, thanks.

-- 
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/01c9021a-79dd-4321-ac1b-03e16176aecb%40ilbers.de.

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-14  7:39 [PATCH] installer: enable bootstrapper TTY services in postinst 'Badrikesh Prusty' via isar-users
2025-12-17 12:57 ` Anton Mikanovich

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