From nobody Thu Jul 29 18:43:18 2021 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DA4C112B8F6C for ; Thu, 29 Jul 2021 18:43:27 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mail.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GbKDH2Xjxz4SF5; Thu, 29 Jul 2021 18:43:27 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1627584199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5KjDKgMldiJiXqg0LGTkFCyENbh4SDuqlJN2Dh85iyM=; b=lPyWsBJPtWiM5rkpZ7iiUyWZXHLCh/vYZX50rf99JBpIuXZg7Zvp1Z5XKu3+qr7ukgWgYx eE7+J/EK/oayxxgTQg4CM6lPqIgfyxgt5A0kJBdv0qo31LuASUVfquXCcLXBODfzJY5z4E aV3tDmx0y/5FJKpGOexxxGB/C68F+2A= Received: from amy (lfbn-idf2-1-644-4.w86-247.abo.wanadoo.fr [86.247.100.4]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 305df10b (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 29 Jul 2021 18:43:19 +0000 (UTC) Date: Thu, 29 Jul 2021 20:43:18 +0200 From: Emmanuel Vadot To: Glen Barber Cc: Alan Somers , Miroslav Lachman <000.fbsd@quip.cz>, Juraj Lutter , FreeBSD CURRENT Subject: Re: Building multiple kernels with "make release" Message-Id: <20210729204318.97f009cafd90e44cba40d474@bidouilliste.com> In-Reply-To: <20210729001354.GO1648@FreeBSD.org> References: <20210728172650.GI1648@FreeBSD.org> <20210728172830.GJ1648@FreeBSD.org> <20210728173203.GK1648@FreeBSD.org> <20210728175657.GL1648@FreeBSD.org> <20210728183702.GM1648@FreeBSD.org> <20210729001354.GO1648@FreeBSD.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4GbKDH2Xjxz4SF5 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Thu, 29 Jul 2021 00:13:54 +0000 Glen Barber wrote: > On Wed, Jul 28, 2021 at 06:00:28PM -0600, Alan Somers wrote: > > On Wed, Jul 28, 2021 at 5:52 PM Miroslav Lachman <000.fbsd@quip.cz> wro= te: > >=20 > > > On 28/07/2021 20:46, Juraj Lutter wrote: > > > > > > > > > > > >> On 28 Jul 2021, at 20:37, Glen Barber wrote: > > > >> > > > >> On Wed, Jul 28, 2021 at 12:05:25PM -0600, Alan Somers wrote: > > > >>> On Wed, Jul 28, 2021 at 11:57 AM Glen Barber wr= ote: > > > >>>> Just on a hunch, could you try with adding INSTALLKERNEL=3D"${KE= RNEL}" > > > to > > > >>>> your release.conf? > > > >>>> > > > >>>> I now seem to recall some weirdness with this, but the exact det= ails > > > >>>> elude me at the moment. > > > >>>> > > > >>> > > > >>> Setting INSTALLKERNEL=3D"GENERIC-NODEBUG" during "make installke= rnel" > > > >>> overrides whatever KERNCONF was set to. But it still only instal= ls one > > > >>> kernel. Trying to set that variable to a list doesn't work. > > > >> > > > >> Ok. Give me a day or so to try to figure out what is (or isn't) > > > >> happening here. I do not recall any recent-ish changes that would= have > > > >> caused this, and I am 95% certain it has worked in the past. > > > > > > > > According to Makefile.inc1: > > > > > > > > make installkernel KERNCONF=3D?KERN1 KERN2? > > > > > > > > should install KERN1 and KERN2. Similar goes for buildkernel. > > > > > > > > Or is there something I am missing? > > > > > > Does 'make installkernel KERNCONF=3D?KERN1 KERN2?' really install both > > > kernels? Under which names? > > > I have 3 kernels defined in KERNCONF in /etc/make.conf for years. 3 > > > kernels are built by "make buildkernel" but only one installed by "ma= ke > > > installkernel". > > > > > > To install other kernels I use: > > > > > > make installkernel KERNCONF=3DKERN2 KODIR=3D/boot/kernel.KERN2 > > > > > > make installkernel KERNCONF=3DKERN3 KODIR=3D/boot/kernel.KERN3 > > > > >=20 > > Miroslav is right. Despite the comment that Juraj found, "make > > installkernel" only installs the first kernel listed in KERNCONF. >=20 > Good find. I honestly thought this worked as expected versus as > written. In fact, I *thought* secondary, tertiary, etc. kernels were > installed as /boot/kernel.KERN2, /boot/kernel.KERN3 (using the example > above). You need to set NO_INSTALLEXTRAKERNELS=3Dno for that to happens (yes the variable name and double no sucks if anyone have a patch for that that would be awesome). > Although, I may be misremembering, and 'kernel.KERN2.txz' may be created > instead, although not installed/extracted. Though, we are going back at > least seven years, and I do not even remember what I had eaten for > dinner last night, so there's that... >=20 > Glen >=20 --=20 Emmanuel Vadot