From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mFO3B64Op1/iOwAA0tVLHw (envelope-from ) for ; Sat, 07 Nov 2020 21:16:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UCaaA64Op1/fZgAAB5/wlQ (envelope-from ) for ; Sat, 07 Nov 2020 21:16:30 +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 B778794011C for ; Sat, 7 Nov 2020 21:16:29 +0000 (UTC) Received: from localhost ([::1]:44118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbVZS-0004WZ-VE for larch@yhetil.org; Sat, 07 Nov 2020 16:16:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbVZ4-0004WC-IN for guix-patches@gnu.org; Sat, 07 Nov 2020 16:16:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbVZ4-0002l6-8E for guix-patches@gnu.org; Sat, 07 Nov 2020 16:16:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kbVZ4-0000mZ-3I for guix-patches@gnu.org; Sat, 07 Nov 2020 16:16:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#41066] [PATCH] gnu: bootloader: Support for chain loading. Resent-From: Stefan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 Nov 2020 21:16: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 , 41066@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe Received: via spool by 41066-submit@debbugs.gnu.org id=B41066.16047837152950 (code B ref 41066); Sat, 07 Nov 2020 21:16:02 +0000 Received: (at 41066) by debbugs.gnu.org; 7 Nov 2020 21:15:15 +0000 Received: from localhost ([127.0.0.1]:59333 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbVYJ-0000lV-84 for submit@debbugs.gnu.org; Sat, 07 Nov 2020 16:15:15 -0500 Received: from vsmx011.vodafonemail.xion.oxcs.net ([153.92.174.89]:40565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbVYH-0000lI-Lb for 41066@debbugs.gnu.org; Sat, 07 Nov 2020 16:15:14 -0500 Received: from vsmx003.vodafonemail.xion.oxcs.net (unknown [192.168.75.197]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id 8047859D0AB; Sat, 7 Nov 2020 21:15:07 +0000 (UTC) Received: from macbook-pro.kuh-wiese.my-router.de (unknown [2.206.141.249]) by mta-7-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 8F12D539A08; Sat, 7 Nov 2020 21:14:58 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) From: Stefan In-Reply-To: <871rhaiy5b.fsf@gmail.com> Date: Sat, 7 Nov 2020 22:14:57 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <406E80FD-A5E2-4DB5-AC9C-809B1285F775@vodafonemail.de> 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> <4FACB9F5-2A1E-45B5-A53F-42F0E098CEAA@vodafonemail.de> <0DCDD4B0-DC4B-4870-B018-D771C509F9E5@vodafonemail.de> <20201102164224.6f745693@scratchpost.org> <87a6vzbuh8.fsf@gmail.com> <87lffihkq0.fsf@gnu.org> <871rhaiy5b.fsf@gmail.com> X-Mailer: Apple Mail (2.3124) X-VADE-STATUS: LEGIT X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) 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: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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.99 X-TUID: haeoevNXWuav Hi! I did some more improvements to my previous patch. Before copying files, it makes sense to check if the bootloader target = is actually a directory. Also there is the convention for bootloader = installer to check e.g. /mnt/boot/efi for existence and to prefer it = over /boot/efi. If someone implements an own installer procedure, then that installer = gets the bootloader profile passed and may handle the files collection = already, in which case copying them afterwards into the target directory = is not wanted any more. So I added a #:copy-files? option to prevent = copying files, but defaulting to #t. For the generation of a profile a list of hooks is expected. I changed = the #:hook option to be a #:hooks option and allow a single procedure = and a list of procedures. Sch=C3=BCss Stefan=