Many netboot scenarios don't have /boot/defaults/loader.conf. As
a fallback, also check /boot/kernel/kernel existing as well, since that's the fallback behavior of the loader.
This commit is contained in:
parent
5d9573acf2
commit
02cff72a7b
@ -220,7 +220,8 @@ sanity_check_currdev(void)
|
||||
{
|
||||
struct stat st;
|
||||
|
||||
return (stat("/boot/defaults/loader.conf", &st) == 0);
|
||||
return (stat("/boot/defaults/loader.conf", &st) == 0 ||
|
||||
stat("/boot/kernel/kernel", &st) == 0);
|
||||
}
|
||||
|
||||
#ifdef EFI_ZFS_BOOT
|
||||
|
Loading…
x
Reference in New Issue
Block a user