installing multiple kernels

James E. Housley jeh at FreeBSD.org
Thu Apr 15 11:33:04 PDT 2004


Dag-Erling Smørgrav wrote:
> Currently, Makefile.inc1 will only install a single kernel.  If
> KERNCONF specifies multiple kernel configs, they are all built, but
> only the first one is installed.  This makes sense since otherwise the
> last one installed would simply clobber all the other ones.
> 
> The attached patch changes that.  It modifies kern.pre.mk to install
> each kernel in /boot/<kernelname> instead of /boot/kernel.  It also
> modifies Makefile.inc1 to build and install all kernel configs listed
> in KERNCONF.  It also adds a script, sys/conf/regkernel.sh, which
> keeps a list of installed kernels in /boot/kernels, making sure that
> the last one installed is always listed last.
> 
> The only missing element is to make the loader read /boot/kernels and
> have $kernel default to the last kernel listed there (i.e. the most
> recently installed) instead of "kernel".  It would also be nice to
> offer a kernel selection menu for the CLI-impaired.  Unfortunately,
> I'm afraid my forth skills aren't quite up to the task.  Any takers?
> 

But isn't changing to use the last kernel instead of the first kernel a 
violation of POLA?  Other then that this sounds great.

Jim

-- 
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
jeh at FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim at TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
Life begins at 4.0


More information about the freebsd-arch mailing list