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 ms0.migadu.com with LMTPS id YObbKE9cjWCsagAAgWs5BA (envelope-from ) for ; Sat, 01 May 2021 15:49:03 +0200 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 isSIJE9cjWCuBwAAB5/wlQ (envelope-from ) for ; Sat, 01 May 2021 13:49:03 +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 5B097128C8 for ; Sat, 1 May 2021 15:49:03 +0200 (CEST) Received: from localhost ([::1]:35046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcpzS-0003Cb-I7 for larch@yhetil.org; Sat, 01 May 2021 09:49:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcpyd-0001xf-9a for guix-devel@gnu.org; Sat, 01 May 2021 09:48:11 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:60838) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcpyY-0000bR-3u for guix-devel@gnu.org; Sat, 01 May 2021 09:48:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=vK7kOGZnTN5E22PsNGM9sb0mU0dFFhd390F7TfPfoLY=; h=date:in-reply-to: subject:cc:to:from:references; b=M785K65Nrr05jWZiEjtunx8BKX0Y0r2D/2w7Q fbchMlQJn3mf+mDAg9kZ9SK3ApVX1Sp2/CdwGStJ1PxwOoAyOG2Wlz4N3mmjD3Y9ZSOGZZ /SfjlzTGSwuryj/G/Nxrx4HtQxm8NNYNXjD6zy9sZjGQxgm49TTh/avxEsmJlztk14Md31 AteK/yXeMUgklwPqCimrNo/Nq8HcjNiNx/rpDsc98XtpLUe8f96+xEhpg+pBGVdS32JBxn pbYJpAPxg5MzQb91Isn3PnvExfAshH1VA8ZeB6efTvzoC1A1Co1oP0VlHhdlbr3Z4TGEXy qOIB1khloDFnPxZSmzvwN5Zfg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id babbdba0 (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Sat, 1 May 2021 13:48:11 +0000 (UTC) References: From: Tobias Geerinckx-Rice To: Vladilen Kozin Cc: guix-devel@gnu.org Subject: Re: Unfortunate statefulness of Guix Install image In-reply-to: BIMI-Selector: v=BIMI1; s=default; Date: Sat, 01 May 2021 15:48:01 +0200 Message-ID: <87y2cypnu6.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619876943; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vK7kOGZnTN5E22PsNGM9sb0mU0dFFhd390F7TfPfoLY=; b=rpXQuzaNA9lSf2Li7Y3KHOhiEXjljAtfuHRryKK2ivvaHjZRCIN2b7KharcEQSyBL45XHL CzFXFIyizoxjP3q/PbuAdT5rVA3Y70ZxjjY/c75qWFYlrQ5nJbsem0Cr+GqwHwfbsd17h3 Coh1xmQOvjnvH/10PxtTjLfAxE202cPrmCp0JPnZyemD54blcHhJ3gioIZ2l+xylanjFVT FqZVpF5TOakfJRwElUuW/xvBepDQrI1PZ+lsxr/Czm76S8atp+WLmM3ffNSTu+e8ezngpI Wp6Xzrysdv5ZYsgy4HRoEBD9z/paJA3r121s0woKr7URp9eouxb8QBP0kzXB2w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619876943; a=rsa-sha256; cv=none; b=vAS1ViDWLOyxOIK7PYA7BYzgpVRPZiWjpF5aC7y1b8YUZ1GbIdcbpdRjoUbeCht9tnyibD P8J2n3Uh26RoN0rAkyN1rQX5NDIvUEmEiI7nuhPtDJ2k048wbRQyQGZDZxQQNejeph064B bjOrEaCv9H2MBLUhusc/TxNb3rywAb2EWlZcI8s5FurdbjD908RqDWxRzBgonD1QiUwf+m ZZrXbsTXOmPLw6LWXbR+iY3Y7STn/tMWlPHptIUsoamoB0FLofz5j/vklFYvw64xB/xhAo o7v3R2fuog/pEtpccIwURDUcQfeWAXgMAymj4ibd6f51VLiwD7gUn5TyiishBg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=M785K65N; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -4.76 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=M785K65N; dmarc=pass (policy=reject) header.from=tobias.gr; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 5B097128C8 X-Spam-Score: -4.76 X-Migadu-Scanner: scn0.migadu.com X-TUID: ODnsMG00lNaq --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Vladilen, I'm writing mainly to save you some time testing =E2=80=98guix system init= =20 =2D-localstatedir=E2=80=99. That is a ./configure option used when buildin= g=20 Guix from source. I don't think any option will help you here. Vladilen Kozin =E5=86=99=E9=81=93=EF=BC=9A > 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=20 cow-store is stopped, but I didn't test that assertion. It should=20 be reverted together with /gnu/store. IMO what you want should be possible. That it's not is a bug,=20 albeit a low-priority one. > My best guess from what I've read in the manual is this. Store=20 > is not > the only place where derivations appear. /var/guix/db stores=20 > metadata > about said derivations. So the first time you do `herd start=20 > cow-store > /mnt` trick it'll create the store there but will populate the=20 > db on > that USB drive. Next time you try to install from that same USB=20 > on a > different machine it'll have its db reference derivations that=20 > are no > longer available. I worked around this by stupidly `mv=20 > /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=20 you be able and willing to modify cow-store to handle /var/guix/db=20 as well? Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYI1cEQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15J7gBAMAaZY+ZqrW4T/HJc7EEOcIQx1NpTei5phsswtP0 U/lNAP9FFVDID2lF6mJ9a2TRf5huH6wzNa2C6DbqcC2HrPK9Dg== =v2A1 -----END PGP SIGNATURE----- --=-=-=--