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; Mon, 22 Sep 2025 18:44:27 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-pl1-f185.google.com (mail-pl1-f185.google.com [209.85.214.185]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 58MGiPcH020573 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 22 Sep 2025 18:44:26 +0200 Received: by mail-pl1-f185.google.com with SMTP id d9443c01a7336-2699ebc0319sf50908785ad.3 for ; Mon, 22 Sep 2025 09:44:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758559459; cv=pass; d=google.com; s=arc-20240605; b=PCGeks/hGwMGaUpqHpQp+xRhMWe0FjbKO3tbsqY/dgZPhGXVYbz6DJ8U291m2D4S/A rjuPTtQJaBroY7DF37Kw7rYEW20xF+0z7bD1AMC1QnMFeOM5TCkbth0iEJRrB8E0YJfQ KKWNRcUMMEsl8IlZO71OHTuhnj4skYp76vRT+FJzfaIfOZCgPjSKwtqj6WM9Q395JWpU gU7Op7WgqQNDLT+erqRAvV/TP4Bg2HGbtyrgpwDOlEkPJiFCg7V29Vg8waOxkZODyiQH 3K40wDcSOCwCft204weKlgvLBLKe4v0gIqYQNh2NSmbRWWyQfzacLplR3v1tPSxuhE1c FV9Q== 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:reply-to:feedback-id:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PHds/lAU1jP0n9hWpu/lMM0Ifh18sC5820p/VrCwr+8=; fh=U204juG9QcWWeCakOsaH2rPwfXymLJxkumZMj1OElGM=; b=VMt5keRKfpwknnhkaV8BElLX8U+x3m7WkNWs0x0h7fDHp4Wv4mcFD/+fJ+0Ne+iGiF T6OT+Xp57cVBk8mePtEpXIoX8Hw5sEoFW3euJWq1LPZBcRvYUiJ76Hpzgb4uZJyb4BYo acrpPnA4YVKWwMRhGYSOsZMj6RUiP1umwyfA1ZGwLvPmLncxrlvTrQ9FEXeyngV34UX8 eHdAxNEfhGmScQWYWa3NtXWRlU+2sW3RQwPbh/A17X8isFGQqdPPDH+mjn6v/bQQNGuS w/LUivr8mbpjplf76VzNIqWh9TpB8NqHx5dZvGytBG4UwYs8C96CvCiIBywhZ1DtNrCn whkg==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=qpV45DuD; spf=pass (google.com: domain of fm-1330684-20250922164415bb10e87a1f00020711-uxvrj7@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-1330684-20250922164415bb10e87a1f00020711-UxVRJ7@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1758559459; x=1759164259; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=PHds/lAU1jP0n9hWpu/lMM0Ifh18sC5820p/VrCwr+8=; b=XdKJivL77JMRc0bxGwpXVvjvn4foNn3tFl4GjlQZWTWKj4xupPv4ix6OCgXcNhQBap IKiZ0rvO2oE1ExeqnGZGUeYfhcny3hzpwHfUKTr1ROW8i0UkEbS7vqi4H4vYM9Noz7uV xZVcpva8JuNELy8a9UuS/BjmrdmQSgifD/AjIjsmWg89BuVzSHK77eLDXHfTx01kabSq VAk0tbx7297/GKKlSZugVeAbA8NQTv0mjL8RTOP0x+R3w6UKMhsKne04ujmSVCMGT9jG QBA5ze2hUANbQPzU0y+lJ5Q32JxEtu/3ZA6oPFIljo+WVsMue9xfXmiaxUFauAGyqHLN nkbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758559459; x=1759164259; 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-authentication-results:x-original-sender:feedback-id :mime-version:message-id:date:subject:cc:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PHds/lAU1jP0n9hWpu/lMM0Ifh18sC5820p/VrCwr+8=; b=XVnMqFVBC2AbiojLyDmTLL00xVQ2RhSaVJQbjX7nkndqcxMgSeQobEkcmIEdRV/6n9 avKx+o/yLhjlvPghI1luEM51COP17Wh+k+3EYC7HHjZVSp0HXsYXYVmbXM0CRsrU5mQl cZ/RuOoVgh6njQpjeYUhWOyv98bANjr2g8ORR68G76XJ+efdcrlGdm4GsjDpZVBidBOJ Uodqvg0elJTttHvAh0AQcN2wU4zonT4Ls3+KY5DpD4LibshskmsJhieWfbujJpADqmc2 hiwEw3Jvnj+hLf2fnLppq7LUxcvHd3LFL6efq1j40597PKa7TyVCF6c39ROvEyZXgckO P/Ww== X-Forwarded-Encrypted: i=2; AJvYcCWvFl/e4agES+romzc5Z7EiaeARXGzl9Jz4j1Y2X+j22STYdizYPBn/W0dJNYkjeiWZkI6l@ilbers.de X-Gm-Message-State: AOJu0YwdaQySXF8lpfYdRDUjl8Wp8j83hrciV0IHtwKl63+h4nd7/pXL m/x2dluhElNTxqG8TxeS4nj81FZh/X0kfDGd9akN4l8OEO0SX3Mcph0m X-Google-Smtp-Source: AGHT+IFNTw7vhtwkn3r4Q9fCY132FqV1/dqjpUwIC87gUr9t6IGUHtazD7ihlu212SIOTRGk2HLyhg== X-Received: by 2002:a17:902:db0c:b0:273:31fb:a872 with SMTP id d9443c01a7336-27331fbaaa9mr91371745ad.6.1758559459295; Mon, 22 Sep 2025 09:44:19 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARHlJd5L1MM63/vcxa5gF5hVPZC4X94xberTa5pXLevHfuSbrg== Received: by 2002:a17:903:3508:b0:267:ac34:9e67 with SMTP id d9443c01a7336-269840f261dls52322175ad.2.-pod-prod-07-us; Mon, 22 Sep 2025 09:44:17 -0700 (PDT) X-Received: by 2002:a05:6a20:7f93:b0:240:1ad8:1821 with SMTP id adf61e73a8af0-2925f75cb84mr17987738637.19.1758559457465; Mon, 22 Sep 2025 09:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758559457; cv=none; d=google.com; s=arc-20240605; b=BZQ1fxv0VSYQdc1ugJJkySvQwa5TUDJxvUJkd2mwT7StudkD80Wx4TxRXBuV5cql9p cO+eY3uJe7aBbP9lG3hIYALyPMQ6iLaqXPY6vCOIs9ye0fZ9s5qKIT0VwJPbJtpW47JU kj48bhi3Z7ZivzqKix1F4scElap9sZGYWAl1wAPxM9ZuaJYt7nVGlNyDm4xgVVNcYzmp +LHVMH9MJtYfEIF4M7Q2izf74zXh5mJfefxAfT3oibphnfZsZ57c/CJWlAilGZP5M2NP PswJXD0zhhAzfCVvyObfUx63gOZwMJYEIdDlIUP+yv2kDa8ZMdoJKkfYQlE31dCL23a2 ctTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=WqN1TAN92XwcAQm3GgFlN8KHzBWbq4xeX9VmzQ1QQeM=; fh=65uPnq3xxWxeuE2KN+Ajrg0XDbYMdgKgugkACMJPzOc=; b=kOx87G0QOLLEGg7h+iJlhI6b7x8DLiVrSNijeFKKSR9O/T7SgU9GVRDmiwzewr48Fc /AovKb6KPsDPrTrknaFYO+RnFY3/gZtjNH2NzhgTlk47XeidIq71FUuJDw7KNy+nV+0l pCv7q7aavhlkUxECZAm3I6+pWVpRsqysslx7RARWXGu2646fbAgU0qgu7XTckLchje5/ 7cGYqqL3nnd8mUPAgBSD21N6sITCgV4q0naUGNAod92ztYDpbp8D0SfNPT6pQRYXTuzg iwYiIrGcBEvBZUH8BLGhecxL/YLxUayuDajC0talmpRmYel/Jsu9H+uVvCAzPMsYJif/ C9QA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=qpV45DuD; spf=pass (google.com: domain of fm-1330684-20250922164415bb10e87a1f00020711-uxvrj7@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-1330684-20250922164415bb10e87a1f00020711-UxVRJ7@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-228.siemens.flowmailer.net (mta-65-228.siemens.flowmailer.net. [185.136.65.228]) by gmr-mx.google.com with ESMTPS id 41be03b00d2f7-b551435d42asi438210a12.3.2025.09.22.09.44.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Sep 2025 09:44:17 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1330684-20250922164415bb10e87a1f00020711-uxvrj7@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) client-ip=185.136.65.228; Received: by mta-65-228.siemens.flowmailer.net with ESMTPSA id 20250922164415bb10e87a1f00020711 for ; Mon, 22 Sep 2025 18:44:15 +0200 From: "alexander.heinisch via isar-users" To: isar-users@googlegroups.com Cc: kasturi.shekar@siemens.com, Alexander Heinisch Subject: [PATCH] isar-installer: Generate textual output only in unattended mode. Date: Mon, 22 Sep 2025 18:43:59 +0200 Message-Id: <20250922164359.1322947-1-alexander.heinisch@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1330684:519-21489:flowmailer X-Original-Sender: alexander.heinisch@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=qpV45DuD; spf=pass (google.com: domain of fm-1330684-20250922164415bb10e87a1f00020711-uxvrj7@rts-flowmailer.siemens.com designates 185.136.65.228 as permitted sender) smtp.mailfrom=fm-1330684-20250922164415bb10e87a1f00020711-UxVRJ7@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: alexander.heinisch@siemens.com Reply-To: alexander.heinisch@siemens.com Content-Type: text/plain; charset="UTF-8" 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,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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: HFF1mrYuhkSH 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 -- 2.39.5 -- 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/20250922164359.1322947-1-alexander.heinisch%40siemens.com.