The efibootguard bg_xx tools are not sufficient for md configured RAID 
systems.

The disk is probes as 

lrwxrwxrwx 1 0 0    8 md127
lrwxrwxrwx 1 0 0   10 md127p1
lrwxrwxrwx 1 0 0   10 md127p2
lrwxrwxrwx 1 0 0   10 md127p3
lrwxrwxrwx 1 0 0   10 md127p4
lrwxrwxrwx 1 0 0   10 md127p5
lrwxrwxrwx 1 0 0   10 md127p6

But bg_printenv and bg_setenv tools are 
Searching them without "p"

Partition /dev/md1271 is not mounted.
Error mounting to temporary mount point.
Partition /dev/md1272 is not mounted.
Error mounting to temporary mount point.
Partition /dev/md1273 is not mounted.

Thats why this fix is required for using bg tools on md devices.

Patched to master --->

Signed-off-by: Erdem Kahraman <erdem.kahra...@siemens.com>
---
 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..1f775a9 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 {
-- 


-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to efibootguard-dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/efibootguard-dev/0345ec79-f1e9-43ee-bf85-58d9a3b6721fn%40googlegroups.com.

Reply via email to