mirror of
https://github.com/opnsense/src.git
synced 2026-02-23 09:56:47 -05:00
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:
parent
4de8ade94c
commit
896d821e54
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue