Page MenuHomeFreeBSD

Gives more fexibility to kernel installation
Needs ReviewPublic

Authored by salvadore on Apr 2 2019, 6:33 PM.

Details

Reviewers
cem
Group Reviewers
Contributor Reviews (base)
Summary

Introduces a new USEKERNNAME variable set by default to "yes", that works as follows:

  • if USEKERNNAME == yes, then nothing is changed;
  • if USEKERNNAME != yes, then install all kernels in a directory named exactly as the kernel configuration.

For example, if KERNCONF = GENERIC CURRENT STABLE, then the 3 kernels would be installed in /boot/GENERIC, /boot/CURRENT, /boot/STABLE respectively. No /boot/kernel would be created.
Then, /boot/loader.conf should be updated with the new default kernel name (by setting the "kernel" variable) or a /boot/kernel file should be created manually (by copying a valid kernel directory, by soft linking to a valid kernel directory...).

Test Plan

I tested successfully the patch. I did not test what happens if no /boot/kernel file exists and the kernel variable in /boot/loader.conf is not defined.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Lint Skipped
Unit
Unit Tests Skipped