From 45c95cd224ec8314255b39c8c23e0285c37e3721 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 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..870f8d3 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 {