mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 04:59:27 -05:00
guix system: "describe" displays multiboot info.
* guix/scripts/system.scm (display-system-generation): Display multiboot-modules commands if set.
This commit is contained in:
parent
2b76179ecd
commit
28febfafbb
1 changed files with 7 additions and 0 deletions
|
@ -482,6 +482,7 @@ (define (display-channel channel)
|
|||
(uuid->string root)
|
||||
root))
|
||||
(kernel (boot-parameters-kernel params))
|
||||
(multiboot-modules (boot-parameters-multiboot-modules params))
|
||||
(provenance (catch 'system-error
|
||||
(lambda ()
|
||||
(call-with-input-file
|
||||
|
@ -511,6 +512,12 @@ (define (display-channel channel)
|
|||
|
||||
(format #t (G_ " kernel: ~a~%") kernel)
|
||||
|
||||
(match multiboot-modules
|
||||
(() #f)
|
||||
(((modules . _) ...)
|
||||
(format #t (G_ " multiboot: ~a~%")
|
||||
(string-join modules "\n "))))
|
||||
|
||||
(match provenance
|
||||
(#f #t)
|
||||
(('provenance ('version 0)
|
||||
|
|
Loading…
Reference in a new issue