From unknown Mon Aug 18 06:50:48 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64668 <64668@debbugs.gnu.org> To: bug#64668 <64668@debbugs.gnu.org> Subject: Status: [PATCH 0/1] Add grub-coreboot Reply-To: bug#64668 <64668@debbugs.gnu.org> Date: Mon, 18 Aug 2025 13:50:48 +0000 retitle 64668 [PATCH 0/1] Add grub-coreboot reassign 64668 guix-patches submitter 64668 Denis 'GNUtoo' Carikli severity 64668 normal tag 64668 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 16 12:50:05 2023 Received: (at submit) by debbugs.gnu.org; 16 Jul 2023 16:50:05 +0000 Received: from localhost ([127.0.0.1]:48452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qL4we-0001FD-Gh for submit@debbugs.gnu.org; Sun, 16 Jul 2023 12:50:05 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qL4wa-0001EO-3L for submit@debbugs.gnu.org; Sun, 16 Jul 2023 12:50:02 -0400 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 1qL4wU-0005A4-Hm for guix-patches@gnu.org; Sun, 16 Jul 2023 12:49:54 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1] helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qL4wS-00063l-9r for guix-patches@gnu.org; Sun, 16 Jul 2023 12:49:54 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 2dace947; Sun, 16 Jul 2023 16:49:47 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id dc4a3bab; Sun, 16 Jul 2023 16:49:47 +0000 (UTC) From: Denis 'GNUtoo' Carikli To: guix-patches@gnu.org Subject: [PATCH 0/1] Add grub-coreboot Date: Sun, 16 Jul 2023 18:49:31 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Debbugs-Cc: ( , Christopher Baines , Ludovic Courtès , Mathieu Othacehe , Raghav Gururajan , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice , jgart Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:910:1314:ffff::1; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Denis 'GNUtoo' Carikli X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Hi, In the following mail there will be a patch that adds grub-coreboot. The './pre-inst-env guix lint grub-coreboot' command shows some warnings: [...]/bootloaders.scm:301:2: grub-coreboot@2.06: label 'qemu' does not match package name 'qemu-minimal' [...]/bootloaders.scm:301:2: grub-coreboot@2.06: label 'gettext' does not match package name 'gettext-minimal' [...]/bootloaders.scm:301:2: grub-coreboot@2.06: file names of patches should start with the package name [...]/bootloaders.scm:301:2: grub-coreboot@2.06: probably vulnerable to CVE-2022-2601, CVE-2022-3775, CVE-2021-3981 [...]/bootloaders.scm:301:2: grub-coreboot@2.06: updater 'gnu' failed to find upstream releases but since this package is based on grub-coreboot, I guess that things should be fixed there instead. A standalone image was built with the following commands: modules="ahci at_keyboard cbfs ehci ext2 fat ohci part_gpt part_msdos \ pata uhci usb_keyboard usbms usbserial_usbdebug" install_modules="acpi ahci all_video archelp at_keyboard ata blocklist \ boot btrfs cat cbfs cbls cbls cbmemc cbmemc cbtime cbtime chain chain \ cmosdump cmostest cmp configfile configfile cpio cpuid crc64 crypto \ cryptodisk cs5536 date datehook datetime disk diskfilter div dm_nv echo \ echo ehci elf eval exfat ext2 extcmd fat file fshelp gcry_crc gcry_rfc2268 \ gcry_rijndael gcry_rsa gcry_seed gcry_serpent gcry_sha1 gcry_sha256 \ gcry_sha512 gcry_twofish gettext gfxmenu gfxterm_background gfxterm_menu \ gptsync gzio gzio halt halt hashsum hdparm help help hexdump hexdump iorw \ iorw iso9660 jpeg keylayouts keystatus ldm linux linux linux16 linux16 \ loadenv loopback ls ls lsacpi lsacpi lsmmap lsmmap lspci lspci luks lvm \ lzopio mda_text memdisk memrw memrw minicmd minicmd mmap morse mpi \ msdospart multiboot multiboot multiboot2 nativedisk newc nilfs2 normal \ normal odc offsetio ohci part_gpt part_msdos parttool password \ password_pbkdf2 password_pbkdf2 pata pbkdf2 pci pcidump pcidump pgp play \ priority_queue probe procfs progress random read reboot reboot regexp \ regexp relocator romfs scsi search search search_fs_file search_fs_uuid \ search_label serial serial setjmp setpci setpci sfs sleep spkmodem squash4 \ syslinuxcfg syslinuxcfg tar terminal terminfo test test testload testspeed \ time tr trig true udf uhci usb usb_keyboard usbms usbserial_common \ usbserial_ftdi usbserial_pl2303 usbserial_usbdebug video_colors videoinfo \ xnu xzio" "/gnu/store/[...]/bin/grub-mkstandalone" \ -O i386-coreboot \ -o grub_payload.elf \ --fonts= \ --themes= \ --locales= \ --modules="${modules}" \ --install-modules="${install_modules}" \ /boot/grub/grub.cfg=coreboot.cfg The coreboot.cfg file was taken from grub source code (GPLv3+) and consist of the following: if test -f (cbfsdisk)/etc/grub.cfg; then source (cbfsdisk)/etc/grub.cfg fi The resulting image was tested on a Thinkpad X200 running a custom 100% free software version of Coreboot with as a GRUB payload) with the following commands: chainloader /path/to/grub_payload.elf boot It then booted fine. As for the partitions I used, I have LUKS encrypted hard drive with LVM2 and a mix of BTRFS and ext4 partitions. Denis 'GNUtoo' Carikli (1): gnu: Add grub-coreboot gnu/packages/bootloaders.scm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) base-commit: 796c823a0d1d0aec9f4af908eca462e58e5675b5 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 16 14:03:12 2023 Received: (at control) by debbugs.gnu.org; 16 Jul 2023 18:03:12 +0000 Received: from localhost ([127.0.0.1]:48516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qL65Q-0005iA-HU for submit@debbugs.gnu.org; Sun, 16 Jul 2023 14:03:12 -0400 Received: from cyberdimension.org ([2001:910:1314:ffff::1]:38332 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qL65N-0005hw-1V for control@debbugs.gnu.org; Sun, 16 Jul 2023 14:03:11 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 246cd0d8 for ; Sun, 16 Jul 2023 18:03:05 +0000 (UTC) Received: from primary_laptop (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 4531e05c for ; Sun, 16 Jul 2023 18:03:04 +0000 (UTC) Date: Sun, 16 Jul 2023 20:03:02 +0200 From: Denis 'GNUtoo' Carikli To: control@debbugs.gnu.org (GNU bug tracker automated control server) Subject: ignored Message-ID: <20230716200242.569e8005@primary_laptop> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 64668 From unknown Mon Aug 18 06:50:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 14 Aug 2023 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator