GNU bug report logs -
#46560
[PATCH 0/2] Activate system when switching generations.
Previous Next
Reported by: Brice Waegeneire <brice <at> waegenei.re>
Date: Tue, 16 Feb 2021 13:01:01 UTC
Severity: normal
Tags: patch
Done: Brice Waegeneire <brice <at> waegenei.re>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#46560: [PATCH 0/2] Activate system when switching generations.
which was filed against the guix-patches package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 46560 <at> debbugs.gnu.org.
--
46560: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46560
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hello Ludo,
Ludovic Courtès <ludo <at> gnu.org> writes:
> Brice Waegeneire <brice <at> waegenei.re> skribis:
>
>> Brice Waegeneire (2):
>> gnu: services: Add activate script to the profile system directory.
>> scripts: system: Activate system when switching generations.
>
> LGTM, thanks!
Pushed as df138dc20858725b90ed77be85f3318cbe1be73a and later. I'll close
#38884 and will do the same or comment #36855 and #37596 about the new
feature.
Cheers,
- Brice.
[Message part 3 (message/rfc822, inline)]
Hello,
As reported on previous bug report, rolling-back or switching generation
doesn't activate the system as a system reconfiguration would do. This is
especially problematic when modifying in /run/setuid-programs, as it can't be
reverted easily. Also it hinder modification in the activation script since
it's not straight forward to revert change made by those script without a
functional roll-back mechanism.
I'm not sure it's the right approach but at least it work: it add the
activate.scm script to the system profile and then load it when
switching-generation.
This is related to issues:
- #37596 and #38884 (they are duplicate)
- #36855 a more wider discussion
Cheers,
- Brice
Brice Waegeneire (2):
gnu: services: Add activate script to the profile system directory.
scripts: system: Activate system when switching generations.
gnu/services.scm | 10 +++++++++-
guix/scripts/system.scm | 8 ++++++--
2 files changed, 15 insertions(+), 3 deletions(-)
--
2.30.1
This bug report was last modified 4 years and 74 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.