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; Fri, 30 Oct 2026 17:18:21 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lj1-f184.google.com (mail-lj1-f184.google.com [209.85.208.184]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 69UGIKKG010096 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 30 Oct 2026 17:18:20 +0100 Received: by mail-lj1-f184.google.com with SMTP id 38308e7fff4ca-3ab382d911fsf4472461fa.1 for ; Fri, 30 Oct 2026 09:18:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1793377095; cv=pass; d=google.com; s=arc-20260327; b=R0+dOle2VgjNaRZ4ANfMEHkzwJZp9dRsrLM+g1khn8Z47shZLb66BaW4aeDrkQh1VM wKdHPlEIIwIuIj75odElSBJOn9m6bCFGXBk/K3Kv25jt19zENDVJ5NMHN7EarOuffaXp Nwec+Ju5v0XnIWSViRaLhHVKE5rV6af1xrsDlE+jdB5FZfkfFgVrBL/OgdZTeiw3iy4J kDTvpFxKXmNSA2PfSia35jxYRA54vbCahPNvMDnvgv+rBKmFA/d3IxjKk2ExkUbHxp+n WyELCkOFLWdtoxEjXYXEssSzKPi4v/X5+KfHibXJ8ioq87wZ1KoUDcYcd3sMRFGaNQiW TVfA== 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:cc:to:subject:user-agent:mime-version:date:message-id :sender:dkim-signature; bh=QrFXoSYoC7H5Qs89QM+FrVd23BwpH6JM2t8Q5OerdcI=; fh=Kj26xQ0O0gkzcHTqSBrT56bd1k46d/WuwXpQSx9AePM=; b=Gi0bbmdAnPeG1tObw3omou4Djzh7DksRWL5BDtWy36nItnJLT9HvdaKfGCDzfu/mLW EFckwdWGI4jbrH1yU4Ntn2H35OxST6zHCnR22RHzQZgjvGIsSv1xk7zKc/i3BuGp79yq P+Oe9RY70yhjBmcAzcFYHd8MNiFo8tQMXqKw/KdKHYrAuqId3NQhveDB1mGG1UwoDZLZ 6ytRebZvUSLd2dWqusMn+z0iVgA2yyEoK1M1WheO1eQvAjEnokLzPOCXka9T5bvAWrAY 6Mpk4Rod8HY6bAF5C6ARdz0EfdBB82qCk523T+/QIsAlIXK032MkVuzdbJSG0TFOHcRC cZ+Q==; 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=20260707; t=1793377095; x=1793981895; 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:cc:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to:content-type; bh=QrFXoSYoC7H5Qs89QM+FrVd23BwpH6JM2t8Q5OerdcI=; b=sMD3+1bkEZ0ECpPjFdK2+UqpJggsHCk3LJQvSnwb4BcmC33PGLUQXLFLscucRjMY6s UPu7U5bwNPNR+0p7lrlUMH3uLBXa8/5e4nGi5uw3jcihW3yBz8ZfC0b22/dWkPFcD3Mu n0Fx88sduMRpAaf8OoRnLIVLNHivmGdxvC0dw8ktb8sio/rlnuLroGlHIRLIPnRTPSjE rB4YAi5zGbOf84m9VKpZh1p9eYloDF+8WopZrrKgWZztIgGWyjThG6LHU+1aaNmaTI6C 9I1nlfi7uU26xjGQ3QjLr1vYGrdfuSrlrY01A54mFoirgWiYdEYG9nWdz0QttKy1kdak 8hGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793377095; x=1793981895; 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:cc: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=QrFXoSYoC7H5Qs89QM+FrVd23BwpH6JM2t8Q5OerdcI=; b=B4eK1yojXpn/IO5gvdWW6s3Htgo+LrVzC4BThnTzihLuQK2nihBqnsNat8jd4JR+yN ObAGDhDNg57iWWTlBn+zRvpVL+e8UFB+Rb7ArqlB7fbbKr3OKigP7+HJv/qHAjd3KXdx 5GOXIyM/dFV1KagRWKwr7uGOQ96xuJARP/bZXSnUgJQ5wCD5FJrTMxJUE8agyYYFHwqr Q72CvcQrHlxu8iOMRslKoBDjQWGdB4Iv+FtOWOfMz+LTiKzeqJf8T1C5Q1qeQ0sL03Wb a0ZlsFjRSoUyC+zYJ4L7U2A53ENUd+o6yUH4zqyw24YwG5nROGCil9GMANP+jh0K7okL y/8A== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AKwUvBy7tDKrCVWmMPwWMgx19S5ZZ6bURM3yCknSM7RQTV0kfUA8mXL5RSenCLa4IpexH73h8D+t@ilbers.de X-Gm-Message-State: AFq9FYJUK246vmVzrlZMZ22B+7nqZUl/bLjXkYBZeCB+f4eLAJBEfiXu qSaT868YVMAOUfjuPGGKCdmt4FIfPQ8rp9FcvhDmAuyUbqTCcbIScVHI X-Received: by 2002:a2e:a991:0:b0:3ac:48a0:e253 with SMTP id 38308e7fff4ca-3acb7b46ed2mr6427771fa.23.1793377094788; Fri, 30 Oct 2026 09:18:14 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ATskLdeg3God08N3h3KfCnlobeWvD2vtU4rTlR3DlxLHDjF8sw==" Received: by 2002:a05:651c:255a:10b0:3a9:d4ef:a731 with SMTP id 38308e7fff4ca-3acb4824d95ls1458411fa.0.-pod-prod-02-eu; Fri, 30 Oct 2026 09:18:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AKwUvBxrWKIaNvbtaB0tE+qNkmdCQOjyLO2d2jHRL7opuDBYZy9D+pMlCEcwgt7tjjh/awPa313MStlERnyp@googlegroups.com X-Received: by 2002:a05:651c:3137:b0:3ab:4eb4:5f19 with SMTP id 38308e7fff4ca-3acb7b5ac93mr6603541fa.27.1793377092247; Fri, 30 Oct 2026 09:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1793377092; cv=none; d=google.com; s=arc-20260327; b=D/sr+q2v/8idMr/ZOZoUv3IhfsLKt8oSI/I7C3L4YykdLLm+Mk8wNSP8r6o7ChPg1i 7OJPUZC38pm2Up7UJEDwiC8mFw4Qof9C83qpg+dCa1HKB9wrz1gQ9bsLSUygkuwXkWSw IYAecTIX5WmcW1+KdRzHG4JfyjHVqvXzIkmDK6PTXiUb6ug2c+Tyzrbyt8bz9fzixng3 ZB0gth9+qhxxEywnBlTZzrNvdKP2/Yko64+f3RJHYpaaDkkOZmtKDedmiuMOodFATcHI ydhSnv7Zku8S1OrFiPuQT8vF13Rl0WNJKfvKTA5pftCpGdLE2CA8CZQk8thBEmP/BVrq n//g== 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:cc:to:subject:user-agent:mime-version:date:message-id; bh=g1Qwy8XpHF1xyPNrbiU8oD55Ts2cDNx+CgPEK4BnAO8=; fh=icTHypELlvf4n21KA12KsfjUH9/jpe/yuMS2o3Btf3M=; b=OoLMkJpPFbf2BeMU4MEC8fB8Vmq3lc9/FqATCgP+gq14hBL6ZGCd8AObhAfE9F6qmZ iVy0QQPhQgdtwO1WVOQ7Xlsr9256A8UF/t1QQTj8qmW8OempZth14iqpTwOPP2P/sQV/ pwIjT8auv5SlUye8D987DHLrvf2HN8F52HhbGurzRsdCFR7Zl7++KCiDUwM2IYqZIEev 1mkvZxNDobV+eEQ751+Uxi82LtXTXSDWeTGuKxsjw65E/rggUX8GNW1ojChQISztNLem ojkSecu2vzkZX0d+Ik64Fmj9bphRkoeHMa2jcvAQzPcQXTf8FxCnnJ9L5PlpuIIbrXT/ GFHA==; 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 38308e7fff4ca-3acbbeff7e2si266821fa.16.2026.10.30.09.18.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Oct 2026 09:18:12 -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 69UGGA4E010079 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 30 Oct 2026 17:16:10 +0100 Message-ID: <49353192-1f3e-468e-b1ab-4a2b0e86a1a2@ilbers.de> Date: Fri, 30 Oct 2026 17:16:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] installer: add reusable progress gauge To: srinuvasan.a@siemens.com, isar-users@googlegroups.com Cc: cedric.hombourger@siemens.com, Shivaschandra K L References: <20261027110601.1197504-1-srinuvasan.a@siemens.com> Content-Language: en-US From: Zhihang Wei In-Reply-To: <20261027110601.1197504-1-srinuvasan.a@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: gX0R5r/8z5Kx Applied to next, thanks. Zhihang On 10/27/26 12:05, srinuvasan.a via isar-users wrote: > From: Srinuvasan A > > Add an independent percentage consumer for operations reporting progress. > Drain progress if dialog exits early, preserving producer execution. > Keep existing image-copy and RAID progress handling unchanged. > > Signed-off-by: Shivaschandra K L > Signed-off-by: Srinuvasan A > Suggested-by: Cedric Hombourger > --- > .../files/usr/bin/installer_ui.sh | 24 +++++++++++++++++++ > 1 file changed, 24 insertions(+) > > 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 133d7c70..aa906221 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 > @@ -185,6 +185,30 @@ ui_start_progress_gauge() { > UI_GAUGE_PID=$! > } > > +#-------------------------------------------------------------------------- > +# ui_progress_gauge > +# > +# Reads integer percentages (0-100), one per line, from stdin. > +# No dialog is opened until the first percentage arrives. > +# If dialog exits early, drain the remaining input so the operation is > +# not interrupted by SIGPIPE. Callers must check the producer's status > +# using PIPESTATUS[0]; a completed gauge does not imply operation success. > +# Returns dialog's status after all progress input has been consumed. > +#-------------------------------------------------------------------------- > +ui_progress_gauge() { > + local message="$1" > + local status=0 > + local percent > + > + IFS= read -r percent || return 0 > + dialog --gauge "$message" 10 70 "$percent" || status=$? > + if [ "$status" -ne 0 ]; then > + echo "Warning: progress dialog failed; waiting for the operation to finish." >&2 > + fi > + cat >/dev/null > + return "$status" > +} > + > #-------------------------------------------------------------------------- > # ui_stop_progress_gauge > # -- 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/49353192-1f3e-468e-b1ab-4a2b0e86a1a2%40ilbers.de.