Bug 201098

Summary: packagekernel only supports the default kernel install; being able to install multiple kernels with different names would be nice
Product: Base System Reporter: Enji Cooper <ngie>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: cattelan, gjb
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Enji Cooper freebsd_committer freebsd_triage 2015-06-24 20:33:25 UTC
- packagekernel only works if INSTKERNNAME isn't specified in src.conf/make.conf
- packagekernel only works with a single KERNCONF (KERNCONF can consist of multiple values).

Please extend packagekernel to support multiple kernconfs/INSTKERNNAME so we could build release media with multiple kernels and people can select them from a list/from the bootloader.
Comment 1 Glen Barber freebsd_committer freebsd_triage 2015-06-24 20:37:22 UTC
The 'packagekernel' target works fine, and INSTKERNNAME is not needed in src.conf or make.conf.

Try:

 # make KERNCONF="GENERIC DEBUG" packagekernel

The selection from loader(8) is orthogonal to this, as the values need to be set in loader.conf(5), which is an entirely different bug.
Comment 2 cattelan 2015-06-24 21:06:23 UTC
One of issue that the first kernel packaged is kernel.tgz

We added a flag to force all the packaged kernels 
  .if !defined(NO_INSTALLKERNEL) 

into the path that always adds the kernel config name to the tarball.
kernel.${_kernel}.txz 

Basically so it is clear which config was used to build the kernel.