From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Sun, 28 Dec 2025 00:18:55 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qv1-f58.google.com (mail-qv1-f58.google.com [209.85.219.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 5BRNIsEG005224 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sun, 28 Dec 2025 00:18:55 +0100 Received: by mail-qv1-f58.google.com with SMTP id 6a1803df08f44-88233d526basf248943496d6.1 for ; Sat, 27 Dec 2025 15:18:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1766877529; x=1767482329; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=BNCkYcxQWldb9BPVM1Bmy6/VEvIAP35fqyB6ArCbXQs=; b=GDmx8lt0ZOXxfDiLif/Oz3sr9ZGRdvX/zJFvPtywAnySkqgEGp2o8LIZh1P3KEFzrj 24e5jbFgTTSlnE4AZ6wb5FrMOvRie90o2EIFHzERTtWQqazFkrT2qgTeFRDw9rbBEvN/ mqXV6Zfg8TwosMqoIE5K0kztKin4HjjfUD6kJcE9eVlkTyfFGOtf3uroTu07jyD8A2dC /jl25ysQVyZE6bPaToToqrYL23+iDtl6yoa0oaEtXPX0bak85tG8UWrQHgnyWFG4Vdnf H9KQK8hyCW53U8Vrk3It8GzsHQhF4j1dypzCVao96CgNJKFuF2ri1wEl1y/8jIN2+kss yeeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766877529; x=1767482329; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BNCkYcxQWldb9BPVM1Bmy6/VEvIAP35fqyB6ArCbXQs=; b=Mc0OltfXJZnnb9vhudBJ7qfwIS9j6jZGd0YzOdMiB/9unqmpvaPu2bbnCsSXb+LUK/ GZZr2KS+hrZNBY5SzNLTe4T2/GYYPmX1DU7oshPNK9PQr+NydQ1MUx16p4bP1ffJNzcm iMcR+cXlPuLQUruKB7rJ0CDvnXTUHhyCBbv41XamkCrjKyRrJqWFNrT1lFOesahs7s06 Zi1KNOHjct1nT+OQoAB7F/lQap9lrcXxzrQ0j3VQ7waRF2c9L3sj7BwonVd79LBt1zhK zmBrxAYxPBGRX6P0Nzow2UHqvAlqNg5inomfLwMpYsFTtM59skTZixMZX+/XRXYVLKLM Q8gA== X-Forwarded-Encrypted: i=1; AJvYcCXuA/us0v5sLAX8zHGSaPn3Otblqds/nrmrwnKI/wsLd7C4Utw+o5/rL1X4yv6hC0MCVLOP@ilbers.de X-Gm-Message-State: AOJu0Yxo0aXrU8UiqekvFShj53136KU/dIdo8Vei9iOqi7CrdKjStLZG QOzYrb0nuLDIkhl5uowrtSQErWL/9+KungTSUmQXHp6PSga3Ik9aiEY9 X-Google-Smtp-Source: AGHT+IEYq8Yp9RQcuoE1Ge0x0cLRJgiUCQS5SqnDag1ogTswVlp00KuHIwDCUpiPcOvoUR6gCspbVA== X-Received: by 2002:a05:6214:19c3:b0:88a:2b60:e33 with SMTP id 6a1803df08f44-88d856db0bbmr432152146d6.20.1766877528798; Sat, 27 Dec 2025 15:18:48 -0800 (PST) X-BeenThere: isar-users@googlegroups.com; h="AWVwgWYw8MttltuQUjihbOv0KP/etMR8kErlNZ+LMeT21WOAKw==" Received: by 2002:a05:6214:d45:b0:78d:5893:a879 with SMTP id 6a1803df08f44-890128e77d4ls9499686d6.1.-pod-prod-00-us; Sat, 27 Dec 2025 15:18:47 -0800 (PST) X-Received: by 2002:ad4:5be1:0:b0:88a:375b:ed7c with SMTP id 6a1803df08f44-88c533b360fmr453799106d6.35.1766877527533; Sat, 27 Dec 2025 15:18:47 -0800 (PST) Date: Sat, 27 Dec 2025 15:18:44 -0800 (PST) From: "'Badrikesh Prusty' via isar-users" To: isar-users Message-Id: In-Reply-To: <9f739f14-5318-462e-ac71-fa6a9f4d133f@web.de> References: <20251225213157.1219552-1-badrikesh.prusty@siemens.com> <9f739f14-5318-462e-ac71-fa6a9f4d133f@web.de> Subject: Re: [PATCH] installer: allow unattended mode to abort with keypress MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_307376_1359518252.1766877524972" X-Original-Sender: badrikesh.prusty@siemens.com X-Original-From: Badrikesh Prusty Reply-To: Badrikesh Prusty Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED, RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: Sgmrr8ISkm3d ------=_Part_307376_1359518252.1766877524972 Content-Type: multipart/alternative; boundary="----=_Part_307377_50510620.1766877524972" ------=_Part_307377_50510620.1766877524972 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Jan, Thanks for reviewing. I=E2=80=99ve updated the patch according to your sugg= estions=20 in v2.=20 Link: [PATCH v2 1/3] installer: allow unattended mode to abort with=20 configurable timeout Many thanks, Badrikesh On Friday, December 26, 2025 at 4:30:54=E2=80=AFPM UTC+5:30 Jan Kiszka wrot= e: > On 25.12.25 22:31, 'Badrikesh Prusty' via isar-users wrote: > > Add a 5-second countdown before unattended installation starts. Allow > > users to abort unattended mode via keypress. Notify all console instanc= es > > via a shared file (`/tmp/attended_mode_trigger`) so the abort applies > > across all consoles. > >=20 > > Signed-off-by: Badrikesh Prusty > > --- > > RECIPE-API-CHANGELOG.md | 6 ++++++ > > .../files/usr/bin/deploy-image-wic.sh | 15 +++++++++++++++ > > 2 files changed, 21 insertions(+) > >=20 > > diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md > > index 3af91541..cd1f1fd4 100644 > > --- a/RECIPE-API-CHANGELOG.md > > +++ b/RECIPE-API-CHANGELOG.md > > @@ -941,3 +941,9 @@ Example: To bundle multiple target images, set the= =20 > following in local.conf: > > ``` > > INSTALLER_TARGET_IMAGES =3D "isar-image-base isar-image-debug=20 > isar-image-ci" > > ``` > > + > > +### Allow unattended installation to be interrupted by keypress > > + > > +Add a 5-second countdown before unattended installation starts. Allow= =20 > users to > > +abort unattended mode via keypress. Notify all console instances via a= =20 > shared > > +file (`/tmp/attended_mode_trigger`) so the abort applies across all=20 > consoles. > > diff --git=20 > a/meta-isar/recipes-installer/deploy-image/files/usr/bin/deploy-image-wic= .sh=20 > b/meta-isar/recipes-installer/deploy-image/files/usr/bin/deploy-image-wic= .sh > > index 9bd47e9f..5736a861 100755 > > ---=20 > a/meta-isar/recipes-installer/deploy-image/files/usr/bin/deploy-image-wic= .sh > > +++=20 > b/meta-isar/recipes-installer/deploy-image/files/usr/bin/deploy-image-wic= .sh > > @@ -10,6 +10,21 @@ SCRIPT_DIR=3D$( dirname -- "$( readlink -f -- "$0"; = )";=20 > ) > >=20 > > . "${SCRIPT_DIR}/../lib/deploy-image-wic/handle-config.sh" > >=20 > > +if $installer_unattended; then > > + abort_file=3D/tmp/attended_mode_trigger > > + for ((i=3D5; i>0; i--)); do > > + echo -ne "\rUnattended installation will start in $i seconds. Press= =20 > any key to switch to attended mode..." > > + > > + # Switch to attended mode if the abort file exists or any key pressed= =20 > during countdown > > + # Create abort file to notify all other console instances to abort > > + if [ -f "$abort_file" ] || read -n 1 -t 1; then > > + installer_unattended=3Dfalse > > + touch "$abort_file" > > + break > > + fi > > + done > > +fi > > This should be opt-in, and the timeout may deserve to be configurable. > > Jan > > > + > > if ! $installer_unattended; then > > installer_image_uri=3D$(find "$installdata" -type f -iname "*.wic*" -a= =20 > -not -iname "*.wic.bmap" -exec basename {} \;) > > if [ -z "$installer_image_uri" ] || [ ! -f=20 > "$installdata/$installer_image_uri" ]; then > > --=20 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 e= mail to isar-users+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/isar-users/= b0efdcc6-c1d4-4bf7-b4af-2d9af0d41679n%40googlegroups.com. ------=_Part_307377_50510620.1766877524972 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Jan,

Thanks for reviewing. I=E2=80=99ve updated the patch according to your sugg= estions in v2.=C2=A0

Many= thanks,
Badrikesh
On Friday, December 26, 2025 at 4:30:54=E2=80=AFPM UTC+= 5:30 Jan Kiszka wrote:
On 25.12.25 22:31, 'Badrikesh Prusty' via isar-users wrot= e:
> Add a 5-second countdown before unattended installation starts. Al= low
> users to abort unattended mode via keypress. Notify all console in= stances
> via a shared file (`/tmp/attended_mode_trigger`) so the abort appl= ies
> across all consoles.
>=20
> Signed-off-by: Badrikesh Prusty <badrikes...@siemens.com>
> ---
> RECIPE-API-CHANGELOG.md | 6 ++++++
> .../files/usr/bin/deploy-image-wic.sh | 15 ++++++++++= +++++
> 2 files changed, 21 insertions(+)
>=20
> diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md
> index 3af91541..cd1f1fd4 100644
> --- a/RECIPE-API-CHANGELOG.md
> +++ b/RECIPE-API-CHANGELOG.md
> @@ -941,3 +941,9 @@ Example: To bundle multiple target images, set= the following in local.conf:
> ```
> INSTALLER_TARGET_IMAGES =3D "isar-image-base isar-image-debu= g isar-image-ci"
> ```
> +
> +### Allow unattended installation to be interrupted by keypress
> +
> +Add a 5-second countdown before unattended installation starts. A= llow users to
> +abort unattended mode via keypress. Notify all console instances = via a shared
> +file (`/tmp/attended_mode_trigger`) so the abort applies across a= ll consoles.
> diff --git a/meta-isar/recipes-installer/deploy-image/files/usr/bi= n/deploy-image-wic.sh b/meta-isar/recipes-installer/deploy-image/files/usr/= bin/deploy-image-wic.sh
> index 9bd47e9f..5736a861 100755
> --- a/meta-isar/recipes-installer/deploy-image/files/usr/bin/deplo= y-image-wic.sh
> +++ b/meta-isar/recipes-installer/deploy-image/files/usr/bin/deplo= y-image-wic.sh
> @@ -10,6 +10,21 @@ SCRIPT_DIR=3D$( dirname -- "$( readlink -f= -- "$0"; )"; )
> =20
> . "${SCRIPT_DIR}/../lib/deploy-image-wic/handle-config.sh&qu= ot;
> =20
> +if $installer_unattended; then
> + abort_file=3D/tmp/attended_mode_trigger
> + for ((i=3D5; i>0; i--)); do
> + echo -ne "\rUnattended installation will start in $i= seconds. Press any key to switch to attended mode..."
> +
> + # Switch to attended mode if the abort file exists or any key pr= essed during countdown
> + # Create abort file to notify all other console instances to abo= rt
> + if [ -f "$abort_file" ] || read -n 1 -t 1; then
> + installer_unattended=3Dfalse
> + touch "$abort_file"
> + break
> + fi
> + done
> +fi

This should be opt-in, and the timeout may deserve to be configurable.

Jan

> +
> if ! $installer_unattended; then
> installer_image_uri=3D$(find "$installdata" -type f= -iname "*.wic*" -a -not -iname "*.wic.bmap" -exec base= name {} \;)
> if [ -z "$installer_image_uri" ] || [ ! -f "$i= nstalldata/$installer_image_uri" ]; then

--
You received this message because you are subscribed to the Google Groups &= quot;isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-use= rs+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-use= rs/b0efdcc6-c1d4-4bf7-b4af-2d9af0d41679n%40googlegroups.com.
------=_Part_307377_50510620.1766877524972-- ------=_Part_307376_1359518252.1766877524972--