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

Full log


View this message in rfc822 format

From: Ludovic Courtès <ludo <at> gnu.org>
To: bug-Guix <at> gnu.org
Subject: bug#37596: ‘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’.




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

Previous Next


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