From: "'Badrikesh Prusty' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: jan.kiszka@siemens.com, Badrikesh Prusty <badrikesh.prusty@siemens.com>
Subject: [PATCH v2 3/3] kas: add menu option to abort unattended installation
Date: Sat, 27 Dec 2025 18:15:23 -0500 [thread overview]
Message-ID: <20251227231523.1872055-3-badrikesh.prusty@siemens.com> (raw)
In-Reply-To: <20251227231523.1872055-1-badrikesh.prusty@siemens.com>
Add a Kconfig menu option to allow users to abort unattended installation
before it starts.
Use OPT_INSTALLER_UNATTENDED_ABORT_ENABLE (bool) to enable the feature
and INSTALLER_UNATTENDED_ABORT_TIMEOUT (string) to set the countdown.
Weakly assign INSTALLER_UNATTENDED_ABORT_ENABLE to 0 in unattended.yaml
so the feature is disabled by default and can be enabled via menu system.
Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
---
kas/installer/Kconfig | 19 +++++++++++++++++++
kas/installer/unattended.yaml | 3 ++-
2 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/kas/installer/Kconfig b/kas/installer/Kconfig
index 23b6f03a..9b74fa92 100644
--- a/kas/installer/Kconfig
+++ b/kas/installer/Kconfig
@@ -110,6 +110,25 @@ config INSTALLER_TARGET_OVERWRITE
default "OVERWRITE" if OPT_INSTALLER_TARGET_OVERWRITE
default "ABORT" if OPT_INSTALLER_TARGET_ABORT
+config OPT_INSTALLER_UNATTENDED_ABORT_ENABLE
+ bool "Allow aborting unattended installation"
+ help
+ Allow users to abort unattended installation before it starts by
+ pressing a key during a configurable timeout, switching to normal
+ installation mode.
+
+config INSTALLER_UNATTENDED_ABORT_ENABLE
+ string
+ default "1" if OPT_INSTALLER_UNATTENDED_ABORT_ENABLE
+
+config INSTALLER_UNATTENDED_ABORT_TIMEOUT
+ string "Unattended abort timeout (seconds)"
+ depends on OPT_INSTALLER_UNATTENDED_ABORT_ENABLE
+ default "5"
+ help
+ Set the number of seconds users have to press a key to abort
+ unattended installation and switch to normal installation mode.
+
endif
config INSTALLER_ADD_DEVICE_INFO_COLLECTOR
diff --git a/kas/installer/unattended.yaml b/kas/installer/unattended.yaml
index 21beac0a..ee585c47 100644
--- a/kas/installer/unattended.yaml
+++ b/kas/installer/unattended.yaml
@@ -9,10 +9,11 @@ header:
local_conf_header:
target_bootstrapper_deploy-image: |
INSTALLER_UNATTENDED = "1"
+ INSTALLER_UNATTENDED_ABORT_ENABLE ?= "0"
INSTALLER_TARGET_DEVICE ?= "/dev/sda:/dev/nvme0n1"
INSTALLER_TARGET_OVERWRITE ?= "OVERWRITE"
target_bootstrapper-tty: |
TARGET_BOOTSTRAPPER_TTY_SERVICES ?= "\
serial-getty@ttyS0 \
- "
\ No newline at end of file
+ "
--
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/20251227231523.1872055-3-badrikesh.prusty%40siemens.com.
prev parent reply other threads:[~2025-12-27 23:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-27 23:15 [PATCH v2 1/3] installer: allow unattended mode to abort with configurable timeout 'Badrikesh Prusty' via isar-users
2025-12-27 23:15 ` [PATCH v2 2/3] kas: support bundling multiple images via menu system 'Badrikesh Prusty' via isar-users
2025-12-27 23:15 ` 'Badrikesh Prusty' via isar-users [this message]
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=20251227231523.1872055-3-badrikesh.prusty@siemens.com \
--to=isar-users@googlegroups.com \
--cc=badrikesh.prusty@siemens.com \
--cc=jan.kiszka@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