From: Chris Marusich <cmmarusich@gmail.com>
To: Robert Vollmert <rob@vllmrt.net>
Cc: guix-devel@gnu.org, 36855@debbugs.gnu.org
Subject: bug#36855: guix system switch-generation doesn't
Date: Fri, 09 Aug 2019 00:35:44 -0700 [thread overview]
Message-ID: <87o90yvlin.fsf__26383.7501568318$1565336181$gmane$org@gmail.com> (raw)
In-Reply-To: <51A8B412-1AE3-4464-8146-DE8B19B7C4DF@vllmrt.net> (Robert Vollmert's message of "Thu, 8 Aug 2019 19:03:38 +0200")
[-- Attachment #1: Type: text/plain, Size: 2055 bytes --]
Hi Robert,
Robert Vollmert <rob@vllmrt.net> writes:
> On 8. Aug 2019, at 18:40, Chris Marusich <cmmarusich@gmail.com> wrote:
>> zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) writes:
>>
>>> 'switch-to-system-generation' doesn't call out to
>>> 'upgrade-shepherd-services'. I'm not sure if this was an intentional
>>> decision or not
>>
>> It is intentional, but only because there is currently no way to call
>> upgrade-shepherd-services when switching system generations.
>
> How does shepherd work on a non-guix system? Can’t be it be configured
> like other daemons to read its configuration from a file, e.g. from
>
> /run/current-system/etc/shepherd.conf
>
> and be told via signal to reload its configuration from disk?
Maybe! In the email thread I linked, Ludo talked about storing a
description of the Shepherd services in the system generation for future
reference. Maybe we could store it in a place like this, and maybe
Shepherd already has mechanisms for reloading configurations like this.
I don't intend to work on this because I need to focus on other things
right now, but I would be happy if someone took up this work!
> (I feel a bit cheated right now. This behaviour makes Guix System entirely
> unsuitable for server use. It shouldn’t be advertised as supporting
> transactional upgrades and rollbacks if those require a reboot.)
I agree that Guix should update as many Shepherd services as it can when
switching generations. However, I don't think it's inaccurate to say
that Guix supports transactional upgrades and rollbacks. When you
invoke "guix system switch-generation", the system profile symlink is
flipped atomically, so you get an atomic update from one version of the
system to another. Software running in the system never sees an
inconsistent view of the system. Contrast this with nearly any other
mutable GNU/Linux system, in which files are more or less sprayed into
the existing file system with no guarantee of consistency or atomicity.
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2019-08-09 7:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-30 10:00 bug#36855: guix system switch-generation doesn't Robert Vollmert
2019-07-30 16:16 ` Jakob L. Kreuze
2019-08-06 21:21 ` Robert Vollmert
2019-08-06 21:25 ` Robert Vollmert
[not found] ` <A3C3B87A-1B74-4983-A8EA-7281E3103567@vllmrt.net>
2019-08-07 19:37 ` Christopher Lemmer Webber
2019-08-07 19:57 ` Jakob L. Kreuze
[not found] ` <877e7on3zd.fsf@sdf.lonestar.org>
2019-08-08 16:40 ` Chris Marusich
[not found] ` <87h86ry5j5.fsf@gmail.com>
2019-08-08 17:03 ` Robert Vollmert
[not found] ` <51A8B412-1AE3-4464-8146-DE8B19B7C4DF@vllmrt.net>
2019-08-09 7:35 ` Chris Marusich [this message]
2019-08-26 10:07 ` Ludovic Courtès
2019-08-26 18:51 ` Mark H Weaver
2019-08-28 0:34 ` Mark H Weaver
2019-08-28 18:33 ` Jakob L. Kreuze
2019-08-28 18:46 ` Mark H Weaver
[not found] ` <875zmhm8jo.fsf@netris.org>
2019-08-29 0:08 ` Jakob L. Kreuze
[not found] ` <874l241bq6.fsf@gnu.org>
2019-08-28 18:28 ` Jakob L. Kreuze
2021-03-09 7:01 ` bug#36855: bug#37596: 'guix system switch-generation' does not reload Shepherd services Brice Waegeneire
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='87o90yvlin.fsf__26383.7501568318$1565336181$gmane$org@gmail.com' \
--to=cmmarusich@gmail.com \
--cc=36855@debbugs.gnu.org \
--cc=guix-devel@gnu.org \
--cc=rob@vllmrt.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).