GNU bug report logs - #37596
'guix system switch-generation' does not reload Shepherd services

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Thu, 3 Oct 2019 09:10:01 UTC

Severity: important

Merged with 36855

To reply to this bug, email your comments to 37596 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#37596; Package guix. (Thu, 03 Oct 2019 09:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ludovic Courtès <ludo <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Thu, 03 Oct 2019 09:10:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: bug-Guix <at> gnu.org
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 36855 37596. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 06 Nov 2019 17:47:04 GMT) Full text and rfc822 format available.

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 <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 06 Nov 2019 17:47:04 GMT) Full text and rfc822 format available.

Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 06 Nov 2019 17:47:05 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#37596; Package guix. (Tue, 09 Mar 2021 07:02:02 GMT) Full text and rfc822 format available.

Message #14 received at 37596 <at> debbugs.gnu.org (full text, mbox):

From: Brice Waegeneire <brice <at> waegenei.re>
To: Robert Vollmert <rob <at> vllmrt.net>
Cc: 36855 <at> debbugs.gnu.org, 37596 <at> debbugs.gnu.org
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




This bug report was last modified 4 years and 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.