me
/
guix
Archived
1
0
Fork 0

system: Rename previous-grub-entries to profile-grub-entries.

* guix/scripts/system.scm (previous-grub-entries, profile-grub-entries):
Rename previous-grub-entries to profile-grub-entries to indicate that it is
stateful and returns the entries for all profile generations, not just the
previous ones.  Update all callers.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
master
Chris Marusich 2016-11-01 22:48:12 -07:00 committed by Ludovic Courtès
parent 9008debc54
commit 45e39eee21
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 2 deletions

View File

@ -366,7 +366,7 @@ it atomically, and then run OS's activation script."
(date->string (time-utc->date time)
"~Y-~m-~d ~H:~M")))
(define* (previous-grub-entries #:optional (profile %system-profile))
(define* (profile-grub-entries #:optional (profile %system-profile))
"Return a list of 'menu-entry' for the generations of PROFILE."
(define (system->grub-entry system number time)
(unless-file-not-found
@ -563,7 +563,7 @@ building anything."
(operating-system-grub.cfg os
(if (eq? 'init action)
'()
(previous-grub-entries)))))
(profile-grub-entries)))))
;; For 'init' and 'reconfigure', always build GRUB.CFG, even if
;; --no-grub is passed, because GRUB.CFG because we then use it as a GC