unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution
@ 2024-10-20 10:12 Dariqq
  2024-11-06 13:52 ` bug#73903: (no subject) Jakob Honal via Bug reports for GNU Guix
  2024-11-10 11:51 ` bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Dariqq @ 2024-10-20 10:12 UTC (permalink / raw)
  To: 73903

When using guix home to manage shepherd services on a foreign 
distribution the shepherd package is also added to the home-profile.

This then makes the home profile provide 'halt', 'shutdown' and 'reboot' 
(and their manpages) masking the system ones.

Trying to run one of these then results in an error:
reboot: error: /var/run/shepherd/socket: No such file or directory

instead of e.g. rebooting the system.





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

* bug#73903: (no subject)
  2024-10-20 10:12 bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution Dariqq
@ 2024-11-06 13:52 ` Jakob Honal via Bug reports for GNU Guix
  2024-11-10 11:51 ` bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution Ludovic Courtès
  1 sibling, 0 replies; 6+ messages in thread
From: Jakob Honal via Bug reports for GNU Guix @ 2024-11-06 13:52 UTC (permalink / raw)
  To: 73903

[-- Attachment #1: Type: text/html, Size: 155 bytes --]

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

* bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution
  2024-10-20 10:12 bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution Dariqq
  2024-11-06 13:52 ` bug#73903: (no subject) Jakob Honal via Bug reports for GNU Guix
@ 2024-11-10 11:51 ` Ludovic Courtès
  2024-11-10 15:57   ` Dariqq
  1 sibling, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2024-11-10 11:51 UTC (permalink / raw)
  To: Dariqq; +Cc: 73903

Hi,

Dariqq <dariqq@posteo.net> skribis:

> When using guix home to manage shepherd services on a foreign
> distribution the shepherd package is also added to the home-profile.
>
> This then makes the home profile provide 'halt', 'shutdown' and
> 'reboot' (and their manpages) masking the system ones.

Oh, indeed.  I’m not sure how to address that though.  Ideas?

Ludo’.




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

* bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution
  2024-11-10 11:51 ` bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution Ludovic Courtès
@ 2024-11-10 15:57   ` Dariqq
  2024-11-20 10:46     ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Dariqq @ 2024-11-10 15:57 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 73903

Hi Ludo,

On 10.11.24 12:51, Ludovic Courtès wrote:
> Hi,
> 
> Dariqq <dariqq@posteo.net> skribis:
> 
>> When using guix home to manage shepherd services on a foreign
>> distribution the shepherd package is also added to the home-profile.
>>
>> This then makes the home profile provide 'halt', 'shutdown' and
>> 'reboot' (and their manpages) masking the system ones.
> 
> Oh, indeed.  I’m not sure how to address that though.  Ideas?
> 
Not sure if this is something that should be addressed by shepherd or 
the default shepherd package used for guix home.

Initially I had the idea to add a configure flag to shepherd to disable 
"building" and installing these 5 files (which is why I reported against 
shepherd). I threw something together that works but I am not really 
happy with it because imo such an option should disable *all*
  things that are not required when only using it for user level 
services and not just the entrypoints. That would be a lot more work though.

Another (simpler solution) would be to just solve the problem in guix by 
using a shepherd variant that deletes sbin and share/man/man8.


Wdyt?
> Ludo’.





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

* bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution
  2024-11-10 15:57   ` Dariqq
@ 2024-11-20 10:46     ` Ludovic Courtès
  2024-11-21 16:21       ` Dariqq
  0 siblings, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2024-11-20 10:46 UTC (permalink / raw)
  To: Dariqq; +Cc: 73903

Hi,

Dariqq <dariqq@posteo.net> skribis:

> On 10.11.24 12:51, Ludovic Courtès wrote:
>> Hi,
>> Dariqq <dariqq@posteo.net> skribis:
>> 
>>> When using guix home to manage shepherd services on a foreign
>>> distribution the shepherd package is also added to the home-profile.
>>>
>>> This then makes the home profile provide 'halt', 'shutdown' and
>>> 'reboot' (and their manpages) masking the system ones.
>> Oh, indeed.  I’m not sure how to address that though.  Ideas?
>> 
> Not sure if this is something that should be addressed by shepherd or
> the default shepherd package used for guix home.

[...]

> Another (simpler solution) would be to just solve the problem in guix
> by using a shepherd variant that deletes sbin and share/man/man8.

Yes, this sounds like a reasonable solution to me.

Ludo’.




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

* bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution
  2024-11-20 10:46     ` Ludovic Courtès
@ 2024-11-21 16:21       ` Dariqq
  0 siblings, 0 replies; 6+ messages in thread
From: Dariqq @ 2024-11-21 16:21 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 73903

Hi,

On 20.11.24 11:46, Ludovic Courtès wrote:

> 
>> Another (simpler solution) would be to just solve the problem in guix
>> by using a shepherd variant that deletes sbin and share/man/man8.
> 
> Yes, this sounds like a reasonable solution to me.
> 
> Ludo’.

How should this work? should this be a (public?) procedure? Should it 
rebuild shepherd or just copy the output with trivial-build-system?


I just thought of a more elegant solution, but this would be a lot 
harder to implement properly:

- Move the sbin stuff into a seperate output
- Home shepherd service only adds the main output to the profile and 
shepherd-root-service both
- Will need adjustments some packages that currently reference 
shutdown/reboot ( -> lots of rebuilds because logind) and the same 
change for the shepherd packages in the shepherd module.




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

end of thread, other threads:[~2024-11-21 16:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-20 10:12 bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution Dariqq
2024-11-06 13:52 ` bug#73903: (no subject) Jakob Honal via Bug reports for GNU Guix
2024-11-10 11:51 ` bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution Ludovic Courtès
2024-11-10 15:57   ` Dariqq
2024-11-20 10:46     ` Ludovic Courtès
2024-11-21 16:21       ` Dariqq

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