Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 2016 14:10:10 +0000
From:      Glen Barber <gjb@FreeBSD.org>
To:        David Wolfskill <david@catwhisker.org>
Cc:        FreeBSD stable <freebsd-stable@freebsd.org>, Trond =?iso-8859-1?Q?Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
Subject:   Re: Multiple kernels installed when KERNCONF lists more than one kernel configuration file
Message-ID:  <20160106141010.GA35094@FreeBSD.org>
In-Reply-To: <20160106140724.GW2781@albert.catwhisker.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> <20160106140724.GW2781@albert.catwhisker.org>

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

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

On Wed, Jan 06, 2016 at 06:07:24AM -0800, David Wolfskill wrote:
> 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 comman=
d line=20
> > > > > > while running make installkernel.
> > > > > >=20
> > > > >=20
> > > > > You should be able to set INSTALLKERNEL in make.conf, however som=
ething
> > > > > 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 dire=
ctory
> > > > 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.
> > ....
>=20
> Sure; as expected, that's effective (in constraining the set f installed
> kernels to the one):
>=20
> 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
>=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.)
>=20
> 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
> --------------------------------------------------------------
> ...
> 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
>=20
> Thanks for your help!
>=20

Thank you for testing and confirming.  We'll look into this further.

Trond, thank you for reporting.

Glen


--6c2NcOVqGQ03X4Wi
Content-Type: application/pgp-signature; name="signature.asc"

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

iQIcBAEBCAAGBQJWjSBCAAoJEAMUWKVHj+KT1EwP/iuhosPUCSXkLlfiJiFuK2Y9
XosotW2qE+5/RWL+GnrzVN4dLYgKClDDh1WwAaEPy4WDT1y2V/uJOtD16ZLDKZaW
nNQqp2SgYQLdNmba6BhGojf4BEvpYZWJwXtI2M7AQyoIo4Ia4hmROZkxU7584C/q
PaGiw4peczA0vhgOn4/wgFs+QX0tXlONrOxUcdKSxDgzIuAMzPuZ0m5oN59vu/Q9
cfyznPKC+WTUC9V0y4vtMmL4lum6i1HSMc+94Ra/BygB15MUv+eWA3J1vfd5PVVb
ywoEHG/fsA/0sbPIbZKkgkmyCPU6VANy4PO98eoNnJZNqzz5n0UdR4Y/M8AFf82u
izjSAKD5UTokAdq4Gq+bYMIrXYAlF2HwJbTGZ/kFh1OVAx+H9B6pT0yeY7cbLf5G
H6KY1ddx8Sjhz4uvW8FEpGVHqmu1eaf29PSxbYJ2bOL8rUILxEJ5nPME+O8CacVr
ex0RHer2GxgqwsHC3WHh9W/B8/KlwyFWcSGXRdSwhfbCryHXfb/gq0slspJv33vF
haYpYtt8SEtpw5nmMNVJPFcLj0xPT4Uxt7ip9T/jCrxcVqhyJNQPZnqBRNs4lb08
tAnHEQ+xiVqifNppYeYe3+BXLM+NaAr93pQRSo6ShJtB7HdUhBC6lZNhi7j8jffR
Ewa9CChFMEoxDyo5r87O
=aI8j
-----END PGP SIGNATURE-----

--6c2NcOVqGQ03X4Wi--



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