deploy-image: depend on procps and increase wait time for progress pipe

Message ID 20260303192202.1837471-1-badrikesh.prusty@siemens.com
State New
Headers show
Series deploy-image: depend on procps and increase wait time for progress pipe | expand

Commit Message

Badrikesh Prusty March 3, 2026, 7:22 p.m. UTC
Add missing runtime dependency on procps to DEBIAN_DEPENDS, as pgrep is
used to monitor the bmaptool flash process.

Increase sleep time from 2 to 5 seconds when waiting for the progress
pipe to handle slower devices where pipe creation may take longer.

Fixes: 9813a8fc ("installer: fix race condition with multiple consoles running unattended")
Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
---
 meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb    | 2 +-
 .../deploy-image/files/usr/bin/deploy-image-wic.sh              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb b/meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb
index 860a8d6f..e85b50c3 100644
--- a/meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb
+++ b/meta-isar/recipes-installer/deploy-image/deploy-image_0.1.bb
@@ -14,7 +14,7 @@  SRC_URI = "file://usr/bin/deploy-image-wic.sh \
 
 DEPENDS:append:bookworm = " bmap-tools"
 DEPENDS:append = " systemd-tmpfs-tmp"
-DEBIAN_DEPENDS = "bmap-tools, pv, dialog, util-linux, parted, fdisk, gdisk, pigz, systemd-tmpfs-tmp, xz-utils, pbzip2, zstd"
+DEBIAN_DEPENDS = "bmap-tools, pv, dialog, util-linux, parted, fdisk, gdisk, pigz, procps, systemd-tmpfs-tmp, xz-utils, pbzip2, zstd"
 do_install[cleandirs] = "${D}/usr/bin/ \
                          ${D}/usr/lib/deploy-image-wic \
                         "
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 9a69fde5..78d40e32 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
@@ -274,7 +274,7 @@  else
     echo "Installation already running in another console."
 
     # Wait for running console to create the progress pipe
-    sleep 2
+    sleep 5
 
     # Check if progress pipe exists and has content
     if [ -e "$progress_pipe" ]; then