From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UBqsKoeq4F+AUwAA0tVLHw (envelope-from ) for ; Mon, 21 Dec 2020 14:00:39 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CPp3Joeq4F9+LwAAB5/wlQ (envelope-from ) for ; Mon, 21 Dec 2020 14:00:39 +0000 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 1168B9404E8 for ; Mon, 21 Dec 2020 14:00:39 +0000 (UTC) Received: from localhost ([::1]:47828 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krLjp-0001nI-O4 for larch@yhetil.org; Mon, 21 Dec 2020 09:00:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krLje-0001mm-NB for help-guix@gnu.org; Mon, 21 Dec 2020 09:00:26 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:44275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krLjd-0000eH-1S for help-guix@gnu.org; Mon, 21 Dec 2020 09:00:26 -0500 Received: by mail-wr1-x431.google.com with SMTP id w5so11142639wrm.11 for ; Mon, 21 Dec 2020 06:00:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=O1sX5u+TZBpWzxzcwkidLCIAOGdfchZRfpN47Pf4dSI=; b=egpeRo5JvCKnSwuQ32JoqMoQzz2YW7N1HFqKfvMAB1rX5zy/BQsh67NzPQJEjpCSL9 0JQcCveglM2s+nUE0IW9OcNhPR9a7z4F8Ae74eQKtrYdI+gX7N+5T0k554jw92+V+yTC OfmOy92UxvL+9fVDA9GmxRU8RSIkbZ3SiaCWS85yOqRx3C+36goCog+J4S7PGeAD71uE A0ZJCOoxvlu3ncVXs+oG9Yvb0+XLTOzR/bW+dcnALV7Z3pW4AhNBZHSvPx1Pi2Uck5v9 EttquKHmg6eQ0dP3IavpOxNmUOKZfT1Cb9gHt02CdyrOvW9RwKS8cEaPtHS0dhRKUlwL EWyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=O1sX5u+TZBpWzxzcwkidLCIAOGdfchZRfpN47Pf4dSI=; b=N0DLrKyebHbxysEdMrqEhjMmmmhkQQO3JfTle4x/R26BYJuKnqFPSv8EXZIbn2NiT/ YFLJGFA/ASbDGvA8MfsutQbTqpW+/KWXsYJFz9sokbEtwTa8gfzJqyPfcJybku3Q9l9z XOJb+OM6anVofbPEU04QZwffgml6X3XkP6van20tyLSUVINDEjjURHA8l6wFRKF3xewo O0QWHW3G3FDkX4OtTctObLQy2lY74oQJjwv5c+/yynmdQ1203PzJZHa/Ca/WNDfq5AbP 9sJtIxS9Fb6d6oGhThDxo3Dam6+ruij1qnuX2MCkYx2N5cBAZJ/OV2rjb25unuKDwLHI S1yQ== X-Gm-Message-State: AOAM533cb/4yvUSbpqEgF7sv1p3Lmp59/g8cTFBdmNwo/FmnRcSn3d/l PsqOp6Aut9Ke/OeKl0DdMNuwHoGuT+0= X-Google-Smtp-Source: ABdhPJyJh/lkmEvyGxqlBD/YBRF5WrslF+4YRW/RdR/JAXvfGmDwMn36pyIqiQWekelXkGJ4V9EttA== X-Received: by 2002:adf:e44f:: with SMTP id t15mr12286519wrm.74.1608559223431; Mon, 21 Dec 2020 06:00:23 -0800 (PST) Received: from lili (oul69-1-82-232-2-3.fbx.proxad.net. [82.232.2.3]) by smtp.gmail.com with ESMTPSA id j2sm26745971wrt.35.2020.12.21.06.00.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 06:00:22 -0800 (PST) From: zimoun To: Pierre Neidhardt , help-guix@gnu.org Subject: Re: Install `guix pull'ed Guix to target partition on system install In-Reply-To: <87mty7mggk.fsf@ambrevar.xyz> References: <87ft403kol.fsf@ambrevar.xyz> <86zh279xt0.fsf@gmail.com> <874kkfny4m.fsf@ambrevar.xyz> <86tusf9ukk.fsf@gmail.com> <87mty7mggk.fsf@ambrevar.xyz> Date: Mon, 21 Dec 2020 14:56:15 +0100 Message-ID: <86ft3z9sao.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=egpeRo5J; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 1168B9404E8 X-Spam-Score: -3.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: Fak4Pxwc8x7f On Mon, 21 Dec 2020 at 14:33, Pierre Neidhardt wrote: > zimoun writes: > >> Therefore, since the 2 profiles could be seen as independent, I do not >> know if it is possible to really improve here; by design. >> >> The first pull could be long and resource hungry but the second one >> should be a bit quicker. Well, it depends on how many commits are done >> in the meantime (between the 2 pulls). > > Maybe there is a misunderstanding: the first pull happens on the > installation media, thus it disappears when I reboot on the installed > system. I am not familiar with the installation process. I miss where this first =E2=80=9Cguix pull=E2=80=9D writes: - the cached checkout - the store items I am expecting that the first =E2=80=9Cpull=E2=80=9C writes both on the tar= get. If not, i.e., it writes on the installation target, yeah it could be improved. :-) >From your initial message, my understanding was the first pull writes: - the cached checkout in /root/.cache/guix/checkouts - the store items in /gnu/store then your second pull writes: - the cached checkout in /home/user/.cache/guix/checkouts - the store items in /gnu/store Therefore, the repo is cloned twice and derivations are also computed twice; but it seems hard to avoid by design. > What I think we should do is that when we run `guix system init`, we > would copy the checkout to the store, and then when `guix pull` is run I do not think the checkout is in the store but in =E2=80=9C/root/.cache/guix/checkouts=E2=80=9C, I guess. Cheers, simon