all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Nikita Karetnikov <nikita@karetnikov.org>
Cc: 19220@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	[thread overview]
Message-ID: <873890mjkj.fsf@gnu.org> (raw)
In-Reply-To: <87oarppwz1.fsf@karetnikov.org> (Nikita Karetnikov's message of "Sun, 30 Nov 2014 00:34:26 +0400")

[-- Attachment #1: Type: text/plain, Size: 42 bytes --]

Could you please try the attached patch:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1299 bytes --]

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)

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]


From the system, run:

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

and then reboot.

I believe this fixes the problem.

Thanks,
Ludo’.

  reply	other threads:[~2014-11-30 22:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-29 20:34 bug#19220: GRUB fails to find the ‘bzImage’ file when ‘/boot’ is on a separate partition Nikita Karetnikov
2014-11-30 22:04 ` Ludovic Courtès [this message]
2014-12-07  3:45   ` Nikita Karetnikov
2014-12-09 10:09     ` Ludovic Courtès
2014-12-13 16:25       ` Nikita Karetnikov
2014-12-13 21:53         ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873890mjkj.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=19220@debbugs.gnu.org \
    --cc=nikita@karetnikov.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.