Skip to content

Commit

Permalink
add bg_env tools support for md configured raid systems
Browse files Browse the repository at this point in the history
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 <[email protected]>
[Jan: fixed up syntax mistake]
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
Erdem Kahraman authored and jan-kiszka committed Dec 11, 2024
1 parent f8a342c commit 3017e5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion env/env_config_partitions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3017e5e

Please sign in to comment.