Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 2016 06:07:24 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        Glen Barber <gjb@FreeBSD.org>
Cc:        FreeBSD stable <freebsd-stable@freebsd.org>
Subject:   Re: Multiple kernels installed when KERNCONF lists more than one kernel configuration file
Message-ID:  <20160106140724.GW2781@albert.catwhisker.org>
In-Reply-To: <20160106134322.GH26378@FreeBSD.org>
References:  <alpine.BSF.2.20.1601061322110.65744@mail.fig.ol.no> <20160106132833.GD26378@FreeBSD.org> <20160106133210.GE26378@FreeBSD.org> <20160106134015.GU2781@albert.catwhisker.org> <20160106134322.GH26378@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--ttZyFY8Q/ImP0sT1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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=20
> > > > > while running make installkernel.
> > > > >=20
> > > >=20
> > > > You should be able to set INSTALLKERNEL in make.conf, however somet=
hing
> > > > appears to have been broken, since this should not be required.
> > > >=20
> > >=20
> > > Sorry, I didn't see r293189 until just now, I was in the wrong direct=
ory
> > > when I updated my local sources.
> > >=20
> > > It seems we need a way to override this behavior, if the above
> > > suggestion does not work properly.
> > > ....
> >=20
> > 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).
> >=20
>=20
> Can you try specifying 'KERNCONF=3DFOO' 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=20
KERNCONF?=3DGENERIC ALBERT BATS
freebeast(10.2-S)[2]=20

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=3DGENERIC installkernel
--------------------------------------------------------------
>>> Installing kernel GENERIC
--------------------------------------------------------------
=2E..
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] =20

Thanks for your help!

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Those who would murder in the name of God or prophet are blasphemous coward=
s.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--ttZyFY8Q/ImP0sT1
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQF8BAEBCgBmBQJWjR+cXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix
NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4XvwMIANCAkc9B9c5gW1CZ/qmdZsz4
AWdyZDwUrbobOM5x5A94ZLegZ3iqxUPmJ5Ni1qj1dm8AODYPKJgR4K/f39tt/C6x
pY8QUpYm4bu0XwcvBPDo2xk4T/GSHba6BS0rxPEUQcpfiZ78mYmCNfrUILRXkFsO
VFnD62BPOhUT9rcGnlzATPXxAVW93SdPZoSOfu/LWJY0tzpjxZMmcOFJ+nDWfgnA
nB/qpCJvfznfK2/blmBVUNwx0TpOpZvVUYdyMmCRDF0MdDFrISODVoaSjGV+W1D8
nGAgULNx8oQiPy0nPFPnZH2Bw1VCZVcjrTS0glVMiltT7tMkFfrsTl0e7ZLuqos=
=KCIH
-----END PGP SIGNATURE-----

--ttZyFY8Q/ImP0sT1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160106140724.GW2781>