mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
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>
This commit is contained in:
parent
9008debc54
commit
45e39eee21
1 changed files with 2 additions and 2 deletions
|
@ -366,7 +366,7 @@ (define (seconds->string seconds)
|
|||
(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 @@ (define println
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue