* bug#19220: GRUB fails to find the ‘bzImage’ file when ‘/boot’ is on a separate partition
@ 2014-11-29 20:34 Nikita Karetnikov
2014-11-30 22:04 ` Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: Nikita Karetnikov @ 2014-11-29 20:34 UTC (permalink / raw)
To: 19220
[-- Attachment #1: Type: text/plain, Size: 149 bytes --]
Adding ‘set root=(hd0,gpt3)’ (which should match your ‘/’ partition)
before the ‘search.file’ line in the GRUB config fixes the issue.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19220: GRUB fails to find the ‘bzImage’ file when ‘/boot’ is on a separate partition
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
2014-12-07 3:45 ` Nikita Karetnikov
0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2014-11-30 22:04 UTC (permalink / raw)
To: Nikita Karetnikov; +Cc: 19220
[-- 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’.
^ permalink raw reply related [flat|nested] 6+ messages in thread
* bug#19220: GRUB fails to find the ‘bzImage’ file when ‘/boot’ is on a separate partition
2014-11-30 22:04 ` Ludovic Courtès
@ 2014-12-07 3:45 ` Nikita Karetnikov
2014-12-09 10:09 ` Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: Nikita Karetnikov @ 2014-12-07 3:45 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 19220
[-- Attachment #1: Type: text/plain, Size: 167 bytes --]
> I believe this fixes the problem.
Unfortunately, it makes things worse. Now GRUB doesn’t even bother to
show the menu; I get straight into the GRUB shell.
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#19220: GRUB fails to find the ‘bzImage’ file when ‘/boot’ is on a separate partition
2014-12-07 3:45 ` Nikita Karetnikov
@ 2014-12-09 10:09 ` Ludovic Courtès
2014-12-13 16:25 ` Nikita Karetnikov
0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2014-12-09 10:09 UTC (permalink / raw)
To: Nikita Karetnikov; +Cc: 19220
Nikita Karetnikov <nikita@karetnikov.org> skribis:
>> I believe this fixes the problem.
>
> Unfortunately, it makes things worse. Now GRUB doesn’t even bother to
> show the menu; I get straight into the GRUB shell.
I realized that commit 39d1f82, which fixed another bug, introduced a
regression causing this: it made /boot/grub/grub.cfg a symlink to the
store, which does not work when /boot is a separate partition.
Commit 6412e58 fixes that.
Could you retry with Guix master after 6412e58, and with the patch I
gave earlier in this thread?
Thanks in advance,
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-12-13 21:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).