guix system: List old generations from newest to oldest.
Previously 'guix system switch-generation' or 'delete-generations' would yield a GRUB menu where entries for old generations were in the wrong order (i.e., oldest first.) * guix/scripts/system.scm (reinstall-bootloader): Reverse the list returned by 'generation-numbers'.
This commit is contained in:
parent
499b166d1c
commit
1e9698344d
|
@ -492,7 +492,8 @@ STORE is an open connection to the store."
|
|||
|
||||
;; Make the specified system generation the default entry.
|
||||
(params (profile-boot-parameters %system-profile (list number)))
|
||||
(old-generations (delv number (generation-numbers %system-profile)))
|
||||
(old-generations
|
||||
(delv number (reverse (generation-numbers %system-profile))))
|
||||
(old-params (profile-boot-parameters
|
||||
%system-profile old-generations))
|
||||
(entries (map boot-parameters->menu-entry params))
|
||||
|
|
Loading…
Reference in New Issue