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 kGuxDCHS4F9uYgAA0tVLHw (envelope-from ) for ; Mon, 21 Dec 2020 16:49:37 +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 qLeSCCHS4F89JgAAB5/wlQ (envelope-from ) for ; Mon, 21 Dec 2020 16:49:37 +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 95F6F940657 for ; Mon, 21 Dec 2020 16:49:36 +0000 (UTC) Received: from localhost ([::1]:60686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krONL-0008IG-JN for larch@yhetil.org; Mon, 21 Dec 2020 11:49:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krON6-0008I7-JQ for help-guix@gnu.org; Mon, 21 Dec 2020 11:49:20 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:42705) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krON3-00086R-08 for help-guix@gnu.org; Mon, 21 Dec 2020 11:49:20 -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 relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 2ED212000F; Mon, 21 Dec 2020 16:49:11 +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: <86a6u79lbg.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> <87eejjmd0l.fsf@ambrevar.xyz> <86a6u79lbg.fsf@gmail.com> Date: Mon, 21 Dec 2020 17:49:11 +0100 Message-ID: <87pn33ksu0.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.200; envelope-from=mail@ambrevar.xyz; helo=relay7-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_H2=-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: 95F6F940657 X-Spam-Score: -4.42 X-Migadu-Scanner: scn1.migadu.com X-TUID: g6T5ffGOB1EL --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable zimoun writes: > Therefore, the missing store items from the RAM store could be > transferred to installation target via =E2=80=98guix archive=E2=80=99. But I don't think `guix pull' looks for a repository in the store. > But I am > surprised that after rebooting this /gnu/store misses items that you > need when you run =E2=80=9Cguix pull=E2=80=9D as root. This is not surprising: when you run "guix pull" from an installation media, there is no /gnu/store on the disk since Guix hasn't been installed to the disk yet. > What I miss in your problem is: > > # guix pull # writes in memory (1) > # guix system init=20 > # reboot=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20 > # guix pull # writes in disk (2) > $ guix pull # writes in disk (3) No need for 3. > (1) is slow, (2) should not clone. Is (2) cloning? 1: yes. 2: It would be nice if it could reuse the checkout from 1. > What you are proposing is to improve (3), right? No, 2. > Instead of cloning > from Savannah and so populate ~/.cache/guix/checkouts, you are proposing > that between (1) and (3), =C2=ABsomething=C2=BB creates a store item with= the full > clone from Savannah, then (3) copies from this store item to > ~/.cache/guix/checkouts if it does not exist, and run =E2=80=9Cgit pull= =E2=80=9D > there. Correct but with (2) instead of (3). > But I do not think the =E2=80=9Ccloning=E2=80=9D part is the consuming on= e here; even if > it obviously depends on the network. On a 6 Mbit/s connection and a modest laptop, this took about 30 minutes! The Guix checkout is huge. Maybe a shallow clone could fix this, but since we've added the introduction commit I don't think it's possible. > And it is does only once in life. ;-) Do you mean installation is something done only once? I beg to differ, I've been using Guix for 2.5 years and already installed it a dozen of times. > Example with a poor network via my smartphone: > > --8<---------------cut here---------------start------------->8--- > [...] > $ rm -fr ~/.cache/guix/checkouts/pjmkglp4t7znuugeurpurzikxq3tnlaywmisyr27= shj7apsnalwq=20 > $ time guix pull > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.= org/git/guix.git'... > Building from this channel: > guix https://git.savannah.gnu.org/git/guix.git 5ecc0b1 > Computing Guix derivation for 'x86_64-linux'... - > nothing to be done > > hint: After setting `PATH', run `hash guix' to make sure your shell refer= s to `/home/simon/.config//guix/current/bin/guix'. > > > real 4m15.202s > user 3m8.522s > sys 0m5.010s > --8<---------------cut here---------------end--------------->8--- I wouldn't call this a poor network ;) You can go much worse than that, in my case it took around half an hour. Cheers! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl/g0gcSHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/OJsH+wRvursKkSJQnIpCCCRz5yFfsD9voAKY 0X4tM8Agm+akor9k90LOgs+ha3AJBvikt0DJNxBLqHgW0TMleWwQNx9aVlrEMXeI d1Ocpa0Wp2+68GicpFsrARpgcDnfdgAzVGzWDMFMnw7MBrulgYaejyEN7UHVh68P QSGRn7MbHfh7d3yzHmjJdubfkUphdEOWGA/tS/2ys6yqdEezikwLDhKJoD0O8vg6 qngbFVlOdbwBV0/kNE+UP5MZNgS/8bcI/zfGj835sMmtr2miE52Rh9zgMMkmxzZc MQD9ELX00WbofYP3e1GSSoG07MmlXglVI7RSOTFwzYK3drl8XPr216I= =kPG9 -----END PGP SIGNATURE----- --=-=-=--