Glen Barber
2016-Jan-06 13:43 UTC
Multiple kernels installed when KERNCONF lists more than one kernel configuration file
On Wed, Jan 06, 2016 at 05:40:15AM -0800, David Wolfskill wrote:> On Wed, Jan 06, 2016 at 01:32:10PM +0000, Glen Barber wrote: > > ... > > > > 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. > > > > > > > Sorry, I didn't see r293189 until just now, I was in the wrong directory > > when I updated my local sources. > > > > It seems we need a way to override this behavior, if the above > > suggestion does not work properly. > > .... > > Agreed. I'm happy to test -- I was a bit surprised to find unexpected > kernels being installed on my build machine's 2GB root file system (as > one of the unwanted installs failed for lack of space). >Can you try specifying 'KERNCONF=FOO' on the command line during installkernel, as Trond inquired about? I have an idea of a way to override this, but I want to talk with Gleb first. 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/93716a1b/attachment.sig>
David Wolfskill
2016-Jan-06 14:07 UTC
Multiple kernels installed when KERNCONF lists more than one kernel configuration file
On Wed, Jan 06, 2016 at 01:43:22PM +0000, Glen Barber wrote:> On Wed, Jan 06, 2016 at 05:40:15AM -0800, David Wolfskill wrote: > > On Wed, Jan 06, 2016 at 01:32:10PM +0000, Glen Barber wrote: > > > ... > > > > > 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. > > > > > > > > > > Sorry, I didn't see r293189 until just now, I was in the wrong directory > > > when I updated my local sources. > > > > > > It seems we need a way to override this behavior, if the above > > > suggestion does not work properly. > > > .... > > > > Agreed. I'm happy to test -- I was a bit surprised to find unexpected > > kernels being installed on my build machine's 2GB root file system (as > > one of the unwanted installs failed for lack of space). > > > > Can you try specifying 'KERNCONF=FOO' on the command line during > installkernel, as Trond inquired about? I have an idea of a way to > override this, but I want to talk with Gleb first. > ....Sure; as expected, that's effective (in constraining the set f installed kernels to the one): My /etc/src.conf reads: freebeast(10.2-S)[1] cat /etc/src.conf KERNCONF?=GENERIC ALBERT BATS freebeast(10.2-S)[2] And historic (and expected) behavior is that kernels GENERIC, ALBERT, and BATS would be built (in that sequence), but only the first (GENERIC, in this case) would be installed. (I install the others on their respective machines via processes on those machines -- where the /etc/src.conf on each of those machines specifies which kernel gets installed on it -- those machines don't (and can't) build.) Script started, output file is s3 freebeast(10.2-S)[1] ls -ldT /boot/kernel* drwxr-xr-x 2 root wheel 40960 Jan 6 04:41:43 2016 /boot/kernel drwxr-xr-x 2 root wheel 40960 Jan 6 04:41:53 2016 /boot/kernel.ALBERT drwxr-xr-x 2 root wheel 40960 Jan 6 04:42:03 2016 /boot/kernel.BATS drwxr-xr-x 2 root wheel 40960 Jan 5 04:24:07 2016 /boot/kernel.old drwxr-xr-x 2 root wheel 41984 Apr 18 05:53:27 2015 /boot/kernel.save freebeast(10.2-S)[2] rm -fr /boot/kernel.[A-Z]* freebeast(10.2-S)[3] !ls ls -ldT /boot/kernel* drwxr-xr-x 2 root wheel 40960 Jan 6 04:41:43 2016 /boot/kernel drwxr-xr-x 2 root wheel 40960 Jan 5 04:24:07 2016 /boot/kernel.old drwxr-xr-x 2 root wheel 41984 Apr 18 05:53:27 2015 /boot/kernel.save freebeast(10.2-S)[4] cd /usr/src freebeast(10.2-S)[5] make KERNCONF=GENERIC installkernel -------------------------------------------------------------->>> Installing kernel GENERIC-------------------------------------------------------------- ... install -o root -g wheel -m 555 iscsi_initiator.ko.symbols /boot/kernel kldxref /boot/kernel freebeast(10.2-S)[6] !ls ls -ldT /boot/kernel* drwxr-xr-x 2 root wheel 40960 Jan 6 05:54:55 2016 /boot/kernel drwxr-xr-x 2 root wheel 40960 Jan 6 04:41:43 2016 /boot/kernel.old drwxr-xr-x 2 root wheel 41984 Apr 18 05:53:27 2015 /boot/kernel.save freebeast(10.2-S)[7] Thanks for your help! Peace, david -- David H. Wolfskill david at catwhisker.org Those who would murder in the name of God or prophet are blasphemous cowards. See http://www.catwhisker.org/~david/publickey.gpg for my public key. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 603 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20160106/377834f0/attachment.sig>