Trond Endrestøl
2016-Jan-06 12:45 UTC
Multiple kernels installed when KERNCONF lists more than one kernel configuration file
Hi, I'm running stable/10, amd64, r293231, and KERNCONF in /etc/src.conf lists three kernel configuration files, E5530, GENERIC, and ZFS, in that order. The former is the preferred kernel, while the other two simply exists to verify GENERIC and GENERIC + ZFS. /boot is a symlink to /bootpool/boot, and /bootpool is a 4 GiB UFS, yes, that's UFS, not ZFS. This system uses EFI, and uses the EFI/UFS boot1.efi bootstrap loader to load the kernel and its modules from the UFS partition, while loader.conf redirects the rootfs to a dataset on the ZFS pool. Consequently, I have: /boot/kernel <-- E5530 /boot/kernel.GENERIC <-- GENERIC /boot/kernel.ZFS <-- ZFS UPDATING has nothing on the subject, but maybe I'm blind after all. Is there a way to prevent installing the other kernels, i.e. GENERIC and ZFS? Maybe it's simply a matter of overriding KERNCONF at the command line while running make installkernel. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrest?l, | Trond Endrest?l, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gj?vik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+
Glen Barber
2016-Jan-06 13:28 UTC
Multiple kernels installed when KERNCONF lists more than one kernel configuration file
On Wed, Jan 06, 2016 at 01:45:39PM +0100, Trond Endrest?l wrote:> Hi, > > I'm running stable/10, amd64, r293231, and KERNCONF in /etc/src.conf > lists three kernel configuration files, E5530, GENERIC, and ZFS, in > that order. > > The former is the preferred kernel, while the other two simply exists > to verify GENERIC and GENERIC + ZFS. > > /boot is a symlink to /bootpool/boot, and /bootpool is a 4 GiB UFS, > yes, that's UFS, not ZFS. > > This system uses EFI, and uses the EFI/UFS boot1.efi bootstrap loader > to load the kernel and its modules from the UFS partition, while > loader.conf redirects the rootfs to a dataset on the ZFS pool. > > Consequently, I have: > > /boot/kernel <-- E5530 > /boot/kernel.GENERIC <-- GENERIC > /boot/kernel.ZFS <-- ZFS > > UPDATING has nothing on the subject, but maybe I'm blind after all. > > Is there a way to prevent installing the other kernels, i.e. GENERIC > and ZFS? > > Maybe it's simply a matter of overriding KERNCONF at the command line > while running make installkernel. >You should be able to set INSTALLKERNEL in make.conf, however something appears to have been broken, since this should not be required. Glen -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20160106/0e9802ff/attachment.sig>
Gleb Smirnoff
2016-Jan-06 18:16 UTC
Multiple kernels installed when KERNCONF lists more than one kernel configuration file
Trond, On Wed, Jan 06, 2016 at 01:45:39PM +0100, Trond Endrest?l wrote: T> I'm running stable/10, amd64, r293231, and KERNCONF in /etc/src.conf T> lists three kernel configuration files, E5530, GENERIC, and ZFS, in T> that order. T> T> The former is the preferred kernel, while the other two simply exists T> to verify GENERIC and GENERIC + ZFS. T> T> /boot is a symlink to /bootpool/boot, and /bootpool is a 4 GiB UFS, T> yes, that's UFS, not ZFS. T> T> This system uses EFI, and uses the EFI/UFS boot1.efi bootstrap loader T> to load the kernel and its modules from the UFS partition, while T> loader.conf redirects the rootfs to a dataset on the ZFS pool. T> T> Consequently, I have: T> T> /boot/kernel <-- E5530 T> /boot/kernel.GENERIC <-- GENERIC T> /boot/kernel.ZFS <-- ZFS T> T> UPDATING has nothing on the subject, but maybe I'm blind after all. T> T> Is there a way to prevent installing the other kernels, i.e. GENERIC T> and ZFS? T> T> Maybe it's simply a matter of overriding KERNCONF at the command line T> while running make installkernel. My fault. The change I did in head is that "kernels built" == "kernels installed". The naming for alternative kernel directories is the same as in a release build. And looks like everyone was happy with that in head. I assumed the scenario for multiple kernels is possibility to quickly reboot into alternative kernel. Now after your email and chatting with David, I see that another scenaruio is a buildbox that builds kernels for multiple machines, and installs the first one for itself. What I am going to do now is to provide another knob (INSTALLKERNEL probably) that will allow to override behaviour of "kernels built" == "kernels installed". And put it in head. For stable/10 I will restore the original behaviour. -- Totus tuus, Glebius.
Gleb Smirnoff
2016-Jan-06 21:26 UTC
Multiple kernels installed when KERNCONF lists more than one kernel configuration file
Trond & David, can you please test the attached patch. It is against stable/10 and should restore original behaviour. -- Totus tuus, Glebius. -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.inc1.diff Type: text/x-diff Size: 2031 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20160106/9f35f71c/attachment.diff>