From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wPNLGUenll/TcwAA0tVLHw (envelope-from ) for ; Mon, 26 Oct 2020 10:39:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id nxsdFUenll/wKAAA1q6Kng (envelope-from ) for ; Mon, 26 Oct 2020 10:39:03 +0000 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 E843094043B for ; Mon, 26 Oct 2020 10:39:02 +0000 (UTC) Received: from localhost ([::1]:44564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWzu1-0002t3-Rg for larch@yhetil.org; Mon, 26 Oct 2020 06:39:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWzt4-0001QC-KO for guix-patches@gnu.org; Mon, 26 Oct 2020 06:38:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55252) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kWzt4-0000v3-5w for guix-patches@gnu.org; Mon, 26 Oct 2020 06:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kWzt4-0004Eh-3T for guix-patches@gnu.org; Mon, 26 Oct 2020 06:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41066] [PATCH] gnu: bootloader: Support for chain loading. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 26 Oct 2020 10:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41066 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Danny Milosavljevic Cc: Stefan , Mathieu Othacehe , 41066@debbugs.gnu.org, Efraim Flashner , Maxim Cournoyer Received: via spool by 41066-submit@debbugs.gnu.org id=B41066.160370867016264 (code B ref 41066); Mon, 26 Oct 2020 10:38:02 +0000 Received: (at 41066) by debbugs.gnu.org; 26 Oct 2020 10:37:50 +0000 Received: from localhost ([127.0.0.1]:38565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWzss-0004EF-GN for submit@debbugs.gnu.org; Mon, 26 Oct 2020 06:37:50 -0400 Received: from eggs.gnu.org ([209.51.188.92]:45904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWzsr-0004E3-HU for 41066@debbugs.gnu.org; Mon, 26 Oct 2020 06:37:49 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51867) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWzsj-0000mx-Qa; Mon, 26 Oct 2020 06:37:42 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=60778 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kWzsh-0005My-NI; Mon, 26 Oct 2020 06:37:41 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <7A4ABEA8-4500-4D55-BCCE-BFB37FB06B2C@vodafonemail.de> <20200524131316.4c6e8a50@scratchpost.org> <3197004D-0131-4781-99FD-60EBE434E794@vodafonemail.de> <023CBBED-35CD-4AD3-97C4-0DE0B7623B9A@vodafonemail.de> <6E5ECFBA-57F4-485F-9403-1D04CF82062D@vodafonemail.de> <4D71A75A-5722-457C-A5CE-98CE51A53450@vodafonemail.de> <975EC414-6A81-444B-9BB0-AE303C6A9511@vodafonemail.de> <20201022194630.597302a2@scratchpost.org> <87eelpp0pn.fsf@gnu.org> <20201024033051.00720ac1@scratchpost.org> <87a6wbiofb.fsf@gnu.org> <20201025023345.73d515d2@scratchpost.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 5 Brumaire an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 26 Oct 2020 11:37:37 +0100 In-Reply-To: <20201025023345.73d515d2@scratchpost.org> (Danny Milosavljevic's message of "Sun, 25 Oct 2020 02:33:45 +0200") Message-ID: <87h7qhclxq.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: KtV1O6MpiEjU Hi, Danny Milosavljevic skribis: >> Sorry, I don=E2=80=99t see why this prevents an API that more closely ma= tches >> the idea of a chain of bootloaders (but perhaps I=E2=80=99d just need to= spend >> more time studying this.) > > It doesn't prevent that API--but this narrow use case here doesn't need i= t. > > And I do not intend to implement the general use case--we all decided aga= inst > general chainloading and then introduced full support for bootloaders oth= er > than grub (which then do not chainload grub--they totally could have!). > > But this use case with lots of bootloaders on an ESP partition (or Raspbe= rry Pi > equivalent) is easy enough. Maybe we should change the name of the main > procedure to be less general, though. "chain-esp-bootloaders" ? > > If you could check it out more, that would help. I think how the patch is > now is fine for the narrow use case: chainloading the normal guix bootloa= der > using other bootloaders (or whatever else! Maybe a turtle is loading the= final > guix bootloader--who knows ;) ). > > The code here can only chain bootloaders in the ESP partition (actually, = the > Raspberry Pi equivalent of the latter). Oh got it, I thought it was about bootloader chaining =E2=80=9Cin general= =E2=80=9D, apologies for the confusion! > From the patch: > >>+(define (bootloader-profile packages package-contents files) >>[...] >>+ (profile (content (packages->manifest packages)) >>+ (name "bootloader-profile") >>+ (hooks (list bootloader-collection)) >>+ (locales? #f) >>+ (allow-collisions? #f) >>+ (relative-symlinks? #f))) > > Maybe I don't understand what you mean... but that "profile" is from > (guix profiles). Oops, you=E2=80=99re right; my bad! > In any case, maybe we should just call it "esp-bootloader-chain" or > maybe just "raspberry-pi-bootloader-chain". Yes, maybe that=E2=80=99d be clearer (perhaps the former, unless there=E2= =80=99s something really RPi-specific). Thanks, Ludo=E2=80=99.