From nobody Thu Jul 29 00:13:54 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 1448912D4BF6 for ; Thu, 29 Jul 2021 00:13:57 +0000 (UTC) (envelope-from gjb@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (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 (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GZrc46yMdz4Wd8; Thu, 29 Jul 2021 00:13:56 +0000 (UTC) (envelope-from gjb@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1627517637; 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: in-reply-to:in-reply-to:references:references; bh=X/KUhxPhfnvcMjLUyGInovZRexmcPCVW0LZfcEk7Vvk=; b=PWpzyDrRPXMKBtx4yiHAOntHQI/baF/ml/bgpDmvYK2DNi3XJ8FJ4Jgo2HR8tKjUNF1Xjn U7VmvDzO0PLiasi0ZilA4uSqiwOoJmMiUrq0pC29U2tuPnOE9a2giPzeY83R+/81cUtrwo pU5C+Sbz6rl+RCQZT7Aqcia/RmAU2huwma7R7yLnufiF+5e1MnpvJnD9co29KAqf0ysZMU iVlVqoStTKXDTgmjC7RwfLKybSiD21wK+Q3gFHf6mRwZvDAugSANse4R6Qdio8/SYz0MQj 7rIdROpwem+nRdcRfe52/tBMbWhKwGyhVIldJQ7IN46xZOAp53MixwbUGQ5wPQ== Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id 856841862D; Thu, 29 Jul 2021 00:13:56 +0000 (UTC) (envelope-from gjb@freebsd.org) Date: Thu, 29 Jul 2021 00:13:54 +0000 From: Glen Barber To: Alan Somers Cc: Miroslav Lachman <000.fbsd@quip.cz>, Juraj Lutter , FreeBSD CURRENT Subject: Re: Building multiple kernels with "make release" Message-ID: <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> 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: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zxEKvxCKojqA/Afl" Content-Disposition: inline In-Reply-To: ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1627517637; 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: in-reply-to:in-reply-to:references:references; bh=X/KUhxPhfnvcMjLUyGInovZRexmcPCVW0LZfcEk7Vvk=; b=WVekktzPG6sBT+s3AN/om6exkDaouTJWopo9JXaYaF2b6K7rV/8tctZlJTx1TTLct0T5go RghLfvW0eVE2/FqS4YdC/z8A/053PpJjN8j6xvCO7R2juG/fq4UY7mc9llA2gxDcq5dJMw uBbPeXaZsQi9ZD8poLuwfczHFCIyxG0XixBRwywD5ZSvuGHex/zp1n4MSO8SM4x0ey2yO/ 5SRGpvMWCFZXVXaqkP4Zrmqebh2Ol44Hs5qE4/k+ks945WaNeBMAZToQIMJat18L80C1Vu lA0CibBIH0jwfUvFcSWVFCfR17tx8BDjqk+VOsI+02hPzteVrYK/JDNe83Ajjw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1627517637; a=rsa-sha256; cv=none; b=QDMEMrmHJOq/PDEckmSTzO9Dqci3Zm/jJWIXeLl6b+aJM5X/6bUxwgjLovOWxk2hfjxb1M jN1vFIqV8amY52PxwDNN7Ezna4jVhIJM8Va2gNnOWgIZf9a9AmBRcDGa2cFO49Gihgw82Z C7qZhGSgkpbq13Meg+VLlP6vZPPab4urpHkHpbMCzi3n6cX9PMWjJGX2Tu5XSOOThKjuSG bzR21b9pcxwnwDudHvmADGrraRGkxX73P0/EbDU78rBDEOdqsVdwWZ8fg6RBwj7ebjPIuH xeTtPQDm9rlMydJgNWwMld+ezhROPX1cRdxb/Wr1nH2wgYhIhtoNt0PN+Ew5sA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --zxEKvxCKojqA/Afl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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> wrote: >=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 wrot= e: > > >>>> Just on a hunch, could you try with adding INSTALLKERNEL=3D"${KERN= EL}" > > to > > >>>> your release.conf? > > >>>> > > >>>> I now seem to recall some weirdness with this, but the exact detai= ls > > >>>> elude me at the moment. > > >>>> > > >>> > > >>> Setting INSTALLKERNEL=3D"GENERIC-NODEBUG" during "make installkern= el" > > >>> overrides whatever KERNCONF was set to. But it still only installs= 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 h= ave > > >> caused this, and I am 95% certain it has worked in the past. > > > > > > According to Makefile.inc1: > > > > > > make installkernel KERNCONF=3D=E2=80=9CKERN1 KERN2=E2=80=9D > > > > > > should install KERN1 and KERN2. Similar goes for buildkernel. > > > > > > Or is there something I am missing? > > > > Does 'make installkernel KERNCONF=3D=E2=80=9CKERN1 KERN2=E2=80=9D' real= ly 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 "make > > 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. 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). 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... Glen --zxEKvxCKojqA/Afl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjRJAPC5sqwhs9k2jAxRYpUeP4pMFAmEB8rwACgkQAxRYpUeP 4pPLYw//dpHYFTtCit14YdqJ86MnTFlHesP9IZ/8PIEbyfPFjpKQe0PeVY3QlBtg k8gfFPGHiy2gzzTGNrnJ8b5fSVvQ0zp8SGqQnhjdSBaWNXyEvdq3VJoEIRZp5yu1 OyFOWpAFxx2jDdyQpPxDHLiLq/Ua4cbVLJPXaQE532d2nbqSNCb2f4a+/pwaLGuy BJspAb4OexE9tNIgW89oAjB1wAxCrjTz30rylE2ZrshSUmje9ytKm4sDHe8HK/et SWM+h5wx0OY0CCtsbL5PcU8h90qmsf1Uf0eWjZ7cIjI0zjgvFAYorzPcB276gaLb 8uHFOIZydL/WLjUtZ26/wl0w9Waya9jghcL3HvAnhqyLbwC9IcHraAJ3tT4+tjp5 X8zAE7OsYef9BJI6dRft2fCiJ0BaGFoBbTcjWadNsjNd1iFYS8h4qRFi56okxGdH nxqXSt9IGTOIIww8BiI5XA4c0yRmPnted8YFuuv4h18J7a1z562IALemTiixfRjt fHxyaPhPHUCokx9+ZopAOP7p324ZpIQ7zMGwnMj1YYKC6JRm+Rk9p7gs1/VjgCqf oBDmqyNzht8zlUbmItUEQLpFarOHc/P3x+ePL7Mt8mmf68XER9W0zo3wFavHaggK neOfZ3Jwc+s6h7V+avQHfID+LBUprNl84jNKqQQJPL0GGMhI6JU= =Y5Vr -----END PGP SIGNATURE----- --zxEKvxCKojqA/Afl--