public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
[parent not found: <RTNpsq5L6m8>]
* [PATCH v2] fix premature success dialog in installer script
@ 2025-08-06  5:54 'Kasturi Shekar' via isar-users
  2025-08-20  9:34 ` [PATCH 1/2 v3] " 'Kasturi Shekar' via isar-users
  0 siblings, 1 reply; 5+ messages in thread
From: 'Kasturi Shekar' via isar-users @ 2025-08-06  5:54 UTC (permalink / raw)
  To: isar-users; +Cc: Kasturi Shekar

The 'Installation successful' message was displayed before the
progress bar completed. Fixed by tracking the dialog --gauge PID
and terminating it after bmaptool finishes. This ensures
the progress bar runs to 100% before showing the final message.

Changes:
- Tracked the PID of the dialog --gauge process.
- Killed gauge process after bmaptool completed.
- Ensured success message is shown only after the progress bar ends.

Signed-off-by: Kasturi Shekar <kasturi.shekar@siemens.com>
---
 .../deploy-image/files/usr/bin/deploy-image-wic.sh            | 4 ++++
 1 file changed, 4 insertions(+)

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 aba81c84..fa1061c1 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
@@ -183,12 +183,16 @@ if version_ge "$bmap_version" "3.6"; then
         done
     ) | dialog --gauge "Flashing image, please wait..." 10 70 0 &
 
+    gauge_pid=$!
 fi
 
 if ! bmaptool ${quiet_flag} copy ${bmap_options} "$installer_image_uri" "${installer_target_dev}"; then
+    kill "$gauge_pid"
     exit 1
 fi
 
+kill "$gauge_pid" 2>/dev/null
+
 if ! $installer_unattended; then
     dialog --title "Reboot" \
            --msgbox "Installation was successful. System will be rebooted. Please remove the USB stick." 6 60
-- 
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/20250806055438.3318548-1-kasturi.shekar%40siemens.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-20  9:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <aeX5ngvTAQAJ>
2025-08-20  9:12 ` [PATCH 1/2 v3] fix premature success dialog in installer script 'Kasturi Shekar' via isar-users
2025-08-20  9:12   ` [PATCH 2/2] deploy-image-wic.sh: fix shellcheck warnings 'Kasturi Shekar' via isar-users
     [not found] <RTNpsq5L6m8>
2025-08-20  9:20 ` [PATCH 1/2 v3] fix premature success dialog in installer script 'Kasturi Shekar' via isar-users
2025-08-20  9:20   ` [PATCH 2/2] deploy-image-wic.sh: fix shellcheck warnings 'Kasturi Shekar' via isar-users
2025-08-20  9:36     ` Kasturi S
2025-08-06  5:54 [PATCH v2] fix premature success dialog in installer script 'Kasturi Shekar' via isar-users
2025-08-20  9:34 ` [PATCH 1/2 v3] " 'Kasturi Shekar' via isar-users
2025-08-20  9:34   ` [PATCH 2/2] deploy-image-wic.sh: fix shellcheck warnings 'Kasturi Shekar' via isar-users

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox