From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0r.migadu.com with LMTPS id 2MGnBMNDjWDYZQEALuJCtg (envelope-from ) for ; Sat, 01 May 2021 14:04:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YNpWAMNDjWAMdAAAbx9fmQ (envelope-from ) for ; Sat, 01 May 2021 12:04:19 +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 6F3BF11086 for ; Sat, 1 May 2021 14:04:18 +0200 (CEST) Received: from localhost ([::1]:59718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcoM5-000723-LL for larch@yhetil.org; Sat, 01 May 2021 08:04:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcl3D-0000l7-A8 for guix-devel@gnu.org; Sat, 01 May 2021 04:32:35 -0400 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]:41609) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcl38-0004Ws-EU for guix-devel@gnu.org; Sat, 01 May 2021 04:32:35 -0400 Received: by mail-io1-xd2b.google.com with SMTP id f21so236991ioh.8 for ; Sat, 01 May 2021 01:32:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=5N9FToBb4x434CEn4YCh7+MgKYP8/JSujeQN6czi3Q4=; b=AM5vpAjOcVeGiS/NqD67ScBIL8TM8WSmwMTwITNNGOZsCiW29ems6pNm5skw+1lkHV GrARq8BnyZi0qHeFN/GVjq13JCyAYvlk0jHZz2dPF3YqxCIT+dSp4peXYGkLzZcNBm5X rnugWclCGsKPigYvlcPpFD7Dkw60kqwn47l32ASnp8sXaAh5o1IpjVh+0WGyWScFQZlL 5J7CGtb2Ua1OzLCPmNUmAILYBNDMSRxECsICBSjzSuKL0Ck+mYHDz50ytE8kvLlcXHot 1eCmrRjDrJCxihY2n85Ho0ni0QzFFfGTSn5XfuLjZe/ram8clWiA3yPwgrnxw5B53GS9 EBgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=5N9FToBb4x434CEn4YCh7+MgKYP8/JSujeQN6czi3Q4=; b=PYQYCt2WNZrSqvOJjRiGY18ZwtVjsngbktl/LiVsVqqhL8GQTLfzxisbQMfR9w2tEi gM4+rqCpdd1ClCsUsFqfMixDnLzWpsNRZyiexHk7uW+T+0NJL+YXKnBZgfLOrrMGjmDU 7E09IUo9+/qqIYyNp/0EsdiHWY0tcD9Z8DEzqwrijgjJnNkUcd5IhOFWXD4dU8+AXGDR iFtEm1vdAbqhOYgevGc3dOAMJ7kO1QQzWbAe0zHl8ijN95It5wA8I7fhK96hgpb3Mp2R 3oNfkaz2LzPd2c2X2CGwyyiupdKbjH+HGj44YbFytAx3upd9CJLvxn1POjtBxE05OYwN mCEw== X-Gm-Message-State: AOAM530Vuz/31vXc/gQqJWt+Somsp3F6YNWw5bpBPtPIaTt1LeXkSchZ hcDbCXs1JhOw/xvmzajhn+YGUPxv0CRclCOlroTVADzbqAM= X-Google-Smtp-Source: ABdhPJydLJz6VtFi+8kxULycqZ3R12A5xh+/VT8JPPTBCGJjAJy2SS6cvI55EOZX9L8RjkpmF7b4RkdlY6jnKyhwR2E= X-Received: by 2002:a05:6638:a2c:: with SMTP id 12mr8535381jao.99.1619857949010; Sat, 01 May 2021 01:32:29 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Vladilen Kozin Date: Sat, 1 May 2021 09:32:15 +0100 Message-ID: Subject: Re: Unfortunate statefulness of Guix Install image To: guix-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::d2b; envelope-from=vladilen.kozin@gmail.com; helo=mail-io1-xd2b.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 01 May 2021 08:04:07 -0400 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=1619870658; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=5N9FToBb4x434CEn4YCh7+MgKYP8/JSujeQN6czi3Q4=; b=ITqXwzYdTSQaz1hC/xhRPplOysWRueJRXU3TWpAPL1ifMMYDNK1SzC1D4yBFLF90HIGifj kC0MkNYDoryC8fDwBAFtwLpSZx/PLXQYBbY/kTIQhWOvobhutB4coh/gciVTXVS9Koib0a 3yhoVxOPI8e7qB12vSIJUiYpqEKppaYOJkn4BMY/FGFvss10tGuF+jbjJFBmdulYJrgUtZ sXTYAT2K92sW6d89zV/WPwtTDFbYoYX+D1Wg5SIPYa7o0nKgHi0t/kwlUaol7MSH18vxDk EDUHliB4BTqsmm8Ziji5I9XtvceuGgNEECdcjKka1xxY5MqypFnctisfTorM4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619870658; a=rsa-sha256; cv=none; b=YT7kAi0B/QMN00q4RpQt9nzKDM9LHfGuWAjdJRKwXSVs7wDdWK0abnG1oC3Vs4aefN7UAZ 8txkpK6K212Y012YMyFwYMzewqQEKU1qNQBkSuUzaqXUIPm7aHcZNlJ3dfsEeHCrWOB4lW ZoMDw0plnOHcwIsmq8Xxxnkwn3xMz3b43D2iXFtVk1qjy4BEhtnQauTwBmiFvViw7lHGOZ 1828Nvx95IZEc8OTqWW7Pf+L9nD2Uwnp2UlPypDmpm7PlSshgOxZOy6BVAXWUji4ueCelC wYhVThO+83deKQxohaRKL9xmEXQdLmSLLe3S18obGM8Cjo/31kr3IfizMHTbQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=AM5vpAjO; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=AM5vpAjO; dmarc=pass (policy=none) header.from=gmail.com; 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: 6F3BF11086 X-Spam-Score: -3.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: k41nR732vnl5 If I read this https://guix.gnu.org/manual/en/html_node/The-Store.html#The-Store correctly, then perhaps a proper solution to this is to also supply --localstatedir in attempt to ensure that the db with metadata ends up on the target partition? So e.g. like this: guix system --localstatedir /mnt/var init /mnt/etc/config.scm /mnt I've not tried it, but if it is the way to solve this, then perhaps this extra step belongs in the Manual Installation section of the manual. On Fri, 30 Apr 2021 at 20:32, Vladilen Kozin wrote: > > Hello Guix. > > This may or may not be a "bug", but thought I'd report something I run > into. I found that GUI install never worked for me but booting off > Guix Install USB and then following > https://guix.gnu.org/manual/en/html_node/Manual-Installation.html > worked perfectly fine. Except, when you try to do the manual install > off the same USB ... twice. That is, having installed a system once > off that USB, you then try to install another and your `guix system > init path/to/config.scm /mnt` would almost immediately fail with error > saying that some expected derivation have not been found in the store. > > 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. > > I guess my complaint is that at least the manual way (maybe GUI > install, too) is completely stateful and turns that USB stick into > "consumable good" unless you know about the database. > > Sorry, dunno enough about Guix, so maybe I've been doing something wrong. > -- > Best regards > Vlad Kozin -- Best regards Vlad Kozin