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 | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/utils.c b/utils.c
index 8104349..cb65b88 100644
--- a/utils.c
+++ b/utils.c
@@ -176,11 +176,16 @@ EFI_STATUS get_volumes(VOLUME_DESC **volumes, UINTN 
*count)
                    get_volume_label((*volumes)[rootCount].root);
                (*volumes)[rootCount].fscustomlabel =
                    get_volume_custom_label((*volumes)[rootCount].root);
-               Print(L"Volume %d: %s, LABEL=%s, CLABEL=%s\n", rootCount,
+               Print(L"Volume %d: ", rootCount);
+               if (IsOnBootDevice(devpath)) {
+                       Print(L"(On boot medium) ");
+               }
+               Print(L"%s, LABEL=%s, CLABEL=%s\n",
                      devpathstr, (*volumes)[rootCount].fslabel,
                      (*volumes)[rootCount].fscustomlabel);
 
                mfree(devpathstr);
+
                rootCount++;
        }
        *count = rootCount;
-- 
2.18.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/20180905162030.28077-4-andreas.reichel.ext%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to