GNU bug report logs - #69588
(chain-loader) declaration will write invalid string on grub.cfg if "+1" is specified instead of an EFI file path.

Previous Next

Package: guix;

Reported by: William <willbilly <at> fedora.email>

Date: Wed, 6 Mar 2024 17:37:01 UTC

Severity: normal

Full log


Message #8 received at 69588 <at> debbugs.gnu.org (full text, mbox):

From: Felix Lechner <felix.lechner <at> lease-up.com>
To: 69588 <at> debbugs.gnu.org
Cc: Carlo Zancanaro <carlo <at> zancanaro.id.au>, William <willbilly <at> fedora.email>,
 Felix Lechner <felix.lechner <at> lease-up.com>
Subject: [PATCH] Find GRUB root devices for chainloading entries.
Date: Wed,  6 Mar 2024 16:09:20 -0800
Maybe this would work? It should help grub-root-search to return a meaningful
search expression but may have unintended side effects.

This patch is untested.

More information may be available here:

  https://issues.guix.gnu.org/issue/69588

Change-Id: I7b97a141b0d0d462d8afdd8c69f0ceb9a2d2da0b
---
 gnu/bootloader/grub.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/bootloader/grub.scm b/gnu/bootloader/grub.scm
index 2723eda5f4..1a229675da 100644
--- a/gnu/bootloader/grub.scm
+++ b/gnu/bootloader/grub.scm
@@ -433,7 +433,7 @@ (define* (make-grub-configuration grub config entries
   chainloader ~a
 }~%"
                   #$label
-                  #$(grub-root-search device chain-loader)
+                  #$(grub-root-search device #f)
                   #$chain-loader)))))
 
   (define (crypto-devices)

base-commit: b4107ca3ad8bb8a6b8e669c298be2f14ff0237da
-- 
2.41.0





This bug report was last modified 1 year and 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.