* bug#37596: ‘guix system roll-back’ doesn’t reload services
@ 2019-10-03 9:09 Ludovic Courtès
0 siblings, 0 replies; only message in thread
From: Ludovic Courtès @ 2019-10-03 9:09 UTC (permalink / raw)
To: bug-Guix
Hello,
‘guix system roll-back’ and ‘switch-generation’ don’t reload services
and don’t run activation scripts like ‘guix system reconfigure’ does.
Indeed:
--8<---------------cut here---------------start------------->8---
(define (switch-to-system-generation store spec)
"Switch the system profile to the generation specified by SPEC, and
re-install bootloader with a configuration file that uses the specified system
generation as its default entry. STORE is an open connection to the store."
(let ((number (relative-generation-spec->number %system-profile spec)))
(if number
(begin
(reinstall-bootloader store number)
(switch-to-generation* %system-profile number))
(leave (G_ "cannot switch to system generation '~a'~%") spec))))
--8<---------------cut here---------------end--------------->8---
Ludo’.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-03 9:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-03 9:09 bug#37596: ‘guix system roll-back’ doesn’t reload services Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).