From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MEjxIp/vRWfoTwEAe85BDQ:P1 (envelope-from ) for ; Tue, 26 Nov 2024 15:56:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MEjxIp/vRWfoTwEAe85BDQ (envelope-from ) for ; Tue, 26 Nov 2024 16:56:15 +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=BgXG97eA; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=itdhgpNA; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732636575; a=rsa-sha256; cv=none; b=PhOURfl9EClCL9Gl50BHilr8Yv+5yACMyPzTEH5G6jpfnEVI9DpSYfeDZr9Ds5jUzwGLWu FBezgxpD5bdgxwzJyIFK3C6wpOYNhtiyNgxO9nLjdw6ae2FsAwjHzpMJ+YMK5wI5T/1A7g sO9eWphMXtRZjw9iBpgoaWQunttFPT5YXEypvDDZxBUx9yu6QXvKpATW+jlo/Sb9KkXr2C qvZ+Pmk+XeX5uoRGQk27ZfePV5avQ/oOoEKollPF5IbOYgPYHPoJHP5e9Z7AHMLxPFSXH9 9qzhfFyasSLcevlE6jMca4J967e7Yg72qhgmqq91hV2M26njoXQYqEW9v/+xyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=BgXG97eA; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=itdhgpNA; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732636575; 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=cu9NC6Z/alI6KcdwKpN8I1GNUKRv/7zDRwG+c656BQg=; b=JmaM4hgUpdn72LzE5bVENtVZrr35LrkEoo0jhaSpZh5ciXEYpgfoSQB7Rq27t1oea3hEM6 vdlEVBDNysxx/A4EcaryVl1pB+QROPmJ55HESz4aKIuhB6S/Usjtj+8lu5MfMK8I6mw0an sTqtR48g5P7rGxMpKy1fDf4TpwqUhNte1Auq8m4oKJJN2lyVQFHvPKyjIRUQY63h7Mg6+j Z0aJkpRR8JKee0XIc0+nOFrmQNgMUxqkcEdz7t+qB8mCI9Vc3233Vqq3Um5D6U2LBKWgU8 g1IkaCNiEX6NZME5xvP+5DbdUgMOq2TkQUn4cwaFvhQjYtXSRuA/kiXwy5PCaA== 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 B5C828238F for ; Tue, 26 Nov 2024 16:56:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFxv2-0007Lx-1e; Tue, 26 Nov 2024 10:56: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 1tFxv0-0007Ll-Hc for bug-guix@gnu.org; Tue, 26 Nov 2024 10:56: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 1tFxv0-0005Sa-8Y for bug-guix@gnu.org; Tue, 26 Nov 2024 10:56: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=cu9NC6Z/alI6KcdwKpN8I1GNUKRv/7zDRwG+c656BQg=; b=BgXG97eAF83bA/xdHCyIkah29qPipUq8WTsnLyKTK02vsc0D/wi/YaEtXLQmdWowKmlgipf6C29db3S198iM5fPTkQYCdGRhHWMZAqtDnHeysgQaVUp49oL4KgCPW3HwLfGh9EuElmtgjih2nA2iFRNwfu7yj38GgRP3BEDA8A5mfKfyFy0cq4TPAm2fBKzkgxfC+JQ6mBZE3RL86BI7M9C1kTmaUo8e4/TAg/DjPluRy8L7rH2SI2/CxQtSK9iJACrDqS5mO99JXCUdeyK4VB2sEL8dCOv1JBtgiJNFSrzsWs0z5Q9jwSK5HzMLW+fNdxZlE6gFp5dzN+JTkhPrBQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFxuz-00016P-SQ for bug-guix@gnu.org; Tue, 26 Nov 2024 10:56:01 -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: Tue, 26 Nov 2024 15:56:01 +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.17326365154184 (code B ref 73903); Tue, 26 Nov 2024 15:56:01 +0000 Received: (at 73903) by debbugs.gnu.org; 26 Nov 2024 15:55:15 +0000 Received: from localhost ([127.0.0.1]:50182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFxuE-00015P-V7 for submit@debbugs.gnu.org; Tue, 26 Nov 2024 10:55:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFxuC-00012Z-D0 for 73903@debbugs.gnu.org; Tue, 26 Nov 2024 10:55:13 -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 1tFxu5-0005NQ-IB; Tue, 26 Nov 2024 10:55:05 -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=cu9NC6Z/alI6KcdwKpN8I1GNUKRv/7zDRwG+c656BQg=; b=itdhgpNA+Y7KfQohlsPh kGeGhScefqrjuW4m1O1fgTKheWFJ8KFwA2HDarmUVyc/NBo9hg+MV5G7/eEiNXdAvDmtMemrb/hIE J33mVbDe2knrELkZmWB5tuLt9+IU6UkRv7v8F1ymSTR5/OYOYeL/lw/TfbWn7LdSdR7iy6wy4nExQ fjfuT7Zow/0kR+f8zdHoz2egKVoZMcTHlqPM5ubJNaPTfU0xzLkWmZ5LZ7i2FUWnTtBMUefxnn71a zqv85g2KsYX9caG3rnoUUOFg/LrCLWo50Nz7nHrVAfbZjTdTbPdm3JVmt12F56iKEpa1kbwNYPGzQ /y34tS9btbpmFA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (dariqq@posteo.net's message of "Thu, 21 Nov 2024 16:21:55 +0000") References: <7869edcc-d4a4-48a1-9a76-e0e67752d806@posteo.net> <87a5e7wbmf.fsf@gnu.org> <87jzcyyygp.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 6 Frimaire an 233 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de la =?UTF-8?Q?M=C3=A2che?= 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: Tue, 26 Nov 2024 16:55:02 +0100 Message-ID: <87bjy2at2h.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.74 X-Spam-Score: -3.74 X-Migadu-Queue-Id: B5C828238F X-Migadu-Scanner: mx12.migadu.com X-TUID: jHNNWNvFnnn6 Hi, Dariqq skribis: > On 20.11.24 11:46, Ludovic Court=C3=A8s wrote: > >>=20 >>> 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=E2=80=99. > > How should this work? should this be a (public?) procedure? Should it > rebuild shepherd or just copy the output with trivial-build-system? My understanding of this proposal is that there would be a =E2=80=9Cshepherd-foreign=E2=80=9D package, which is like =E2=80=9Cshepherd= =E2=80=9D but without =E2=80=98reboot=E2=80=99 and =E2=80=98halt=E2=80=99. That package could be implemented with =E2=80=98trivial-build-system=E2=80= =99 or =E2=80=98copy-build-system=E2=80=99 indeed, and it would symlink all of =E2= =80=98shepherd=E2=80=99, except its =E2=80=98sbin=E2=80=99 directory. > 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. The advantage is that no extra step would be needed when using a foreign distro. But yeah, it=E2=80=99s relatively intrusive, and not my favorite solution, FWIW. Dunno. WDYT? Ludo=E2=80=99.