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);
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"