Set the kernel file name so the kern.bootfile sysctl is set. This allows

for the creation of kernel.old when running installkernel.

MFC after:	1 week
Sponsored by:	DARPA, AFRL
This commit is contained in:
andrew 2017-11-27 16:19:00 +00:00
parent 1ee53d7aa7
commit d5748f4382

View File

@ -1017,6 +1017,7 @@ initarm(struct arm64_bootparams *abp)
{
struct efi_map_header *efihdr;
struct pcpu *pcpup;
char *env;
#ifdef FDT
struct mem_region mem_regions[FDT_MEM_REGIONS];
int mem_regions_sz;
@ -1117,6 +1118,10 @@ initarm(struct arm64_bootparams *abp)
kdb_init();
pan_enable();
env = kern_getenv("kernelname");
if (env != NULL)
strlcpy(kernelname, env, sizeof(kernelname));
early_boot = 0;
}