unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#46560] [PATCH 0/2] Activate system when switching generations.
@ 2021-02-16 12:35 Brice Waegeneire
  2021-02-16 13:22 ` [bug#46560] [PATCH 1/2] gnu: services: Add activate script to the profile system directory Brice Waegeneire
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Brice Waegeneire @ 2021-02-16 12:35 UTC (permalink / raw)
  To: 46560

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





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-03-09  6:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 12:35 [bug#46560] [PATCH 0/2] Activate system when switching generations Brice Waegeneire
2021-02-16 13:22 ` [bug#46560] [PATCH 1/2] gnu: services: Add activate script to the profile system directory Brice Waegeneire
2021-03-01 15:55   ` [bug#46560] [PATCH 0/2] Activate system when switching generations Ludovic Courtès
2021-02-16 13:22 ` [bug#46560] [PATCH 2/2] scripts: system: " Brice Waegeneire
2021-03-01 15:56   ` [bug#46560] [PATCH 0/2] " Ludovic Courtès
2021-03-04  6:57 ` [bug#46560] [PATCH v2 " Brice Waegeneire
2021-03-04  6:57   ` [bug#46560] [PATCH v2 1/2] gnu: services: Add activate script to the profile system directory Brice Waegeneire
2021-03-04  6:57   ` [bug#46560] [PATCH v2 2/2] scripts: system: Activate system when switching generations Brice Waegeneire
2021-03-08 14:15   ` [bug#46560] [PATCH v2 0/2] " Ludovic Courtès
2021-03-09  6:12     ` bug#46560: [PATCH " Brice Waegeneire

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).