From nobody Wed Jul 28 17:56:57 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 18A9D12B7D70 for ; Wed, 28 Jul 2021 17:57:00 +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 4GZhF76xNbz4f4j; Wed, 28 Jul 2021 17:56:59 +0000 (UTC) (envelope-from gjb@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1627495020; 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=k4BIyrHyPQcRxfQW1Cp9jPshfKG6vFkSaF4WRnWk66Y=; b=XP8eJasKSaw61JI6iJAHAPKDgsAl6AFLDhMl+oJ/M8QJYNyFwylrbO4FSWlrv8fuiYc6Ms 4QJWdif4Cb85HUZoH6ibCKJxlI99gii1srf+C5gQjrMEo+jcHSXdiuIC3c8gKdNmPyWTlv /Yjr8KiRb09YUnZ4xUlvrhQzhrXer9iHaGMktDr5vGymzyTVWXAI6TY/be3lt/MRKKUx7p OkGiVtbvBU/MWNlY2VESwdglCILAvx+V9lEnofEdv7QRXxkjx5dCLTGYhL9izwAno7xE4V pJktIRot0qxwRlB8SbrxUY1DrjQJlJZpwzinX+ASC6ozuBBWyzLSLcyurSQexA== 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 8116E16E36; Wed, 28 Jul 2021 17:56:59 +0000 (UTC) (envelope-from gjb@freebsd.org) Date: Wed, 28 Jul 2021 17:56:57 +0000 From: Glen Barber To: Alan Somers Cc: FreeBSD CURRENT Subject: Re: Building multiple kernels with "make release" Message-ID: <20210728175657.GL1648@FreeBSD.org> References: <20210728172650.GI1648@FreeBSD.org> <20210728172830.GJ1648@FreeBSD.org> <20210728173203.GK1648@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="UUMz/kfoogzZ9WLZ" Content-Disposition: inline In-Reply-To: <20210728173203.GK1648@FreeBSD.org> ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1627495020; 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=k4BIyrHyPQcRxfQW1Cp9jPshfKG6vFkSaF4WRnWk66Y=; b=kBUfUfS4nJE1QEGbbFwekOEzq9qsT7EjJFeZsHJ5D4D39vTM672CEg3RleySNZCTCbeg/J FXLyRilcz+hMVAXZ1qCDs8JlDhMHFyf8JyTm0i2+j30D+tcok1FrUFt6ASuYO2KYyZUZdR mdudN6KjFAZfJgcQl39FLSjhQx5p3ZC64o8aqwasN+ImJtLEn6+yO3FxwtqsJ4Z3YsnlXz Nydg+rWjresWfiBOGWK1ndxvC5PdnJ+OgUfwAu+VXysRMHT+63tmNBnSqMA+ZoriWivDWR z0jOLVSLucPk40HxbjJ69Lf+Gbv8MPWGJPmM7KLN1VSV/KcNM9/2BzeDyANOJA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1627495020; a=rsa-sha256; cv=none; b=x/S6U0nfInL9U6rzFfts5FWg78pWm81UmfUYLyjphi9nDTG81tH7Rhd+1OBdi5MtnG6nk/ ORCjZs3yaii9HFbVIsMj6Lc4BUNy7KghiOQXthKU1U7ML3Paj2jJp3SR80jydanMG0+cKj R0IkHn1P/fG9FC4ntSmbgsoTF31Ss4GgKG3Q9iytuypkgnqhGKmZDR5kUux1I4IGFS1crP OVqojW7QxNIimvCYEZ4qLUCkFV1zk6p2FbeOpI9uNSdqcIzRrbYZSliD//A3Cp/+vm3bcL R9enRCPWVU4xNo0lICKTWpyrmMP+YIf4WX/4CWyHNog1kgIMbCVO+RlmmAJW4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N --UUMz/kfoogzZ9WLZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 28, 2021 at 05:32:03PM +0000, Glen Barber wrote: > On Wed, Jul 28, 2021 at 11:30:44AM -0600, Alan Somers wrote: > > On Wed, Jul 28, 2021 at 11:28 AM Glen Barber wrote: > >=20 > > > On Wed, Jul 28, 2021 at 05:26:50PM +0000, Glen Barber wrote: > > > > On Wed, Jul 28, 2021 at 11:11:48AM -0600, Alan Somers wrote: > > > > > Is it possible to build multiple different kernels and include th= em > > > all in > > > > > a release image? release.conf says so. But from experiment, wha= t I > > > see is > > > > > that: > > > > > > > > > > * release.sh does pass both kernels in the KERNCONF variable to "= make > > > > > buildkernel" > > > > > * "make buildkernel" dutifully builds both > > > > > * BUT, "make installkernel" only installs the first kernel and ig= nores > > > the > > > > > rest > > > > > * Only the first kernel ends up in the final image > > > > > * It's not really clear where an alternate kernel should go, anyw= ay. > > > > > Probably someplace like /boot/kernel.debug , but release.conf doe= sn't > > > > > provide a way to specify that. > > > > > > > > > > So is the "multiple kernels in release.conf" feature unfinished? = If > > > so, > > > > > does anybody have a good idea about the best way to finish it? > > > > > > > > > > > > > https://github.com/freebsd/freebsd-src/blob/7045b1603bdf054145dd958a4= acc17b410fb62a0/release/release.conf.sample#L32 > > > > > > > > > > > > > Last I was aware, based on a patch sent to me privately, I believe,= it > > > > should work. > > > > > > > > Let me take a look. > > > > > > > > > > Oh, wait. Are you using 'make release' or release/release.sh? > > > > >=20 > > I'm using release.sh. I thought that was just a wrapper for "make > > release". >=20 > It is, I just want to make sure I'm looking in the right place(s). >=20 Just on a hunch, could you try with adding INSTALLKERNEL=3D"${KERNEL}" to your release.conf? I now seem to recall some weirdness with this, but the exact details elude me at the moment. Glen --UUMz/kfoogzZ9WLZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjRJAPC5sqwhs9k2jAxRYpUeP4pMFAmEBmmkACgkQAxRYpUeP 4pPX2Q//btJsc7pI7M6qU9fFgyotzkrMTc5KXrJ4oLYqOasAn2FejQoubrGZd8Dd KaK11Oas1gtPqeqg2whFEgkmx1rOcnz4OkTYg560wdTQlnbT2e+Yc7YAwrtL2ytM k0veryBT8IA9r6kg036CbGHz8+TCAP2yXDIs2Ou6aUvUvQYkp0IpeFFMywIliT6R go/U8YFWLAJ3MfJ826Jz2MriPsIv167dN05zcBKiK1+ahyhMU7vWxGu5H9lT5tM0 vmyh+sdtKUa4OvI8Upcpuw2HBANhmwZTsi4A/IIfY6TT/acnEVsh4pVlyw3kf1Dn KMUK0VtNauJqGCeHtHnNXinkDnngUXvJWwTdTh06ocWT/3rdJe3WVxc54lfJRaeo P2VSDQQpfkbLkm8jDMX0ogV4JiLmwFyoAGweJBjv2TkRLWaI0YRWNFeWuZZ78Wfm 8iWBoH51py1I3BPmh+grfi5MtfKYEPgLA+lFDMHS+PFI0p6MvbiLOztc7AviYsGz 2Fio4y26b5N+R7MU9Mf5w5wzdMpQVs9fIiElouVnpkrb3Ckr/ngOU4nKZpZAQwuy gkgxhsF6LAP6ChiFJkPw7s+t4KdLSrIMjpIrRjem4nLJFds1qi8Dn7lVVhQtbJ2f E9Pk0jLmOC52b0ENLVKCukea2uE4fJ4vg53bC/47RRajWR6D1YQ= =CXCV -----END PGP SIGNATURE----- --UUMz/kfoogzZ9WLZ--