mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-07 19:39:34 +01:00
system: grub: On MIPS, the linux image name is vmlinuz, not bzImage.
* gnu/system/grub.scm (grub-configuration-file): Add 'linux-image-name' internal procedure. Use it from 'entry->gexp'.
This commit is contained in:
parent
08dcff4744
commit
c448bf7443
1 changed files with 9 additions and 3 deletions
|
@ -206,6 +206,11 @@ fi~%"
|
||||||
"Return the GRUB configuration file corresponding to CONFIG, a
|
"Return the GRUB configuration file corresponding to CONFIG, a
|
||||||
<grub-configuration> object. OLD-ENTRIES is taken to be a list of menu
|
<grub-configuration> object. OLD-ENTRIES is taken to be a list of menu
|
||||||
entries corresponding to old generations of the system."
|
entries corresponding to old generations of the system."
|
||||||
|
(define linux-image-name
|
||||||
|
(if (string-prefix? "mips" system)
|
||||||
|
"vmlinuz"
|
||||||
|
"bzImage"))
|
||||||
|
|
||||||
(define all-entries
|
(define all-entries
|
||||||
(append entries (grub-configuration-menu-entries config)))
|
(append entries (grub-configuration-menu-entries config)))
|
||||||
|
|
||||||
|
@ -214,13 +219,14 @@ entries corresponding to old generations of the system."
|
||||||
(($ <menu-entry> label linux arguments initrd)
|
(($ <menu-entry> label linux arguments initrd)
|
||||||
#~(format port "menuentry ~s {
|
#~(format port "menuentry ~s {
|
||||||
# Set 'root' to the partition that contains the kernel.
|
# Set 'root' to the partition that contains the kernel.
|
||||||
search --file --set ~a/bzImage~%
|
search --file --set ~a/~a~%
|
||||||
|
|
||||||
linux ~a/bzImage ~a
|
linux ~a/~a ~a
|
||||||
initrd ~a
|
initrd ~a
|
||||||
}~%"
|
}~%"
|
||||||
#$label
|
#$label
|
||||||
#$linux #$linux (string-join (list #$@arguments))
|
#$linux #$linux-image-name
|
||||||
|
#$linux #$linux-image-name (string-join (list #$@arguments))
|
||||||
#$initrd))))
|
#$initrd))))
|
||||||
|
|
||||||
(mlet %store-monad ((sugar (eye-candy config #~port)))
|
(mlet %store-monad ((sugar (eye-candy config #~port)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue