From owner-freebsd-stable@freebsd.org Wed Jan 6 18:17:25 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 990CEA65465 for ; Wed, 6 Jan 2016 18:17:25 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (glebi.us [96.95.210.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebi.us", Issuer "cell.glebi.us" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D60D31B3C for ; Wed, 6 Jan 2016 18:17:24 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebi.us (localhost [127.0.0.1]) by cell.glebi.us (8.15.2/8.15.2) with ESMTPS id u06IG6ti015245 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 6 Jan 2016 10:16:06 -0800 (PST) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebi.us (8.15.2/8.15.2/Submit) id u06IG511015244; Wed, 6 Jan 2016 10:16:05 -0800 (PST) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebi.us: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 6 Jan 2016 10:16:05 -0800 From: Gleb Smirnoff To: Trond =?iso-8859-1?Q?Endrest=F8l?= Cc: FreeBSD stable Subject: Re: Multiple kernels installed when KERNCONF lists more than one kernel configuration file Message-ID: <20160106181605.GY5169@FreeBSD.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jan 2016 18:17:25 -0000 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.