From: Andreas Reichel <[email protected]>

During environment enumeration, notify if it is on the boot device

Signed-off-by: Andreas Reichel <[email protected]>
---
 utils.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/utils.c b/utils.c
index 0477cbc..c36f428 100644
--- a/utils.c
+++ b/utils.c
@@ -198,6 +198,9 @@ EFI_STATUS get_volumes(VOLUME_DESC **volumes, UINTN *count)
                Print(L"Volume %d: %s, LABEL=%s, CLABEL=%s\n", rootCount,
                      DevicePathToStr(devpath), (*volumes)[rootCount].fslabel,
                      (*volumes)[rootCount].fscustomlabel);
+               if (IsOnBootDevice(devpath)) {
+                       Print(L"(On the boot device)\n");
+               }
                rootCount++;
        }
        *count = rootCount;
-- 
2.17.0

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20180525120108.31055-5-andreas.reichel.ext%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to