Report forwarded
to bug-guix@gnu.org: bug#37596; Package guix.
(Thu, 03 Oct 2019 09:10:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Ludovic Courtès <ludo@gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix@gnu.org.
(Thu, 03 Oct 2019 09:10:02 GMT) (full text, mbox, link).
Subject: ‘guix system roll-back’ doesn’t reload services
Date: Thu, 03 Oct 2019 11:09:48 +0200
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’.
Merged 3685537596.
Request was from Ludovic Courtès <ludo@gnu.org>
to control@debbugs.gnu.org.
(Wed, 06 Nov 2019 17:47:04 GMT) (full text, mbox, link).
Changed bug title to ''guix system switch-generation' does not reload Shepherd services' from '‘guix system roll-back’ doesn’t reload services'
Request was from Ludovic Courtès <ludo@gnu.org>
to control@debbugs.gnu.org.
(Wed, 06 Nov 2019 17:47:04 GMT) (full text, mbox, link).
Severity set to 'important' from 'normal'
Request was from Ludovic Courtès <ludo@gnu.org>
to control@debbugs.gnu.org.
(Wed, 06 Nov 2019 17:47:05 GMT) (full text, mbox, link).
Information forwarded
to bug-guix@gnu.org: bug#37596; Package guix.
(Tue, 09 Mar 2021 07:02:02 GMT) (full text, mbox, link).
Subject: Re: bug#37596: 'guix system switch-generation' does not reload
Shepherd services
Date: Tue, 09 Mar 2021 08:01:34 +0100
Hello Guix,
To summarise the whole thread, in addition to the main issue explained
in the title “'guix system switch-generation' does not reload Shepherd
services“ there are 2 other issues talked about.
1. The activation script isn't executed by 'guix system
switch-generation', which is fixed in
df138dc20858725b90ed77be85f3318cbe1be73a and later.
2. The activation process isn't exclusivly build during the system
building process, whihc may the leave the system in half-hazard state
if the building taking place during the activation fail.
The second side issue should proablby have it's own bug report since
it's still present and we should keep that bug report only for the lack
of reloading of shepherd service when using 'guix system
switch-generation' (or 'roll-back').
Cheers,
- Brice
Debbugs is free software and licensed under the terms of the
GNU Public License version 2. The current version can be
obtained from https://bugs.debian.org/debbugs-source/.