svn commit: r353998 - stable/12/stand/efi/loader

Kyle Evans kevans at FreeBSD.org
Thu Oct 24 03:32:48 UTC 2019


Author: kevans
Date: Thu Oct 24 03:32:47 2019
New Revision: 353998
URL: https://svnweb.freebsd.org/changeset/base/353998

Log:
  MFC r353697: Allow loader.efi to identify non-standard boot setup
  
  PATH_BOOTABLE_TOKEN can be set to a non-standard
  path that identifies a device as bootable.

Modified:
  stable/12/stand/efi/loader/main.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/stand/efi/loader/main.c
==============================================================================
--- stable/12/stand/efi/loader/main.c	Thu Oct 24 03:32:02 2019	(r353997)
+++ stable/12/stand/efi/loader/main.c	Thu Oct 24 03:32:47 2019	(r353998)
@@ -239,6 +239,9 @@ sanity_check_currdev(void)
 	struct stat st;
 
 	return (stat(PATH_DEFAULTS_LOADER_CONF, &st) == 0 ||
+#ifdef PATH_BOOTABLE_TOKEN
+	    stat(PATH_BOOTABLE_TOKEN, &st) == 0 || /* non-standard layout */
+#endif
 	    stat(PATH_KERNEL, &st) == 0);
 }
 


More information about the svn-src-stable-12 mailing list