From: Pierre Neidhardt <mail@ambrevar.xyz>
To: zimoun <zimon.toutoune@gmail.com>, help-guix@gnu.org
Subject: Re: Install `guix pull'ed Guix to target partition on system install
Date: Mon, 21 Dec 2020 15:47:54 +0100 [thread overview]
Message-ID: <87eejjmd0l.fsf@ambrevar.xyz> (raw)
In-Reply-To: <86ft3z9sao.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2275 bytes --]
zimoun <zimon.toutoune@gmail.com> writes:
> On Mon, 21 Dec 2020 at 14:33, Pierre Neidhardt <mail@ambrevar.xyz> wrote:
>> zimoun <zimon.toutoune@gmail.com> 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 “guix pull” 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 “pull“ writes both on the target.
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
> “/root/.cache/guix/checkouts“, I guess.
Yes, which is a problem I think.
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]
next prev parent reply other threads:[~2020-12-21 15:26 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-20 9:12 Install `guix pull'ed Guix to target partition on system install Pierre Neidhardt
2020-12-21 11:57 ` zimoun
2020-12-21 12:26 ` Pierre Neidhardt
2020-12-21 13:07 ` zimoun
2020-12-21 13:33 ` Pierre Neidhardt
2020-12-21 13:56 ` zimoun
2020-12-21 14:47 ` Pierre Neidhardt [this message]
2020-12-21 16:26 ` zimoun
2020-12-21 16:49 ` Pierre Neidhardt
2020-12-21 17:06 ` zimoun
2020-12-21 17:12 ` Pierre Neidhardt
2020-12-21 17:53 ` zimoun
2020-12-21 19:39 ` Pierre Neidhardt
2020-12-21 23:50 ` zimoun
2020-12-22 12:28 ` Ricardo Wurmus
2020-12-22 13:16 ` zimoun
2020-12-22 0:29 ` zimoun
2020-12-22 9:44 ` Pierre Neidhardt
2020-12-22 10:46 ` zimoun
2020-12-22 11:51 ` Carlo Zancanaro
2020-12-22 13:06 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eejjmd0l.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=help-guix@gnu.org \
--cc=zimon.toutoune@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.