From: Zhihang Wei <wzh@ilbers.de>
To: Kasturi Shekar <kasturi.shekar@siemens.com>, isar-users@googlegroups.com
Subject: Re: [PATCH] isar-installer: skip inactive/invalid RAID devices in target detection
Date: Tue, 4 Nov 2025 15:18:13 +0100 [thread overview]
Message-ID: <abe960c0-db22-4c2b-9f5b-8114f8def909@ilbers.de> (raw)
In-Reply-To: <20251031104826.1711686-1-kasturi.shekar@siemens.com>
Applied to next, thanks.
Best regards,
Zhihang
On 10/31/25 11:48, 'Kasturi Shekar' via isar-users wrote:
> Prevent inactive RAID devices from appearing in the installation target menu.
> Eliminate user confusion previously caused by listing inactive devices,
> even after RAID member disks were filtered.
>
> Update logic to check the RAID array_state. Ensure only 'active' or 'clean'
> RAID devices are listed; skip all inactive ones.
>
> Signed-off-by: Kasturi Shekar <kasturi.shekar@siemens.com>
> ---
> .../deploy-image/files/usr/bin/deploy-image-wic.sh | 11 +++++++++++
> 1 file changed, 11 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 a5d171a2..b5ea8119 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
> @@ -78,6 +78,17 @@ if ! $installer_unattended; then
> continue # Skip RAID member disks
> fi
>
> + if [[ "$device" == md* ]]; then
> + if [ -f "/sys/block/$device/md/array_state" ]; then
> + state=$(cat /sys/block/$device/md/array_state)
> + if [ "$state" != "active" ] && [ "$state" != "clean" ]; then
> + continue
> + fi
> + else
> + continue
> + fi
> + fi
> +
> case $device in
> loop*)
> # skip loop device
--
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/abe960c0-db22-4c2b-9f5b-8114f8def909%40ilbers.de.
prev parent reply other threads:[~2025-11-04 14:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-31 10:48 'Kasturi Shekar' via isar-users
2025-11-04 14:18 ` Zhihang Wei [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=abe960c0-db22-4c2b-9f5b-8114f8def909@ilbers.de \
--to=wzh@ilbers.de \
--cc=isar-users@googlegroups.com \
--cc=kasturi.shekar@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox