From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AJgUMPvEWmdyUAAAqHPOHw:P1 (envelope-from ) for ; Thu, 12 Dec 2024 11:11:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id AJgUMPvEWmdyUAAAqHPOHw (envelope-from ) for ; Thu, 12 Dec 2024 12:11:55 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=N9zCF8Cz; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=arfbG2Gm; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734001915; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=abE4z31F/YmujtDONsWpXI2bKoks/Wvwtsv8c5yUxcQ=; b=cmX38DGxTAbSqx3uKl/Msp9Hvl5778V0dfLFbHCYHiDyJCFOhq5AyITXgZyzpQb5wnY5dH vluAOTNinnkGms38VNADzgqvfVXTsCdsWjNh0Itok/a+rUkmIuwdEN678S4pCMdMTicb3g kQdv6MA4385AHLjpYxqyeP3J/ILfHTVGJaMgl/l3s+LXidY5nLdb3yJyy5s9RPcfNqqHX3 b2fIDYpY91RO5v9D9DjS4muTFS3eFt5DhwvfwLW8rabkEurC5O14S5SrBqvmejAjln7YvW HiC7c57+oNEIu8ioXxW6T6F/NIQoVP31KSEE13MbB/4HrIW+/iB/wlmoW9AOuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=N9zCF8Cz; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=arfbG2Gm; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734001915; a=rsa-sha256; cv=none; b=VVFyyxvOjEE2u3LgCbuIj24qnfbu2649ZXfOvKN+S88I7dOq8E0e4EY2fU5Rl4S3kn70aF H9vhgY6fxpH73bmYWq17keFuyCZkwCJOBuTB7r4Lm4C4JNyC8PHJZd+ZtJkHIXgXh2W2Y5 7rwTqRnqOgF2qulS8wumSO/1mld7Uz6/IORkngt4m/RfoF43lshJugiz0PYsooD/Z2Vc76 20AGGXFCZJ4lgrlaypAG37JVsiywBd1L3OSpD9E+LHkFbbZ+5ODhOhiE7OD1B6tLgoPeuo SRWPU/7N4n0S2Cs9wNpT8L4ovtco+SGuh3WzeyXTvd5mlisrELhTLye0yw9FjQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 74B767CA84 for ; Thu, 12 Dec 2024 12:11:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLgnc-0003WH-Dm; Thu, 12 Dec 2024 05:52:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLgna-0003W3-FU for bug-guix@gnu.org; Thu, 12 Dec 2024 05:52:02 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLgna-00071D-71 for bug-guix@gnu.org; Thu, 12 Dec 2024 05:52:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=abE4z31F/YmujtDONsWpXI2bKoks/Wvwtsv8c5yUxcQ=; b=N9zCF8CzPUnKbUb+3KSna5/GNot4QCWLPERD0mcnX81pQHLwvw2QX1vL8YZbuB1d3AwQ+bfx8rnmYjUlVfqGJDuI9E4S4e83un62avgir0weyTQaoDQOrYqgUWg1ZwawCMajjLc7PF9iDRVn22yNW8ALXmY/os/sP+/lpVyg5OWP+nGkDkTxrivRLCBVd2WhM3vRp5lBgTIr9o2WmwVGJgx3w9Z/o0TCqntiZlPMWdwQJ2bWvETbIC2yCwNYzwVHzJVSJI7lVkJDh5JD/YsruHdrhDQadNsokScwn+PLoH8mOYw7s7/u7yPwSAGiXU5LuUFz//OTMdjy+hBn4X41Dw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLgna-0008Tm-1h for bug-guix@gnu.org; Thu, 12 Dec 2024 05:52:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#73903: [shepherd]: Guix Home's shepherd masks shutdown/reboot on foreign distribution Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 12 Dec 2024 10:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73903 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Dariqq Cc: 73903@debbugs.gnu.org Received: via spool by 73903-submit@debbugs.gnu.org id=B73903.173400067632514 (code B ref 73903); Thu, 12 Dec 2024 10:52:02 +0000 Received: (at 73903) by debbugs.gnu.org; 12 Dec 2024 10:51:16 +0000 Received: from localhost ([127.0.0.1]:37818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLgmp-0008SM-M9 for submit@debbugs.gnu.org; Thu, 12 Dec 2024 05:51:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLgmn-0008S9-Sh for 73903@debbugs.gnu.org; Thu, 12 Dec 2024 05:51:14 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLgme-0005w7-Sd; Thu, 12 Dec 2024 05:51:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=abE4z31F/YmujtDONsWpXI2bKoks/Wvwtsv8c5yUxcQ=; b=arfbG2GmdoadUXqfmCIR 4NKxwQDVMOWdg82z4NRCdl+sB954cme9uXE32GaK3MyHYZKQeZGIynIk7dLNlKuSxo2ADbtxGuhK6 WIG2nVQh6ASRvX48hsYSjGjGSJG276FLZTLwi4PpKIpKOHs2dzli5XNoNnqlloQCSTkSvJUtrumyF GB189kZ4jdFofguT9jVLkMgq5o6cCPcTwKOSK0lZyIfrJHrX4cF2oN1Hk5ivq0PZKLl0ZBC0RWh+R d6t5PBjqGoOxEgANmkidcQ2MqVoDNA9kZ5Brh3GtjyKffUVuUL3BGBkWh6vjb7Rwpsvx5QNs67D2H jCde0RXdXvoTFA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <6054002f-17fb-4a5d-832d-30392aac396a@posteo.net> (dariqq@posteo.net's message of "Tue, 26 Nov 2024 18:49:01 +0000") References: <7869edcc-d4a4-48a1-9a76-e0e67752d806@posteo.net> <87a5e7wbmf.fsf@gnu.org> <87jzcyyygp.fsf@gnu.org> <87bjy2at2h.fsf@gnu.org> <6054002f-17fb-4a5d-832d-30392aac396a@posteo.net> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Duodi 22 Frimaire an 233 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de la =?UTF-8?Q?Bruy=C3=A8re?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 12 Dec 2024 11:50:45 +0100 Message-ID: <87frmtcgze.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.37 X-Spam-Score: -4.37 X-Migadu-Queue-Id: 74B767CA84 X-TUID: m6s/N4q/Q+Y2 Hi Dariqq, Dariqq skribis: > Imo it would make sense to have the sbinless shepherd be the default=20 > shepherd for home-shepherd s.t. the home environment never provides=20 > shutdown/halt by default. Those are commands are for the system to take=20 > care of (whether that is the shepherd coming from root-shepherd or the=20 > init from the foreign system). I agree. > On my foreign distro setup i am currently using this (apologies if the=20 > 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=20 > "/share/man/man8"))))) > (native-inputs '()) > (inputs (list shepherd)))) Perfect! Would you like to submit a patch adding this package (probably with the =E2=80=98hidden?=E2=80=99 property), followed by a patch making it the defa= ult for Home? Thanks, Ludo=E2=80=99.