[2/2] installer: exclude .wic.bmap files from image selection menu

Message ID 20251213205301.2209317-2-badrikesh.prusty@siemens.com
State New
Headers show
Series [1/2] installer: support bundling multiple target images | expand

Commit Message

Badrikesh Prusty Dec. 13, 2025, 8:53 p.m. UTC
Update deploy-image-wic.sh to exclude `.wic.bmap` files when listing
available target images in interactive mode. This prevents bmap files
from appearing in the selection menu and ensures only actual installer
images are presented to the user.

Signed-off-by: Badrikesh Prusty <badrikesh.prusty@siemens.com>
---
 .../deploy-image/files/usr/bin/deploy-image-wic.sh              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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 55d5df6f..9bd47e9f 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
@@ -14,7 +14,7 @@  if ! $installer_unattended; then
     installer_image_uri=$(find "$installdata" -type f -iname "*.wic*" -a -not -iname "*.wic.bmap" -exec basename {} \;)
     if [ -z "$installer_image_uri" ] || [ ! -f "$installdata/$installer_image_uri" ]; then
         pushd "$installdata"
-        for f in $(find . -type f); do
+        for f in $(find . -type f ! -iname "*.wic.bmap"); do
             array+=("$f" "$f")
         done
         popd