[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/09: scripts: Make boot-parameters label include generation number and
From: |
Danny Milosavljevic |
Subject: |
04/09: scripts: Make boot-parameters label include generation number and time. |
Date: |
Fri, 5 May 2017 09:10:31 -0400 (EDT) |
dannym pushed a commit to branch master
in repository guix.
commit 0315abe608007f1fed96cdcae21b6a83902b25e6
Author: Danny Milosavljevic <address@hidden>
Date: Fri Apr 21 14:37:10 2017 +0200
scripts: Make boot-parameters label include generation number and time.
* guix/scripts/system.scm (system->boot-parameters): Make label include
generation number and time.
---
guix/scripts/system.scm | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index 9b77b03..88368f8 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -369,8 +369,13 @@ it atomically, and then run OS's activation script."
NUMBERS, which is a list of generation numbers."
(define (system->boot-parameters system number time)
(unless-file-not-found
- (let* ((params (read-boot-parameters-file system)))
- params)))
+ (let* ((params (read-boot-parameters-file system))
+ (label (boot-parameters-label params)))
+ (boot-parameters
+ (inherit params)
+ (label (string-append label " (#"
+ (number->string number) ", "
+ (seconds->string time) ")"))))))
(let* ((systems (map (cut generation-file-name profile <>)
numbers))
(times (map (lambda (system)
- branch master updated (3339abf -> 360874d), Danny Milosavljevic, 2017/05/05
- 05/09: system: vm: Use operating-system-kernel-arguments., Danny Milosavljevic, 2017/05/05
- 02/09: system: Introduce operating-system-kernel-arguments and use it., Danny Milosavljevic, 2017/05/05
- 01/09: system: Factorize operating-system-boot-parameters-file., Danny Milosavljevic, 2017/05/05
- 06/09: system: Use operating-system-boot-parameters directly., Danny Milosavljevic, 2017/05/05
- 07/09: system: grub: Use boot-parameters instead of menu-entry where possible., Danny Milosavljevic, 2017/05/05
- 03/09: system: Introduce read-boot-parameters-file., Danny Milosavljevic, 2017/05/05
- 04/09: scripts: Make boot-parameters label include generation number and time.,
Danny Milosavljevic <=
- 08/09: scripts: Remove profile-grub-entries., Danny Milosavljevic, 2017/05/05
- 09/09: system: Clarify that SYSTEM is either a derivation or #f., Danny Milosavljevic, 2017/05/05