From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KBi9ByWzNWLFggAAgWs5BA (envelope-from ) for ; Sat, 19 Mar 2022 11:40:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4GYsBSWzNWIgnAAA9RJhRA (envelope-from ) for ; Sat, 19 Mar 2022 11:40:37 +0100 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 ACF263DCB7 for ; Sat, 19 Mar 2022 11:40:36 +0100 (CET) Received: from localhost ([::1]:44054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVWVf-0006UB-2G for larch@yhetil.org; Sat, 19 Mar 2022 06:40:35 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVWV8-0006U3-QI for guix-patches@gnu.org; Sat, 19 Mar 2022 06:40:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36977) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVWV8-0000fo-H5 for guix-patches@gnu.org; Sat, 19 Mar 2022 06:40:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVWV8-00063i-BQ for guix-patches@gnu.org; Sat, 19 Mar 2022 06:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54377] [PATCH 0/3] Add 'guix home container' Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Mar 2022 10:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54377 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Andrew Tropin Cc: 54377@debbugs.gnu.org Received: via spool by 54377-submit@debbugs.gnu.org id=B54377.164768636723240 (code B ref 54377); Sat, 19 Mar 2022 10:40:02 +0000 Received: (at 54377) by debbugs.gnu.org; 19 Mar 2022 10:39:27 +0000 Received: from localhost ([127.0.0.1]:59107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVWUZ-00062m-0T for submit@debbugs.gnu.org; Sat, 19 Mar 2022 06:39:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVWUX-00062W-0O for 54377@debbugs.gnu.org; Sat, 19 Mar 2022 06:39:25 -0400 Received: from [2001:470:142:3::e] (port=59356 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVWUR-0000bA-MC; Sat, 19 Mar 2022 06:39:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Qwb+Ky1pqv6on3RXKvLQB/ajFwHpHugUpmXKyalJRYg=; b=aG67yXhTVRNCOYvJEJWy IFUvvFopoV2c8bYcdHawnQL9R8u6C8wXO9lfipnIWrqROVfLhsmYQLBb0OwlHaPo26yyZnNaDfeD5 4K6pYG2B7BaJSViIj6Ptms0ZteB3MQCK1eS7aChyDviFh35+Lie/DhsZx35r67BQ8ncg8usEpqryB tSIZvVZE80o9E0j5XMAOBI4rRT7pq3u1I31hI8yOxEddehY8rRoq0sEo9+Sexnnj1nu45CpjoBlrI uEEoY1sgZPeTP/GGpO5VMpxm391zurfiLvnEA+aiBHZx1CdDZ5a9bXyMKuFym+G1mH2Bi7b5I8DJT aVeDJm4JOY1mgg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:59192 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVWUR-0000OL-Al; Sat, 19 Mar 2022 06:39:19 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220313215454.9576-1-ludo@gnu.org> <20220313215454.9576-3-ludo@gnu.org> <87y219hzau.fsf@trop.in> <87v8wbqto9.fsf@gnu.org> <87y216h6jc.fsf@trop.in> Date: Sat, 19 Mar 2022 11:39:17 +0100 In-Reply-To: <87y216h6jc.fsf@trop.in> (Andrew Tropin's message of "Sat, 19 Mar 2022 08:09:59 +0300") Message-ID: <87lex6ns4q.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647686436; 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=Qwb+Ky1pqv6on3RXKvLQB/ajFwHpHugUpmXKyalJRYg=; b=H1D4LvQNflgRfbiVW1GtTshony877BSMGKA32hvG93vU6bPO1hA58bSkMfBLLTHDB1ah7a xc5ibuC/JSfXGo4Jkj4HJmGChyqH9ggghi1M850jWCp64UL37mSxA2jsK6/V6PQVhoapA5 ntKEA+7s6FPVgNhA3PazKHLZSJd7CG0rO8LgteyP1Ig++miVs1vG58RQvofIB3yqAsSAtH mTNM/eUMfyw/ZwBB14sEsogexpuvMgWtm1+Jmk5e7KouxXbWY6VPMixfnkDcvlsdy99CU0 pPa87meGdOwY/S8maPTIOOj4RZ2EWfXVNCZDLj5ag/5Ki/aRzUZVT+Mp22ldvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647686436; a=rsa-sha256; cv=none; b=Cp6hDUWdF7hoWz7rQrePJagSI166JjQUJnDBAxzAoAbgyHs/0gtxOBgtTFzeWUdJN4DsR5 hgOfFPPz7xOpx/pEog19t2axFr8WTYpgurFjGmJQIUlpoxoFoeIzBO6c4Cjd99Kwux5n1J tX4qvHSMz6uqbN9S15qeTIceE3WvA9UGMN+EmUPfbXI2V1iJBwKjhWj6/6vNgpicHFeych GEUfFdkSFEQYvxcmErO3WBV085yzXOacaaS3LNU0X283byYCPtmGasUQ3Zq9dXf+P4f1cQ vAmNppbvFKff8ISgh2J6hC/GdNKD1TSQ32JkCpJjNQgoHoES+Gb6+IxEfSnR0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=aG67yXhT; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.24 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=aG67yXhT; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: ACF263DCB7 X-Spam-Score: -4.24 X-Migadu-Scanner: scn0.migadu.com X-TUID: z7OYN98kpVyM Hi, Andrew Tropin skribis: > What I meant by previous comment: to match a real state of the things > it's better to use a shell from /etc/passwd, because it will be launched > on user login and will read env vars and run all the following > processes, but to make it more reproducible and independent from system > state I think we always have to use hardcoded bash and inside the > container inspect the value of $SHELL set by login shell (hardcoded > bash) and spawn new shell if $SHELL is NOT empty. Yeah, there=E2=80=99s a tension between conflicting criteria: independence = from system state, and faithful reproduction of what would happen on the system. I feel like checking $SHELL is a middle ground. I don=E2=80=99t know, we can revisit that as we gain more experience with t= he tool I guess. Thanks, Ludo=E2=80=99.