GNU bug report logs - #76368
Cannot reboot when virtlogd and containerd is running?

Previous Next

Package: guix;

Reported by: Simen Endsjø <contact <at> simendsjo.me>

Date: Mon, 17 Feb 2025 18:45:01 UTC

Severity: grave

Tags: patch

Merged with 76338

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

Bug is archived. No further changes may be made.

Full log


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

From: Dariqq <dariqq <at> posteo.net>
To: Ludovic Courtès <ludo <at> gnu.org>,
 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 76338 <at> debbugs.gnu.org, 76368 <at> debbugs.gnu.org
Subject: Re: bug#76368: Cannot reboot when virtlogd and containerd is running?
Date: Mon, 24 Feb 2025 10:59:43 +0000
Hi Ludo,

Thank you for the patch.

On 23.02.25 22:51, Ludovic Courtès wrote:
> Hi Maxim,
> 
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> skribis:
> 
>> I was wondering if this shouldn't be part of an implicit default %shepherd-default-requires that
>> could be overridden if needed... but I think even in systemd land you
>> must explicitly specify wanted using e.g. 'WantedBy=multi-user.target'
>> in your systemd unit definition, so I guess it's fine that it must be
>> explicitly specified.
> 
> I almost changed the default value of ‘requirement’ to '(user-processes)
> in <shepherd-service>, but then I thought this would need more testing
> and discussion: surely there are places in Guix and in code/config out
> there that relies on the current default value.
> 

I don't think this would have been a good change:

- It breaks services that correctly don't depend on user-processes, i.e. 
filesystem mounts
- It breaks every home-services that (correctly) depends on nothing but 
the home-shepherd .
- It creates a (non obvious) discrepancy between the shepherd service 
API and the Guix layer on top


Imo ideally all services would expose their shepherd requirements (and 
service-autostart, extra daemon args, daemon-environment, extra actions, 
...) in the configuration records which would allows users to workaround 
such a problem themselves.

The current system depends on whether the author of the service added 
it, feels a bit arbitrary and is not flexible if a setting one would 
like to adjust is not configurable.

(i am guilty of this as well for the service i contributed to guix)

But this for a discussion at another time.

> Thanks for your feedback,
> Ludo’.





This bug report was last modified 81 days ago.

Previous Next


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