From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QKUdLy8CzWWXQgEA62LTzQ:P1 (envelope-from ) for ; Wed, 14 Feb 2024 19:10:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QKUdLy8CzWWXQgEA62LTzQ (envelope-from ) for ; Wed, 14 Feb 2024 19:10:55 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=h3uEiUVA; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707934255; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MiYGRqQZoLI9G/BxOZVbcRjoLbghMb6B76XYwr86Adc=; b=pP2d3NkO13VwszSzYUqhkbElmLU4ad9SeFnX5RAd+0qEDgUvq6bkeM6TTy7NakFwEVCzyi t8KxVFOK9Cg8DHQaf8GK4y2PrCZXN1HpHctqGI/QiwA4Sm+arhcyUw0tU6Xt3T/B3quZch qtbkfxezxR2bfn9NgGlPuMUzntdp7GM+GNvsW2Eq4qmQrD+pk6kF3/KGP+hqGlejZd2naB PDVP9q9b+DaLVQIBdC9uMt4pJHkC1ezI6ZhlOzvMj1+ENnVNSS1lTPsOBhZUzP7L4+So9l D1YRbpRNvSgUBUoHsY2p+kyLCeqqpIDTvFwFCDONziyhQG4+YOj2nqTBKo3Gxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=h3uEiUVA; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707934255; a=rsa-sha256; cv=none; b=VOtNlVkS/YNPOnRO/JXhaxK9H+MkoN38g2qdBnW8dK3G52lDy4/43kq0ZighHIk+LzE3UH oJw1QZQl/G+n8ePAWGfzjaSMRABk1PS+PXP2p4djNFuAt1f/vCJliI7Kkh7LqnjRcidq+G tmWhcx85QD3xJtNWFvUDv00ms8IvTjkmTTAdq/Nh+UdjYy5CFqpeQKOQ6SmgMsiBulFPum P5P3BUm4+ceq077evhXM0gZ5UsFiEVlj+rXlsNCE1pfalwfYJa8sB3tQKvPBO5/B3DY3KS k5sarz/wQArLmFp8ihjnXobtC6bIammpCWSlFyf1aTxdKmmaqwexqH8p/d8HUA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AE69CB09D for ; Wed, 14 Feb 2024 19:10:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raJiY-0004es-4S; Wed, 14 Feb 2024 13:10:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1raJiV-0004dx-Rw for guix-patches@gnu.org; Wed, 14 Feb 2024 13:10:44 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raJiV-0001Xc-Ja for guix-patches@gnu.org; Wed, 14 Feb 2024 13:10:43 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raJin-0007VW-Nr for guix-patches@gnu.org; Wed, 14 Feb 2024 13:11:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68524] [PATCH v2 2/2] gnu: bootloaders: Add uefi-uki-bootloader. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Feb 2024 18:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68524 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Lilah Tascheter Cc: Vagrant Cascadian , 68524@debbugs.gnu.org, Herman Rimm , Efraim Flashner Received: via spool by 68524-submit@debbugs.gnu.org id=B68524.170793424928838 (code B ref 68524); Wed, 14 Feb 2024 18:11:01 +0000 Received: (at 68524) by debbugs.gnu.org; 14 Feb 2024 18:10:49 +0000 Received: from localhost ([127.0.0.1]:53015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raJib-0007V4-4v for submit@debbugs.gnu.org; Wed, 14 Feb 2024 13:10:49 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:48088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raJiY-0007Ut-OY for 68524@debbugs.gnu.org; Wed, 14 Feb 2024 13:10:47 -0500 Date: Thu, 15 Feb 2024 02:02:19 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1707934138; 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=MiYGRqQZoLI9G/BxOZVbcRjoLbghMb6B76XYwr86Adc=; b=h3uEiUVAZ+OYv28z7DRRlysSqHG//MAtYFdkP/ZUItXsAHA+/6VcY8nSL/jkYtEx6Oi4Ji jvT7aU61QCGVHzTNA5Z/CGZR1kfbxhQMRxO+f7T0v+kJyhKCPAkydza8R9fHa26HFeWUlW vv1vpSaPVFn/HdsI4Jc8m5Bs0ezfKA/6G27AxNH7N7Hino+NcBJ2oNI98eHyJSybOKWCzR 7QSaPSyXTkcqtkh1xEUHGA7ESIMxOAmT2Rc3686z/7/CJbO8aYCpKZJ8eO5uKBiwyTXD2p Ql95cjUfE+l30jtgBRdmQAd78MTNvnbBKMENRbjlSAur/IpHGjidAhqvLdns/Q== Message-ID: <87r0hegc0k.wl-hako@ultrarare.space> In-Reply-To: <8ab5d0bc36ced87463e0e64ca367266c80bd633d.camel@lunabee.space> References: <22f2967a552454baade056c60a37c02e36a048a5.1706435500.git.lilah@lunabee.space> <87a5o6n8v9.wl-hako@ultrarare.space> <05032c80273155fb72fad87d3fedb36fa73c9a28.camel@lunabee.space> <8ab5d0bc36ced87463e0e64ca367266c80bd633d.camel@lunabee.space> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.11 X-Spam-Score: -5.11 X-Migadu-Queue-Id: AE69CB09D X-TUID: 1Ygx7hY9oxgl Hi Lilah, On Tue, 13 Feb 2024 15:34:55 +0800, Lilah Tascheter wrote: > > > * add secure-boot-cert and secure-boot-key fields to bootloader- > > configuration. How about using a pair instead of two fields? And because the usage depend= s on the bootlodaer, I'd like to use a generic name. e.g. signing-keypair =3D> '("/path/to/certificate" . "/path/to/private.key") > > * deprecate configuration-file and configuration-file-generator in > > the bootloader struct, and instead create an install-configuration-fi= le > > field, similar to install-bootloader. default procedure will be to do= the > > current install-boot-cfg (gnu build install) using the deprecated fie= lds. I'd prefer =A1configuration-installer=A2, since the installation target may= not be a file. :) I don't think the deprecation is necessary though, other bootloaders don't = have to duplicate this part of code, and in my opinion the following definition = does make sense. --8<---------------cut here---------------start------------->8--- (define uefi-uki-bootloader (bootloader (name 'uefi-uki) (package systemd-stub) (installer install-uefi-uki) (configuration-installer install-uefi-uki-configuration) (configuration-file #f) (configuration-file-generator #f))) --8<---------------cut here---------------end--------------->8--- > > * rework uki.scm to, instead, run efibootmgr in install- > > configuration-file and install the uki.efi files in install-bootloade= r. > > remove the separation between uefi-uki-signed-bootloader and > > uefi-uki-bootloader, instead working off the new bootloader-configura= tion > > fields. > > amending: also edit the bootloader-installer and bootloader-disk-image-in= staller > procedures to provide the bootloader-configuration in some manner. I agree that needs modifying, since unified kernel images curr= ently cannot be well described. And to support proper generation switching, some fields of need exposing. As this now involves deeper change, I think it's better to post the plan on guix-devel@gnu.org for wider visibility and potential discussions. Thanks