From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kA6CDD52k2TnTwEASxT56A (envelope-from ) for ; Thu, 22 Jun 2023 00:14:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id bj28Cz52k2Q3swAAG6o9tA (envelope-from ) for ; Thu, 22 Jun 2023 00:14:22 +0200 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 B3DE933358 for ; Thu, 22 Jun 2023 00:14:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qC65U-0007T5-89; Wed, 21 Jun 2023 18:14:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qC65S-0007Sf-8I for bug-guix@gnu.org; Wed, 21 Jun 2023 18:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qC65R-0007Zu-T0 for bug-guix@gnu.org; Wed, 21 Jun 2023 18:14:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qC65R-0005Ey-Nr for bug-guix@gnu.org; Wed, 21 Jun 2023 18:14:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64196: Can't boot due to discrepancy between reconfigure and init Resent-From: Csepp Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 21 Jun 2023 22:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64196 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Josselin Poiret Cc: 64196@debbugs.gnu.org, Csepp Received: via spool by 64196-submit@debbugs.gnu.org id=B64196.168738561920109 (code B ref 64196); Wed, 21 Jun 2023 22:14:01 +0000 Received: (at 64196) by debbugs.gnu.org; 21 Jun 2023 22:13:39 +0000 Received: from localhost ([127.0.0.1]:34341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qC655-0005EG-CW for submit@debbugs.gnu.org; Wed, 21 Jun 2023 18:13:39 -0400 Received: from mx1.riseup.net ([198.252.153.129]:39840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qC653-0005E1-7z for 64196@debbugs.gnu.org; Wed, 21 Jun 2023 18:13:38 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4Qmd7H5yGJzDqnV; Wed, 21 Jun 2023 22:13:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1687385611; bh=bOsXTzbi5TXOhvXWr62JGBCEYDtzOX73atiQDYCd/z0=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=LiBiJcrqEtqveFyMLGoeCtu5kqFjPc2E5n2H5suJvoN7ugSiggixDdVOHGULLN3az onyo+eEf6Wf3OUhIcIZUhRb/ndsnSUiquFos6kup6LnzXHcVXIssinDYdA8wHmKZsc EU4uk6aoszX6mtXipbm3UAfRAggXnoyJ4kZYROKg= X-Riseup-User-ID: 057C01909C0D8E8E1344828B877DC0E5E82C6CAB5606CABAC6F4A7B8E8512C3B Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4Qmd740TgpzFrx9; Wed, 21 Jun 2023 22:13:19 +0000 (UTC) References: <87jzvxrk94.fsf@riseup.net> <87legd45t1.fsf@jpoiret.xyz> From: Csepp Date: Thu, 22 Jun 2023 00:08:36 +0200 In-reply-to: <87legd45t1.fsf@jpoiret.xyz> Message-ID: <877crwmpl1.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687385661; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=3YtcpnWZ4NAQJPrOKZbfxo3D7ZWwwGZttkpu6bsQX2Q=; b=WRKGEF3CEMbKrPJMnRe2igMWWSKBm0hLd0ARUdtN1Pv124XiTgYeP0nOqLPI2/KiBIixzt bmtuXTbuBpZIbqK6kQyLFaDpbQIP64wG5V34e0oY9rf7t9iZ5jyYSGBZoBqBwSvblI1NxZ IZm81coJtdOvkLJWXRAbD+PlOpeRBvVHCq3eXk7E+J+SPSfGn8WLwe+4EuoHrk8LZDpeKn PlR+ePPGFoYfHMBq275OZIKq8L6AgVN2X4GEIsjhygDhXO13X5UX2i7hQ/akp2c1Y8YBK0 k86IMMJ0apqqp790jXTRRfYjQxkZVLWWKZCD4KWU/YUb/+8htoRFp6UXEY01Ug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=LiBiJcrq; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687385661; a=rsa-sha256; cv=none; b=F/FEQPu21nWU9UZlcDxRnlMrXoSEEdLGR+3o7Zw21tfXlv6HKsbbOvcFUirpKq2VQkJAYu DtvPwkF3vmwAB1ujnThvmnqsfxErNrh674EP7TqKdKfqoOlJNY+sG+N9h9O6+noYkPszUV x+DSGDnqF7iozxKtMiFwzpSLAOLWCI+qdFhwLkR3URwUvgl/wSa6glTJRUqRdnZXvcpNO1 bbqRlW08KjBHpaFKxM6DAFDMj3/HkGJ/MDbCv9Y3TvwoLWZN081euCraNR6m+4l7kzEGpp iKUz0fBSrTv/39Rys9sruc3HH5VhlI5V1k/i9bgq/+0pq0IQwtX6CL6Wu20AhA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=LiBiJcrq; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B3DE933358 X-Spam-Score: -0.75 X-TUID: 8JDp7PFU1zQX Josselin Poiret writes: > [[PGP Signed Part:Undecided]] > Hi Csepp, > > Csepp writes: > >> I'm trying to move my installation from /dev/sda to /dev/sdb, I created >> the file system and changed the bootloader config in my operating-system >> definition to point to /dev/sdb and the file-system to use the correct >> UUID (previously it was using a label). >> First I tried to simply reconfigure my running system and then taking a >> BTRFS snapshot and copying that over the /dev/sdb1, but that failed. > > Any reason you didn't try in the reverse order? This seems prone to error. Since reconfigure overwrites /dev/sdb, I don't see how reversing the order would fix things?? Maybe copying the file system over and *then* running init would make sense. >> The exact error was GRUB not being able to find a file system with a >> given UUID, which matched the UUID of /dev/sda1. This error happened >> before GRUB loaded any of its modules, so I was dropped into a rescue >> shell. >> I thought this might be related to subvolumes, maybe I originally used >> the wrong config and the updated config was written to a different >> subvolume and GRUB doesn't recognize the default subvolume ID option on >> the BTRFS partition. >> I think this is a fairly critical error. > > This is too fuzzy to be actionable, but if you manage to reproduce > reliably then I would gladly take a look at it. I tried reproducing it, it seems to happen every time, but I can try to create a more minimal test case. >> The error doesn't manifest when I run guix system init with the same >> config, so there is some (possibly un(der)documented) difference between >> guix system reconfigure and guix system init that makes the former rely >> on the state of the running system in a way that doesn't take into >> account the new configuration. > > I don't think there is, the biggest difference is that `guix system > init` will copy stuff into the target store and initialize the basic > directories for Guix, whereas reconfigure will just build everything in > the current store. > > Best, I mean, that's the theory, but either Guix or GRUB seems to get the incorrect UUID from *somewhere*.