svn commit: r330814 - head/stand/efi/boot1

Warner Losh imp at FreeBSD.org
Mon Mar 12 21:40:22 UTC 2018


Author: imp
Date: Mon Mar 12 21:40:19 2018
New Revision: 330814
URL: https://svnweb.freebsd.org/changeset/base/330814

Log:
  Star BootCurrent entry when booting.
  
  Sponsored by: Netflix

Modified:
  head/stand/efi/boot1/boot1.c

Modified: head/stand/efi/boot1/boot1.c
==============================================================================
--- head/stand/efi/boot1/boot1.c	Mon Mar 12 21:40:14 2018	(r330813)
+++ head/stand/efi/boot1/boot1.c	Mon Mar 12 21:40:19 2018	(r330814)
@@ -474,7 +474,8 @@ efi_main(EFI_HANDLE Ximage, EFI_SYSTEM_TABLE *Xsystab)
 	efi_global_getenv("BootOrder", &boot_order, &sz);
 	printf("   BootOrder:");
 	for (i = 0; i < sz / sizeof(boot_order[0]); i++)
-		printf(" %04x", boot_order[i]);
+		printf(" %04x%s", boot_order[i],
+		    boot_order[i] == boot_current ? "[*]" : "");
 	printf("\n");
 
 #ifdef TEST_FAILURE


More information about the svn-src-all mailing list