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; Tue, 14 Oct 2025 16:59:49 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f60.google.com (mail-wm1-f60.google.com [209.85.128.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 59EExmer007343 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 14 Oct 2025 16:59:48 +0200 Received: by mail-wm1-f60.google.com with SMTP id 5b1f17b1804b1-46e2c11b94csf40691995e9.3 for ; Tue, 14 Oct 2025 07:59:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1760453983; cv=pass; d=google.com; s=arc-20240605; b=OZfWlIsDm4LuRab+lwruC9Ie3kikA1/OLZA8QcgjlFYYFL7g2rog6WrZ4Sq5BLyMyl WHpEQluaymuNfqRD4EpUHCvue1hX8p+Qk7Uot64PQWB9Cqce4V7z9oGd4fT1tguUIRb+ BujN6TyfHjqTsM8bUYz1C6IlX+l5IrQABqTV+kPrN3FwBsfvHY5q1NPFRR/ooF5BPbi6 AVA9NUatj69dGazwQs6H2OrDmFQhEJa1Vwny6Zx/dn1LMdbBcsBr9eVPbbiBQ//vZnPT wBVqPf/X/Zuwp0PDqFQsvuMQikAi8XikRe1GSjw8Er4kTqmOb+NpTSi7KWLu+yZOM30g M74w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:in-reply-to:content-language :references:cc:to:subject:from:user-agent:mime-version:date :message-id:sender:dkim-signature; bh=cOnIxiwA+Dzn8jMm0QJRreDWZusm3ax++UrHylxcfAU=; fh=+1as+Nz/vyStwdq0ABuApqSxgrz+iE7q6xdQvo56nic=; b=kV8fLU5C+SMVcbBZ+Yx3qg77XjEZRtA/2YujMCMX4IqipO0fD7ohgPc3oTHHmahKGc r9JSOfrslCmnbXZlKrvZIe8jsuGKjenTMWEUZ2E9idocX7O7cyrYfFZgpCnfjfpJV7qM YOREthXZtpFtNq3Li+5lCEl3WdlpGxsud4+3XBXmVvcdaOY2sS+ub2w0zxK+rAxaEes1 8z17DzxDL9tSpljrfFbxDG/2xdmFxBKdf+86+qiVRAsCQu87DYAzREPTRQBON2BikgMJ 67vNCwSRHw04pvVhc/FIUm/bT1/V2uPqxMzyGawkINjKdQiou4W2eLSub6WtIBK9SZ82 U/yA==; 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=20230601; t=1760453983; x=1761058783; 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:in-reply-to:content-language:references:cc:to :subject:from:user-agent:mime-version:date:message-id:sender:from:to :cc:subject:date:message-id:reply-to; bh=cOnIxiwA+Dzn8jMm0QJRreDWZusm3ax++UrHylxcfAU=; b=ADMaviSvti83EYT09Zs1OSmYSfjL+QbcqPuaG+aUNbcVeSQMGSeQNZRgWZiXQfy9JQ Nln5a7CN3SWRW486zCI1D/ovVuU46S0SwWgocX9VnQe29/htbajQareSDpJ8d2Lzcuto t8pCjAh7wwjf4rGTvBdPwa9k0qRWuFsUnR4FHQuUNKpNWlD1DvhNb4c2XpZuB74XHC0g 1/pCyYUYdxdkEfjcuT3r0WuY6c6FW/NGiwL4guCFm7AnOrDguPMvQao9OydHrIZkphU9 gUruxNNbzUDCYJMiKSY3IjNmzjVh8sncxX0svl1kYYHPNJI8CYYyW/65N4tsVy+OvULJ DILQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760453983; x=1761058783; 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:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:x-beenthere:x-gm-message-state:sender :from:to:cc:subject:date:message-id:reply-to; bh=cOnIxiwA+Dzn8jMm0QJRreDWZusm3ax++UrHylxcfAU=; b=cJXNQTWOB+4kzsq0WzGoZDae7iHz1UrLkrKx8iT14OqkdxBR/hBtzzLMyAkyJp120T JVpx+txeC64G/NaUl2epOCA7sJOYOhfUK3SrBrofiljSmqJ6txckI4TG/z9NiB1awHly V1NHH2BShC2gQyWv642du5CmmmSCoirLzknnInbEG7+fJ4MMi3Rnc9Uf9+EHe41B7Gk8 wFZ6aISaFl3tZliFKO/msB2pUzM1VYlScKzHBCqceYo1yzu+BAFvtlcbfWfs+FHyVHsb etlWRyyElcWIVN5Kh2M2ki8Uxf/Qm+2cOzX55EkQxkmRXHF6WnuKMw1GVL2R0j+l0rMJ RQ1A== Sender: isar-users@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCUJUvw3r1INLbWsjTRx2cu3d+4H+3KqelQUybdwAWn9E7YCngXmjfme6rBvRljVa3qDUNbs@ilbers.de X-Gm-Message-State: AOJu0Yz4ScMnslDd5LeTvM5IiUHDD02xALzYWG4AJaUNAkyAa/sbbrqb +9OSlkrLC9sZwe56e+Wsvs2clwiBwu19ijp8FXZVjpMiTI2QwxA89Jy0 X-Google-Smtp-Source: AGHT+IHVx05lb3l9LpSuXDLxuhDuxeVolIzjUx6gbFwSanf3IFNFwHWY3Pga1uCorB6AXZ6IZs1arw== X-Received: by 2002:a05:600c:138a:b0:46e:506b:20c5 with SMTP id 5b1f17b1804b1-46fa9b092aemr154645405e9.26.1760453982843; Tue, 14 Oct 2025 07:59:42 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h="ARHlJd65Tas7WYS1yy1jqnsOrNVQESY+ajo2EjS1WY/icDr8Iw==" Received: by 2002:a05:600c:295:b0:46b:38cc:d7cc with SMTP id 5b1f17b1804b1-46faf632bfdls36526205e9.2.-pod-prod-01-eu; Tue, 14 Oct 2025 07:59:40 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXjTq8KdhoUVnuOpxZdYfQlX/zFaLWFmD5vKZUyplAVsIr6NOxqTdHNdROvPioxaf/Jc4oxesHl3cEt@googlegroups.com X-Received: by 2002:a05:600d:4203:b0:46e:6af4:ed83 with SMTP id 5b1f17b1804b1-46fa9af9099mr182175575e9.23.1760453980267; Tue, 14 Oct 2025 07:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1760453980; cv=none; d=google.com; s=arc-20240605; b=H1BQhXagDSkGAICojPvuxb8uQrCND37+EeI19fSutPLw2dWfh399v7i0aYOYDoCRXF XirMLVEE9+w8XF9/T24x3Eu+GtmAikUPydICtbEpu9/pIVX7+Ykr7GDMlvRvP7fpZSkx sY0MvGiQnr7MRlPd9wAAAt0GOJ6uWlKmbOkenKcHJ4+MvHdNohkvmre+l6Q+cDsNJf38 hhLwEmgR/HKDN59DlU/TmyouVS0H6CxeldhM8n+AEaPwY2E2j3DGpEyYEklZzCRVpDpC t0iQBX1X/uO6z22vDzYdvaSp15yKoROP8SfJgtcOrUgJnVyOynJvNA9VkD1Fgte+mmC3 5DQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:date:message-id; bh=9x74qDgTwEek0amZ0FTaNfwGeRTbUY2LB+FyRtvRjVQ=; fh=/TfIjSuwVrKrV6jYVpFoEYmBJGIP+AnpMRe27Gqaf+g=; b=anU0ouvZ0N2xcPrW4YXaIEfpZt0djmwyQxT4L5Ki1ovyZg8PAf2Oa8q5IaWLIXtDJl HQpjkBfnCs9Pln4voTeR5Pk2iHvRTkIhFazoTX/QvVVb5Lt6hLhvVUaRB/oQksuFu2ZT rpZu61qRKZ5tHU9+vXabCtjLVp3SNPPOuZh1N2FnPkshuZ3QCV5U0V2+whnLfxe3hS14 5J4U4m4FWnVoBiJWld2qg+MrWbF0uZwsquOER9kMkWknK7gS06ybgZnTp+Jzyp+mT8jV INI2CYF1NMLetqJFt0wVx5REQmZvbc6OvVGITpexHTS0n1mSfW5zSQQYB4AxbjkaFaS6 H+Ng==; 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 ffacd0b85a97d-426d521397esi224041f8f.4.2025.10.14.07.59.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Oct 2025 07:59:40 -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.117] ([88.130.203.42]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 59EExco8007334 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 14 Oct 2025 16:59:39 +0200 Message-ID: Date: Tue, 14 Oct 2025 16:59:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Zhihang Wei Subject: Re: [PATCH] isar-installer: Generate textual output only in unattended mode. To: alexander.heinisch@siemens.com, isar-users@googlegroups.com Cc: kasturi.shekar@siemens.com References: <20250922164359.1322947-1-alexander.heinisch@siemens.com> Content-Language: en-US In-Reply-To: <20250922164359.1322947-1-alexander.heinisch@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: Hnmnsd3IoA63 Applied to next, thanks. On 9/22/25 18:43, alexander.heinisch via isar-users wrote: > From: Alexander Heinisch > > Dialog renders textual output unreadable, thus, useless. > Thus, logs output via a serial, or piped to a file are useless when combined with dialog. > > Signed-off-by: Alexander Heinisch > --- > .../files/usr/bin/deploy-image-wic.sh | 52 ++++++++++--------- > 1 file changed, 27 insertions(+), 25 deletions(-) > > diff --git a/meta-isar/recipes-installer/deploy-image/files/usr/bin/deploy-image-wic.sh b/meta-isar/recipes-installer/deploy-image/files/usr/bin/deploy-image-wic.sh > index 333762f1..779ed34a 100755 > --- a/meta-isar/recipes-installer/deploy-image/files/usr/bin/deploy-image-wic.sh > +++ b/meta-isar/recipes-installer/deploy-image/files/usr/bin/deploy-image-wic.sh > @@ -157,32 +157,34 @@ version_ge() { > fi > } > > -# Get bmap-tools version > -bmap_version=$(bmaptool --version | awk '{ print $NF }') > - > -if version_ge "$bmap_version" "3.6"; then > - # Create a named pipe for progress communication > - progress_pipe="/tmp/progress" > - if ! mkfifo "$progress_pipe"; then > - echo "Error: Failed to create named pipe $progress_pipe" > - exit 1 > - fi > - > - # Add psplash pipe to bmap_options > - bmap_options="$bmap_options --psplash-pipe=$progress_pipe" > - quiet_flag="-q" > - > - # Initialize the dialog gauge and update it dynamically > - ( > - while true; do > - if read -r line < "$progress_pipe"; then > - percentage=$(echo "$line" | awk '{ print $2 }') > - echo "$percentage" > - fi > - done > - ) | dialog --gauge "Flashing image, please wait..." 10 70 0 & > +if ! $installer_unattended; then > + # Get bmap-tools version > + bmap_version=$(bmaptool --version | awk '{ print $NF }') > + > + if version_ge "$bmap_version" "3.6"; then > + # Create a named pipe for progress communication > + progress_pipe="/tmp/progress" > + if ! mkfifo "$progress_pipe"; then > + echo "Error: Failed to create named pipe $progress_pipe" > + exit 1 > + fi > > - gauge_pid=$! > + # Add psplash pipe to bmap_options > + bmap_options="$bmap_options --psplash-pipe=$progress_pipe" > + quiet_flag="-q" > + > + # Initialize the dialog gauge and update it dynamically > + ( > + while true; do > + if read -r line < "$progress_pipe"; then > + percentage=$(echo "$line" | awk '{ print $2 }') > + echo "$percentage" > + fi > + done > + ) | dialog --gauge "Flashing image, please wait..." 10 70 0 & > + > + gauge_pid=$! > + fi > fi > > if ! bmaptool $quiet_flag copy $bmap_options "$installer_image_uri" "$installer_target_dev"; then -- 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/cf7ecf1a-98e7-4df6-a8ac-6bd2ce543573%40ilbers.de.