diff options
author | Warner Losh <imp@FreeBSD.org> | 2019-06-24 20:34:53 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2019-06-24 20:34:53 +0000 |
commit | ec9abc1843219b354494b58fa322fe6f6d3439e9 (patch) | |
tree | 100fa7b943e0d258eb3ce31cc8352e31a208ca44 /stand/efi | |
parent | 97ad52ca4ce2eb52379af2f19a589fd18eb4dd51 (diff) | |
download | src-ec9abc1843219b354494b58fa322fe6f6d3439e9.tar.gz src-ec9abc1843219b354494b58fa322fe6f6d3439e9.zip |
Move to using a common kernel path between the boot / laoder bits and
the kernel.
Notes
Notes:
svn path=/head/; revision=349343
Diffstat (limited to 'stand/efi')
-rw-r--r-- | stand/efi/loader/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index 8b3ba741178c..60d8c1442518 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -36,6 +36,7 @@ __FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/reboot.h> #include <sys/boot.h> +#include <paths.h> #include <stdint.h> #include <string.h> #include <setjmp.h> @@ -237,8 +238,8 @@ sanity_check_currdev(void) { struct stat st; - return (stat("/boot/defaults/loader.conf", &st) == 0 || - stat("/boot/kernel/kernel", &st) == 0); + return (stat(PATH_DEFAULTS_LOADER_CONF, &st) == 0 || + stat(PATH_KERNEL, &st) == 0); } #ifdef EFI_ZFS_BOOT |