From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] Creating a docker image with Guix Date: Wed, 04 Jan 2017 23:12:18 +0100 Message-ID: <878tqqh3ul.fsf@gnu.org> References: <87eg0l85qm.fsf@gnu.org> <87tw9gyuvh.fsf@gmail.com> <87mvf8um6q.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOtnF-0006pL-0M for guix-devel@gnu.org; Wed, 04 Jan 2017 17:12:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOtnB-0001Lo-S6 for guix-devel@gnu.org; Wed, 04 Jan 2017 17:12:24 -0500 In-Reply-To: <87mvf8um6q.fsf@elephly.net> (Ricardo Wurmus's message of "Tue, 03 Jan 2017 17:45:33 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel Ricardo Wurmus skribis: > Chris Marusich writes: > >> What happens if I invoke this command while GC is trying to delete the >> specified path? > > It will do weird things, I guess. It=E2=80=99s best to do this inside of= =E2=80=9Cguix > environment=E2=80=9D as I demonstrated because while you=E2=80=99re in th= e environment > the temporary profile is protected from GC. But if you do =E2=80=9Cguix archive --export-docker-image=3Dfoo emacs=E2=80= =9D, then Emacs is protected from GC for the dynamic extend of =E2=80=98with-store=E2=80=99= in =E2=80=98guix-archive=E2=80=99. Also, in practice, the =E2=80=98list-runtime-roots=E2=80=99 helper will not= ice the file name in the arguments to =E2=80=98guix archive=E2=80=99 and will make it a = GC root. So that does not introduce any difference compared to the existing behavior, I think. Ludo=E2=80=99.