From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id rqvFJZ++4F+aFQAA0tVLHw (envelope-from ) for ; Mon, 21 Dec 2020 15:26:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KHISIZ++4F/3fQAA1q6Kng (envelope-from ) for ; Mon, 21 Dec 2020 15:26:23 +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 038359404E5 for ; Mon, 21 Dec 2020 15:26:22 +0000 (UTC) Received: from localhost ([::1]:60694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krN4n-0000NZ-Ek for larch@yhetil.org; Mon, 21 Dec 2020 10:26:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krMTl-00080g-5K for help-guix@gnu.org; Mon, 21 Dec 2020 09:48:05 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:62691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krMTi-0000NQ-L7 for help-guix@gnu.org; Mon, 21 Dec 2020 09:48:04 -0500 X-Originating-IP: 91.165.152.159 Received: from mimimi (91-165-152-159.subs.proxad.net [91.165.152.159]) (Authenticated sender: mail@ambrevar.xyz) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id AE3E924000A; Mon, 21 Dec 2020 14:47:55 +0000 (UTC) From: Pierre Neidhardt To: zimoun , help-guix@gnu.org Subject: Re: Install `guix pull'ed Guix to target partition on system install In-Reply-To: <86ft3z9sao.fsf@gmail.com> References: <87ft403kol.fsf@ambrevar.xyz> <86zh279xt0.fsf@gmail.com> <874kkfny4m.fsf@ambrevar.xyz> <86tusf9ukk.fsf@gmail.com> <87mty7mggk.fsf@ambrevar.xyz> <86ft3z9sao.fsf@gmail.com> Date: Mon, 21 Dec 2020 15:47:54 +0100 Message-ID: <87eejjmd0l.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.183.193; envelope-from=mail@ambrevar.xyz; helo=relay1-d.mail.gandi.net X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.5, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: -4.42 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 038359404E5 X-Spam-Score: -4.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: aFrGvutxnpKb --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable zimoun writes: > 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 The first "guix pull" write in memory (RAM), so it's all ephemeral. > I am expecting that the first =E2=80=9Cpull=E2=80=9C writes both on the t= arget. Nope! :( > If not, i.e., it writes on the installation target, yeah it could be > improved. :-) No, the first "guix pull" does not write on the installation target. But I guess that's what you meant ;) > 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 Which is in memory. > then your second pull writes: > > - the cached checkout in /home/user/.cache/guix/checkouts > - the store items in /gnu/store After rebooting, so this /gnu/store is _not the same_ as the one during installation. > Therefore, the repo is cloned twice and derivations are also computed > twice; but it seems hard to avoid by design. Maybe we could fix this by having a "base Guix clone" in the store, and then when we run Guix pull, it first checks out this store repo, only to run "git pull" afterwards. This would save a lot of time. >> 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. Yes, which is a problem I think. =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl/gtZoSHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/rycH/0L1aFvl39tbYJYZ+CAZSrpmnTOQemeD PL3fvO8E/qGCt4FOwRXsSh7CJwh+os25DCZVXRB7ITqFxwN5m8nwwyIksQyjj0AU NAL298fyc3ngb95ktajS1YfBsE8i0uiB4SiPVBdCAxtFoRFdd+L55m0o4fLY/rax 2L2OwlT+c13b+bDMNvbg5KpzAju34goLmp8yBSfa/ve+/69y0kG7WRqTKUvADund 0kLIol3PEc2HEE+vcOsdEk483xpLr837aEOVumUMLNMT2qRKwaKUTwDzd4SCHbge CnUS545MDXRhZoS3blrzB0lf1SJyx4lAG0nOUF8anS5KPzBFOopufCk= =Cz3b -----END PGP SIGNATURE----- --=-=-=--