summary refs log tree commit diff
path: root/gnu/system.scm
diff options
context:
space:
mode:
authorDavid Craven <david@craven.ch>2017-02-14 16:28:31 +0100
committerDanny Milosavljevic <dannym@scratchpost.org>2017-02-28 23:43:35 +0100
commit43fe431cce107bd311a68dea59ac0f672ac13615 (patch)
tree17dd121aee1020d2e4bce1d13b5a84f600e00ed8 /gnu/system.scm
parent5f947808cd623a1b7f75da38a962b4389702463d (diff)
downloadguix-43fe431cce107bd311a68dea59ac0f672ac13615.tar.gz
vm: Remove hard coded kernel file name.
* gnu/system/vm.scm (system-qemu-image/shared-store-script,
expression->derivation-in-linux-vm): Use operating-system-kernel-file and
system-linux-image-file-name.
* gnu/system.scm (system-linux-image-file-name): Add ARM.
Diffstat (limited to 'gnu/system.scm')
-rw-r--r--gnu/system.scm9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/system.scm b/gnu/system.scm
index 1006c842c9..c8d4d014ed 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -97,6 +97,8 @@
             operating-system-locale-directory
             operating-system-boot-script
 
+            system-linux-image-file-name
+
             boot-parameters
             boot-parameters?
             boot-parameters-label
@@ -255,9 +257,10 @@ from the initrd."
 (define* (system-linux-image-file-name #:optional (system (%current-system)))
   "Return the basename of the kernel image file for SYSTEM."
   ;; FIXME: Evaluate the conditional based on the actual current system.
-  (if (string-prefix? "mips" (%current-system))
-      "vmlinuz"
-      "bzImage"))
+  (cond
+   ((string-prefix? "arm" (%current-system)) "zImage")
+   ((string-prefix? "mips" (%current-system)) "vmlinuz")
+   (else "bzImage")))
 
 (define (operating-system-kernel-file os)
   "Return an object representing the absolute file name of the kernel image of