diff options
| author | Jan (janneke) Nieuwenhuizen <janneke@gnu.org> | 2020-05-10 15:31:45 +0200 |
|---|---|---|
| committer | Jan Nieuwenhuizen <janneke@gnu.org> | 2020-06-08 13:51:19 +0200 |
| commit | e6cd8581c192f739712013874dfa9690522ea9f1 (patch) | |
| tree | 1b79d173306255030db9da3bba9f37a634b41b2b | |
| parent | 1244491a0d5334e1589159a2ff67bbc967b9648b (diff) | |
system: Use 'hurd' package in label.
* gnu/system.scm (kernel->boot-label): Add keyword parameter 'hurd'. If set,
use it for label.
(operating-system-default-label): Call with it with operating-system-hurd.
| -rw-r--r-- | gnu/system.scm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gnu/system.scm b/gnu/system.scm index 0722bcf7710..a37c5ba4f32 100644 --- a/gnu/system.scm +++ b/gnu/system.scm | |||
| @@ -1091,9 +1091,13 @@ listed in OS. The C library expects to find it under | |||
| 1091 | (locale-directory definitions | 1091 | (locale-directory definitions |
| 1092 | #:libcs (operating-system-locale-libcs os))) | 1092 | #:libcs (operating-system-locale-libcs os))) |
| 1093 | 1093 | ||
| 1094 | (define (kernel->boot-label kernel) | 1094 | (define* (kernel->boot-label kernel #:key hurd) |
| 1095 | "Return a label for the bootloader menu entry that boots KERNEL." | 1095 | "Return a label for the bootloader menu entry that boots KERNEL." |
| 1096 | (cond ((package? kernel) | 1096 | (cond ((package? hurd) |
| 1097 | (string-append "GNU with the " | ||
| 1098 | (string-titlecase (package-name hurd)) " " | ||
| 1099 | (package-version hurd))) | ||
| 1100 | ((package? kernel) | ||
| 1097 | (string-append "GNU with " | 1101 | (string-append "GNU with " |
| 1098 | (string-titlecase (package-name kernel)) " " | 1102 | (string-titlecase (package-name kernel)) " " |
| 1099 | (package-version kernel))) | 1103 | (package-version kernel))) |
| @@ -1106,7 +1110,8 @@ listed in OS. The C library expects to find it under | |||
| 1106 | (define (operating-system-default-label os) | 1110 | (define (operating-system-default-label os) |
| 1107 | "Return the default label for OS, as it will appear in the bootloader menu | 1111 | "Return the default label for OS, as it will appear in the bootloader menu |
| 1108 | entry." | 1112 | entry." |
| 1109 | (kernel->boot-label (operating-system-kernel os))) | 1113 | (kernel->boot-label (operating-system-kernel os) |
| 1114 | #:hurd (operating-system-hurd os))) | ||
| 1110 | 1115 | ||
| 1111 | (define (store-file-system file-systems) | 1116 | (define (store-file-system file-systems) |
| 1112 | "Return the file system object among FILE-SYSTEMS that contains the store." | 1117 | "Return the file system object among FILE-SYSTEMS that contains the store." |
