unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Dariqq <dariqq@posteo.net>
Cc: 73903@debbugs.gnu.org
Subject: bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution
Date: Thu, 12 Dec 2024 11:50:45 +0100	[thread overview]
Message-ID: <87frmtcgze.fsf@gnu.org> (raw)
In-Reply-To: <6054002f-17fb-4a5d-832d-30392aac396a@posteo.net> (dariqq@posteo.net's message of "Tue, 26 Nov 2024 18:49:01 +0000")

Hi Dariqq,

Dariqq <dariqq@posteo.net> skribis:

> Imo it would make sense to have the sbinless shepherd be the default 
> shepherd for home-shepherd s.t. the home environment never provides 
> shutdown/halt by default. Those are commands are for the system to take 
> care of (whether that is the shepherd coming from root-shepherd or the 
> init from the foreign system).

I agree.

> On my foreign distro setup i am currently using this (apologies if the 
> formatting turns out weird):
>
> (define shepherd-for-home
>    (package
>     (inherit shepherd)
>     (name "shepherd-for-home")
>     (source #f)
>     (build-system trivial-build-system)
>     (arguments
>      (list
>       #:modules '((guix build union)
>                   (guix build utils))
>       #:builder
>       #~(begin
>           (use-modules (guix build union)
>                        (guix build utils))
>           (union-build #$output
>                        (list #$(this-package-input "shepherd"))
>                        #:create-all-directories? #t)
>           (delete-file-recursively (string-append #$output "/sbin"))
>           (delete-file-recursively (string-append #$output 
> "/share/man/man8")))))
>     (native-inputs '())
>     (inputs (list shepherd))))

Perfect!

Would you like to submit a patch adding this package (probably with the
‘hidden?’ property), followed by a patch making it the default for Home?

Thanks,
Ludo’.




      reply	other threads:[~2024-12-12 11:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
2024-11-26 15:55         ` Ludovic Courtès
2024-11-26 18:49           ` Dariqq
2024-12-12 10:50             ` Ludovic Courtès [this message]

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=87frmtcgze.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=73903@debbugs.gnu.org \
    --cc=dariqq@posteo.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).