deploy-image: add support for read-auto in md filtering

Message ID 20260730053233.2527374-1-kasturi.shekar@siemens.com
State Under Review
Headers show
Series deploy-image: add support for read-auto in md filtering | expand

Commit Message

Kasturi shekar July 30, 2026, 5:32 a.m. UTC
From: Kasturi Shekar <kasturi.shekar@siemens.com>

Signed-off-by: Kasturi Shekar <kasturi.shekar@siemens.com>
---
 .../recipes-installer/deploy-image/files/usr/bin/sys_api.sh     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta-isar/recipes-installer/deploy-image/files/usr/bin/sys_api.sh b/meta-isar/recipes-installer/deploy-image/files/usr/bin/sys_api.sh
index 9c9c5840..5f591745 100644
--- a/meta-isar/recipes-installer/deploy-image/files/usr/bin/sys_api.sh
+++ b/meta-isar/recipes-installer/deploy-image/files/usr/bin/sys_api.sh
@@ -184,7 +184,7 @@  sys_discover_target_devices() {
             # Accept only active or clean md arrays, reject degraded/inactive RAID sets.
             if [ -f "/sys/block/$device/md/array_state" ]; then
                 state=$(cat /sys/block/$device/md/array_state | tr -d '\n' | tr -d ' ')
-                if [ "$state" != "active" ] && [ "$state" != "clean" ]; then
+                if [ "$state" != "active" ] && [ "$state" != "clean" ] && [ "$state" != "read-auto" ]; then
                     echo "Skipping RAID device $device: state='$state'" >&2
                     continue
                 fi