From 3017e5ed294b01c43f874d1211c0d2f07a72a05e Mon Sep 17 00:00:00 2001 From: Erdem Kahraman Date: Wed, 11 Dec 2024 10:45:50 +0100 Subject: [PATCH] add bg_env tools support for md configured raid systems This change adds support for md configured RAID systems in the bg_env tools. It ensures that the tool correctly identifies and handles RAID partitions configured with md. Signed-off-by: Erdem Kahraman [Jan: fixed up syntax mistake] Signed-off-by: Jan Kiszka --- env/env_config_partitions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/env/env_config_partitions.c b/env/env_config_partitions.c index eae7be1..0ef5a55 100644 --- a/env/env_config_partitions.c +++ b/env/env_config_partitions.c @@ -129,7 +129,8 @@ bool probe_config_partitions(CONFIG_PART *cfgpart, bool search_all_devices) } if (strncmp("/dev/mmcblk", dev->path, 11) == 0 || strncmp("/dev/loop", dev->path, 9) == 0 || - strncmp("/dev/nvme", dev->path, 9) == 0) { + strncmp("/dev/nvme", dev->path, 9) == 0 || + strncmp("/dev/md", dev->path, 7) == 0) { (void)snprintf(devpath, 4096, "%sp%u", dev->path, part->num); } else {