From: "'Badrikesh Prusty' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: Badrikesh Prusty <badrikesh.prusty@siemens.com>
Subject: [PATCH] installer: enable bootstrapper TTY services in postinst
Date: Sun, 14 Dec 2025 02:39:22 -0500 [thread overview]
Message-ID: <20251214073922.2297730-1-badrikesh.prusty@siemens.com> (raw)
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.
next reply other threads:[~2025-12-14 7:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-14 7:39 'Badrikesh Prusty' via isar-users [this message]
2025-12-17 12:57 ` Anton Mikanovich
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=20251214073922.2297730-1-badrikesh.prusty@siemens.com \
--to=isar-users@googlegroups.com \
--cc=badrikesh.prusty@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