guix system: "describe" displays multiboot info.
authorJan (janneke) Nieuwenhuizen <janneke@gnu.org>
Mon, 29 Jun 2020 13:24:56 +0000 (15:24 +0200)
committerJan (janneke) Nieuwenhuizen <janneke@gnu.org>
Fri, 3 Jul 2020 07:28:16 +0000 (09:28 +0200)
* guix/scripts/system.scm (display-system-generation): Display
multiboot-modules commands if set.

guix/scripts/system.scm

index 28aaa6e..61eeec6 100644 (file)
@@ -482,6 +482,7 @@ list of services."
                             (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 @@ list of services."
 
       (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)