[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/15: system: grub: On MIPS, the linux image name is vmlinuz, not bzIma
From: |
Mark H. Weaver |
Subject: |
09/15: system: grub: On MIPS, the linux image name is vmlinuz, not bzImage. |
Date: |
Mon, 24 Aug 2015 03:16:33 +0000 |
mhw pushed a commit to branch wip-loongson2f
in repository guix.
commit a054fa2c2d01be17cd73f36dad253f38a6e492fb
Author: Mark H Weaver <address@hidden>
Date: Wed Aug 19 16:30:02 2015 -0400
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'.
---
gnu/system/grub.scm | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/gnu/system/grub.scm b/gnu/system/grub.scm
index fe7400a..1378f5f 100644
--- a/gnu/system/grub.scm
+++ b/gnu/system/grub.scm
@@ -221,6 +221,11 @@ fi~%"
"Return the GRUB configuration file corresponding to CONFIG, a
<grub-configuration> object. OLD-ENTRIES is taken to be a list of menu
entries corresponding to old generations of the system."
+ (define linux-image-name
+ (if (string-prefix? "mips" system)
+ "vmlinuz"
+ "bzImage"))
+
(define all-entries
(append entries (grub-configuration-menu-entries config)))
@@ -229,13 +234,14 @@ entries corresponding to old generations of the system."
(($ <menu-entry> label linux arguments initrd)
#~(format port "menuentry ~s {
# 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
}~%"
#$label
- #$linux #$linux (string-join (list address@hidden))
+ #$linux #$linux-image-name
+ #$linux #$linux-image-name (string-join (list address@hidden))
#$initrd))))
(mlet %store-monad ((sugar (eye-candy config #~port)))
- branch wip-loongson2f created (now e543ccc), Mark H. Weaver, 2015/08/24
- 01/15: gnu: gst-plugins-base: Disable tests on MIPS and ARM., Mark H. Weaver, 2015/08/24
- 02/15: gnu: qemu: Disable tests on MIPS., Mark H. Weaver, 2015/08/24
- 04/15: gnu: linux-libre: Add case for ARCH=mips., Mark H. Weaver, 2015/08/24
- 05/15: gnu: linux-libre: On MIPS, the linux image name is vmlinuz, not bzImage., Mark H. Weaver, 2015/08/24
- 03/15: gnu: linux-libre: Add 'supported-systems' field: Intel only for now., Mark H. Weaver, 2015/08/24
- 07/15: linux-initrd: Make platform-specific linux modules optional., Mark H. Weaver, 2015/08/24
- 10/15: system: grub: Adjust eye-candy to work on non-Intel systems., Mark H. Weaver, 2015/08/24
- 08/15: system: grub: Convert grub background using rsvg-convert, not inkscape., Mark H. Weaver, 2015/08/24
- 09/15: system: grub: On MIPS, the linux image name is vmlinuz, not bzImage.,
Mark H. Weaver <=
- 15/15: MIPS_ONLY: services: xorg: Remove several drivers (for Yeeloong)., Mark H. Weaver, 2015/08/24
- 12/15: gnu: grub: Install documentation., Mark H. Weaver, 2015/08/24
- 11/15: gnu: grub: Use modify-phases and other minor cleanups., Mark H. Weaver, 2015/08/24
- 14/15: gnu: grub: Add support for Loongson-based machines., Mark H. Weaver, 2015/08/24
- 06/15: gnu: Add linux-libre-loongson2f., Mark H. Weaver, 2015/08/24
- 13/15: gnu: grub: Update to 2.02-beta2-500-gba218c1., Mark H. Weaver, 2015/08/24