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. Reviewed by: kevans, bcran Differential Revision: https://reviews.freebsd.org/D22062
This commit is contained in:
parent
e9c6962599
commit
c7e6f9dcf5
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user