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; Wed, 29 Jul 2026 09:06:17 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f64.google.com (mail-wm1-f64.google.com [209.85.128.64]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 66T76GKs015244 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 29 Jul 2026 09:06:16 +0200 Received: by mail-wm1-f64.google.com with SMTP id 5b1f17b1804b1-49561facb1dsf4182635e9.3 for ; Wed, 29 Jul 2026 00:06:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1785308771; cv=pass; d=google.com; s=arc-20260327; b=GQnXpP30xDwyOO3ainElp0cw4qaDK3my/UwrWGkdFygguoGakcyMXI5SqxJGEVt6cV IgWsOZh8CP2vhklUIyUmuj1Dj0L5jQqnwd+3emc40fy3uQk731PM/lrISFBAf+ALiZ/n ibwSQbU5cpfX9sLrzyd/v+zwnI75d6UD1c8qBfMCphq6DJUqJpeAE3QWnEKyp6b/e1sG 5sRNaJcuWJnRyQqC9Wg2jTQskFe7vuSjTDybuKUVJK8o8hVNSHUKO5/JZ3gZLCbzC8nf tagx01Rzm16YZ7zEx+Wsz1h6CFdeTaDoI2uIip/u8lMTDP9miUdcurhZ5ktCOei+oD2V xYuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=4nge5XhgAgc7pMfUjuTED8AZSr1RwwWH5gezh+I/QgY=; fh=UAp4W2nHtkUjLtTzMfydIiNQ3NcSJD/qoTg+pPTYLbw=; b=F25LxQ86G4PDaEP2J9spXJg2P/DjH/fbkjYoT+0x/3J4be2d5W/XtMiFrYwzJRNyJk bJqn/cLWvTl2AUUokkgbI3Zx3aFBWEyUzCasyttK/kUdipKfzYmNTrM3Ng27yZnTkzvk jyhaeQiuVYaA7BCvHrLDwmzkW0fLLTCSPkklcAVvRsGL60xTLPYKrKHA78MEIKpXDr+G I/MTZZkAOpQTVexgWjrUZZ5alnBUpuGef+TAr/EClLjuLWmnHAa/EJ9RYR4KGHGaX84Q ICHa+wOBnDnhZUfWKi/BjD+B9xiHIGfQHLwg2Sn8jHnsex9IkKR32Q9kF4N5chLXxcJI w1Og==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20251104; t=1785308771; x=1785913571; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:content-type:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to:content-type; bh=4nge5XhgAgc7pMfUjuTED8AZSr1RwwWH5gezh+I/QgY=; b=E0hZXN9fuHogErhOILwAzcg0rGwv9JlgapLL0K46PzA8d+2CFCBgZ0BzvzSjpJbV80 YOWXeCOZzjNYps4rpJ2uWwrssmniXqDLe7C5NoTsY6VGqSMNTFy/+jQVccueHaiu+v6p gBw5GonXrYAiN4aooFSqcgqgvhBwwWnoVHp6R80Fypw/xybihmHOtre152K7ofhQJh3Y sTTYGrWf/MNTRmIkr8O+NoO2FPU+dr409W2mBKVuT89jRa0vVCrzj0bDjkqayomii8kK AAZKnI1eCx4foA/Cipp6YQo+/+dPAysBlWlNjPqe2unzJFFTRV3MM92vGZnxWExeI8ym kAKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785308771; x=1785913571; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:content-type :in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:x-beenthere:x-gm-message-state:sender :from:to:cc:subject:date:message-id:reply-to:content-type; bh=4nge5XhgAgc7pMfUjuTED8AZSr1RwwWH5gezh+I/QgY=; b=PUTPd/P3MlID3L3idpAfPv6pshrh6DBkyeP8gkxEq9pTjZ0gl676WpNl1UEoanuIjm 1FoHmgMJNe9r1vJO5Fr1xRP9XXoMOyNwmAm/AlyTN6AwjCrUdQbfYgJakknslXx/P1MW ul/GjhTh5T849qGkYlNmBBDORP1eMyQFRSROyTxljCcpqRnsW0dWpUybxTA89u71VUBk sKzejj8cy+mSBjqS3w4N5qm3VGI+kNS7vYf4ei0kSMQqobqFFIhbsvoFAI02+EDKr6FD 5svm+LyQtzDYasVEbiI6iQOaX537BtqgUCbWys8KgPUcHml3gfPZYD/g9WwbZiME+X8k eDzA== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AHgh+RrtNNMeNfz691xqKyZv3mH41u+CkiGx3K/wRCSYlEbMkDEZVz8B3fDiRERwPWUZ6Up24Wf0@ilbers.de X-Gm-Message-State: AOJu0YygqfPckFhALfxVJrgb9bj+GVGzf4SPdAHwPcwp93b9VULAEKO0 jVPiTxG8xlcZI1376f67W5lTcJXFlv7JX0uf27fddJxpni7CZp+2iIVi X-Received: by 2002:a05:600c:3b10:b0:492:45a0:dcef with SMTP id 5b1f17b1804b1-496c6410257mr53749385e9.5.1785308771029; Wed, 29 Jul 2026 00:06:11 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="Aa7YSPSmN+Hd7W9aqK8fRGJTOuERpZUnkyGYPziIDSYqGzk2Qw==" Received: by 2002:a05:600c:4f07:b0:495:4e17:f87d with SMTP id 5b1f17b1804b1-49572a9950bls70777525e9.0.-pod-prod-01-eu; Wed, 29 Jul 2026 00:06:08 -0700 (PDT) X-Forwarded-Encrypted: i=2; AHgh+RqSXeSE2/iHnYH1MMc0+IICZhHOVYLUahcQ/jV3DHWAKp+wpyeudms6FwPX9RNtFoncsFHtpUxr+BcT@googlegroups.com X-Received: by 2002:a05:600c:630e:b0:495:7a23:1eee with SMTP id 5b1f17b1804b1-496c642f314mr65261805e9.12.1785308768626; Wed, 29 Jul 2026 00:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1785308768; cv=none; d=google.com; s=arc-20260327; b=RMtYzv3EudFU73s1viH6t6jx9fRh9hkuopyT55DXjtlJXlsxz7hvjvwNgGfwcrg53L FDd1elPMlHy2a/NMnNqUC3Xt2NujvrIXUfCGRfp9C6Ntuhi1KgZhxbNWQeSvH2ZK6Jk7 WOl898MWiLGqjNcIkWf9Cz3zmy1oA8l+P5536vrrJRMqbOM5kVrpV9IZWQFSSSg7EJ+P L/D6SxX+xfnHAqvEKaBKSBsZxTaRBJHnF1NkpHBvJ7sqFFrGXr8eqrAO8Ma7/eOf3M71 grNaakqx1GC4qlKpw79ls+RsJEByaM26uFHxTmWXUASAnV4cruBkLdbDEZn2APk7ZZ5F DsAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id; bh=zCpTJGrRPVa6pMsyd2KOnNqPuT/D0/nhxOlpB1esn+E=; fh=YYTgU8Oidjg3HOkQIVgyjPhLKiuRdHJ4aYbpcYcTLW8=; b=BM+9iwxxCeYcTUKtx/IcIbjdJMHBNbINE7Nt7KenOQgUS7A7PHPqW+MdephZvjlxTq Hdek38jkBOyB5Y7PCH2VlcezG07jvw4lH9yc0/F/gcVsrwexl0P43VcTF6G4qTelAVXs Fyx0XQFkQGTHCjGuS8G85KfNNl4DbIwUCv+znnF7BdbreZ18uKX0hCad8/eSEY3bYrxH M6ahZiBV5EghTZezEWLFTYEozE90BQ3Uw8Z/utoKK/LIQvH0lRkCDuhTCzYOKBlrtB1C hH8NVHNYZf/w6gNGs4r+cOkL27mC45sGj+x7nBgsxPlQHcS/dIuj/NbKmK5wQyY0+7cF Llfw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-4975acfcdd2si242345e9.0.2026.07.29.00.06.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 29 Jul 2026 00:06:08 -0700 (PDT) Received-SPF: pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Received: from [192.168.178.139] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 66T767XU015230 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Jul 2026 09:06:07 +0200 Message-ID: <6e6ed561-dccc-42d7-aeca-8d31b6f23104@ilbers.de> Date: Wed, 29 Jul 2026 09:06:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] installer: Auto-select image when only one is available To: Shivaschandra KL , isar-users@googlegroups.com References: <20260715101748.2873544-1-shivaschandra.k-l@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <20260715101748.2873544-1-shivaschandra.k-l@siemens.com> Content-Type: text/plain; charset="UTF-8"; format=flowed X-Spam-Status: No, score=-4.6 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, 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-Original-Sender: wzh@ilbers.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wzh@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=wzh@ilbers.de 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-TUID: lKDCEpwqXEoi Applied to next, thanks. Zhihang On 7/15/26 12:17, 'Shivaschandra KL' via isar-users wrote: > Currently, the image selection dialog is always shown, > even when only a single image is available. Even when the single > image is availble, first window asks to select image and second window > asks to start installation of same image.No selection required if there > is only one image. > > This change modifies ui_select_image_menu() to automatically select the > image when only one installable entry is found, while preserving the > dialog for multiple images. > > Benefits: > - Improved user experience for single-image installations > - Maintains existing behavior for multi-image scenarios > > Signed-off-by: Shivaschandra KL > --- > .../deploy-image/files/usr/bin/installer_ui.sh | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/meta-isar/recipes-installer/deploy-image/files/usr/bin/installer_ui.sh b/meta-isar/recipes-installer/deploy-image/files/usr/bin/installer_ui.sh > index 9d3ba5de..133d7c70 100644 > --- a/meta-isar/recipes-installer/deploy-image/files/usr/bin/installer_ui.sh > +++ b/meta-isar/recipes-installer/deploy-image/files/usr/bin/installer_ui.sh > @@ -66,7 +66,8 @@ ui_countdown_allow_attended_switch() { > # ui_select_image_menu > # > # Uses sys_list_installable_entries backend API and returns selected > -# relative image path on stdout. > +# relative image path on stdout. If only one image is available, it is > +# automatically selected without showing a dialog. > #-------------------------------------------------------------------------- > ui_select_image_menu() { > local install_data_dir="$1" > @@ -83,6 +84,13 @@ ui_select_image_menu() { > return 1 > fi > > + # If only one image is available, select it automatically > + if [ "${#list[@]}" -eq 2 ]; then # list has pairs: path and description > + echo "${list[0]}" > + return 0 > + fi > + > + # Multiple images available, show selection dialog > selected=$(dialog --no-tags \ > --menu "Select image to be installed" 12 70 6 \ > "${list[@]}" --output-fd 1) || return 2 -- 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/6e6ed561-dccc-42d7-aeca-8d31b6f23104%40ilbers.de.