guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/07: scripts: system: Display bootloader name in "list-generations".


From: Mathieu Othacehe
Subject: 07/07: scripts: system: Display bootloader name in "list-generations".
Date: Tue, 16 May 2017 08:42:06 -0400 (EDT)

mothacehe pushed a commit to branch master
in repository guix.

commit 5641dffb078e22fd7306cb5a4eec612de32c46bf
Author: Mathieu Othacehe <address@hidden>
Date:   Sun Apr 2 10:02:07 2017 +0200

    scripts: system: Display bootloader name in "list-generations".
    
    * guix/scripts/system.scm (display-system-generation): Display
      bootloader name.
---
 guix/scripts/system.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index 91b4eb3..5e4574f 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -521,6 +521,7 @@ list of services."
     (let* ((generation  (generation-file-name profile number))
            (params      (read-boot-parameters-file generation))
            (label       (boot-parameters-label params))
+           (boot-name   (boot-parameters-boot-name params))
            (root        (boot-parameters-root-device params))
            (root-device (if (bytevector? root)
                             (uuid->string root)
@@ -531,6 +532,7 @@ list of services."
       (format #t (G_ "  canonical file name: ~a~%") (readlink* generation))
       ;; TRANSLATORS: Please preserve the two-space indentation.
       (format #t (G_ "  label: ~a~%") label)
+      (format #t (G_ "  bootloader: ~a~%") boot-name)
       (format #t (G_ "  root device: ~a~%") root-device)
       (format #t (G_ "  kernel: ~a~%") kernel))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]