From nobody Wed Jul 28 18:05:25 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 C9B7412BB9A4 for ; Wed, 28 Jul 2021 18:05:43 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GZhRC4yg0z4j0f; Wed, 28 Jul 2021 18:05:43 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-ot1-f48.google.com with SMTP id 68-20020a9d0f4a0000b02904b1f1d7c5f4so2973960ott.9; Wed, 28 Jul 2021 11:05:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+gL/q3OojU+wSx6ymzB/yBaykKPFlQLZy+d5vxNsk10=; b=kadRzBi4uxp9Yed4+hEV0tsEB3ndl2xM4aK1ZEf+fliXiUqdmTFJcfFq6+YL1uD6sT QqTeIMFTn0SMWHHdNspYd8vLgBs719IE8e7K3Hng1lDRwp+yirAraGqCYEDjsBHl/sz3 t8PvXkqSQAzuDdSOQZsNsVQ2jMeZ88CRGj39Z2Ijuy5Raxrn+6T6D6wUkrHMELg3zUJT podS7bfuSy3aSbm1LoRVq+nHaYRJLmlcUxBeHjp/7a243qMcYVstiXjZhsNpYWgdfW5/ AJqJMHrHUaR87KEV1Mn6p2UienupMEm8/e+4uG2jYlu91P8rfzUFzyI0Z6SEa141E9+H oKaA== X-Gm-Message-State: AOAM530xQbpVYXkl9Ec/lYYNZyEmtMgLMf9ZT7Gu36Z1T5l4oH2Gmv3l ZsblNhYGM0wSusVjoCFBKsKaG3h0WTHx+yZ6iAY++V1E+Eo= X-Google-Smtp-Source: ABdhPJyAI1g+/lozRzpGrc5NiziH73dz2RBBIbei4oENz2K/gk2qlOO1r+T+7Q7oN4hU3fBid8YjQlAcJDu9IR4WXH8= X-Received: by 2002:a9d:d04:: with SMTP id 4mr912585oti.251.1627495536548; Wed, 28 Jul 2021 11:05:36 -0700 (PDT) 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 References: <20210728172650.GI1648@FreeBSD.org> <20210728172830.GJ1648@FreeBSD.org> <20210728173203.GK1648@FreeBSD.org> <20210728175657.GL1648@FreeBSD.org> In-Reply-To: <20210728175657.GL1648@FreeBSD.org> From: Alan Somers Date: Wed, 28 Jul 2021 12:05:25 -0600 Message-ID: Subject: Re: Building multiple kernels with "make release" To: Glen Barber Cc: FreeBSD CURRENT Content-Type: multipart/alternative; boundary="000000000000545ecf05c832d596" X-Rspamd-Queue-Id: 4GZhRC4yg0z4j0f X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Spam: Yes X-ThisMailContainsUnwantedMimeParts: Y --000000000000545ecf05c832d596 Content-Type: text/plain; charset="UTF-8" On Wed, Jul 28, 2021 at 11:57 AM Glen Barber wrote: > 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: > > > > > > > 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 > them > > > > all in > > > > > > a release image? release.conf says so. But from experiment, > what 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 > ignores > > > > the > > > > > > rest > > > > > > * Only the first kernel ends up in the final image > > > > > > * It's not really clear where an alternate kernel should go, > anyway. > > > > > > Probably someplace like /boot/kernel.debug , but release.conf > doesn'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/7045b1603bdf054145dd958a4acc17b410fb62a0/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? > > > > > > > > > > I'm using release.sh. I thought that was just a wrapper for "make > > > release". > > > > It is, I just want to make sure I'm looking in the right place(s). > > > > Just on a hunch, could you try with adding INSTALLKERNEL="${KERNEL}" to > your release.conf? > > I now seem to recall some weirdness with this, but the exact details > elude me at the moment. > > Glen > Setting INSTALLKERNEL="GENERIC-NODEBUG" during "make installkernel" overrides whatever KERNCONF was set to. But it still only installs one kernel. Trying to set that variable to a list doesn't work. -Alan --000000000000545ecf05c832d596--