GNU bug report logs - #19220
GRUB fails to find the ‘bzImage’ file when ‘/boot’ is on a separate partition

Previous Next

Package: guix;

Reported by: Nikita Karetnikov <nikita <at> karetnikov.org>

Date: Sat, 29 Nov 2014 21:36:01 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: ludo <at> gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita <at> karetnikov.org>
Cc: 19220 <at> debbugs.gnu.org
Subject: bug#19220: GRUB fails to find the ‘bzImage’ file when ‘/boot’ is on a separate partition
Date: Sun, 30 Nov 2014 23:04:28 +0100
[Message part 1 (text/plain, inline)]
Could you please try the attached patch:

[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/system/grub.scm b/gnu/system/grub.scm
index 00e09f9..5d0f4f1 100644
--- a/gnu/system/grub.scm
+++ b/gnu/system/grub.scm
@@ -209,11 +209,12 @@ entries corresponding to old generations of the system."
     (match-lambda
      (($ <menu-entry> label linux arguments initrd)
       #~(format port "menuentry ~s {
+  search --file --set ~a/bzImage~%
   linux ~a/bzImage ~a
   initrd ~a
 }~%"
                 #$label
-                #$linux (string-join (list #$@arguments))
+                #$linux #$linux (string-join (list #$@arguments))
                 #$initrd))))
 
   (mlet %store-monad ((sugar (eye-candy config #~port)))
@@ -223,14 +224,9 @@ entries corresponding to old generations of the system."
             #$sugar
             (format port "
 set default=~a
-set timeout=~a
-search.file ~a/bzImage~%"
+set timeout=~a~%"
                     #$(grub-configuration-default-entry config)
-                    #$(grub-configuration-timeout config)
-                    #$(any (match-lambda
-                            (($ <menu-entry> _ linux)
-                             linux))
-                           all-entries))
+                    #$(grub-configuration-timeout config))
             #$@(map entry->gexp all-entries)
 
             #$@(if (pair? old-entries)
[Message part 3 (text/plain, inline)]
From the system, run:

  ./pre-inst-env guix system reconfigure config.scm

and then reboot.

I believe this fixes the problem.

Thanks,
Ludo’.

This bug report was last modified 10 years and 160 days ago.

Previous Next


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