From: Tobias Geerinckx-Rice <me@tobias.gr>
To: Vladilen Kozin <vladilen.kozin@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Unfortunate statefulness of Guix Install image
Date: Sat, 01 May 2021 15:48:01 +0200 [thread overview]
Message-ID: <87y2cypnu6.fsf@nckx> (raw)
In-Reply-To: <CACw=CXO9E_wLEhzM8mbd9g-C3MwFZdsEpnOz8-VdoLaZ9bEKHw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1420 bytes --]
Vladilen,
I'm writing mainly to save you some time testing ‘guix system init
--localstatedir’. That is a ./configure option used when building
Guix from source. I don't think any option will help you here.
Vladilen Kozin 写道:
> Except, when you try to do the manual install off the same USB
> ... twice.
You're likely the first person to try this!
I *think* it implies that /var/guix/db is low-key bogus once
cow-store is stopped, but I didn't test that assertion. It should
be reverted together with /gnu/store.
IMO what you want should be possible. That it's not is a bug,
albeit a low-priority one.
> My best guess from what I've read in the manual is this. Store
> is not
> the only place where derivations appear. /var/guix/db stores
> metadata
> about said derivations. So the first time you do `herd start
> cow-store
> /mnt` trick it'll create the store there but will populate the
> db on
> that USB drive. Next time you try to install from that same USB
> on a
> different machine it'll have its db reference derivations that
> are no
> longer available. I worked around this by stupidly `mv
> /var/guix/db
> /var/guix/db.old` and `guix system init` went without trouble.
This is a relatively simple fix. Thanks for testing it. Would
you be able and willing to modify cow-store to handle /var/guix/db
as well?
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]
prev parent reply other threads:[~2021-05-01 13:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-30 19:32 Unfortunate statefulness of Guix Install image Vladilen Kozin
2021-05-01 8:32 ` Vladilen Kozin
2021-05-01 13:48 ` Tobias Geerinckx-Rice [this message]
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=87y2cypnu6.fsf@nckx \
--to=me@tobias.gr \
--cc=guix-devel@gnu.org \
--cc=vladilen.kozin@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.