From: Christian Storm <[email protected]>

In addition to /dev/mmcblk and /dev/nvme, use the <device>p<num>
partition naming scheme for loopback devices as well.

Signed-off-by: Christian Storm <[email protected]>
---
 env/env_config_partitions.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/env/env_config_partitions.c b/env/env_config_partitions.c
index e22df3d..f4b17e2 100644
--- a/env/env_config_partitions.c
+++ b/env/env_config_partitions.c
@@ -45,6 +45,7 @@ bool probe_config_partitions(CONFIG_PART *cfgpart)
                                continue;
                        }
                        if (strncmp("/dev/mmcblk", dev->path, 11) == 0 ||
+                           strncmp("/dev/loop", dev->path, 9) == 0 ||
                            strncmp("/dev/nvme", dev->path, 9) == 0) {
                                (void)snprintf(devpath, 4096, "%sp%u",
                                               dev->path, part->num);
-- 
2.29.2

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20201119115515.17633-1-christian.storm%40siemens.com.

Reply via email to