mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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.
This commit is contained in:
parent
1244491a0d
commit
e6cd8581c1
1 changed files with 8 additions and 3 deletions
|
@ -1091,9 +1091,13 @@ (define definitions
|
|||
(locale-directory definitions
|
||||
#:libcs (operating-system-locale-libcs os)))
|
||||
|
||||
(define (kernel->boot-label kernel)
|
||||
(define* (kernel->boot-label kernel #:key hurd)
|
||||
"Return a label for the bootloader menu entry that boots KERNEL."
|
||||
(cond ((package? kernel)
|
||||
(cond ((package? hurd)
|
||||
(string-append "GNU with the "
|
||||
(string-titlecase (package-name hurd)) " "
|
||||
(package-version hurd)))
|
||||
((package? kernel)
|
||||
(string-append "GNU with "
|
||||
(string-titlecase (package-name kernel)) " "
|
||||
(package-version kernel)))
|
||||
|
@ -1106,7 +1110,8 @@ (define (kernel->boot-label kernel)
|
|||
(define (operating-system-default-label os)
|
||||
"Return the default label for OS, as it will appear in the bootloader menu
|
||||
entry."
|
||||
(kernel->boot-label (operating-system-kernel os)))
|
||||
(kernel->boot-label (operating-system-kernel os)
|
||||
#:hurd (operating-system-hurd os)))
|
||||
|
||||
(define (store-file-system file-systems)
|
||||
"Return the file system object among FILE-SYSTEMS that contains the store."
|
||||
|
|
Loading…
Reference in a new issue