From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iCErMEbxQ2LYwwAAgWs5BA (envelope-from ) for ; Wed, 30 Mar 2022 07:57:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2LaYLUbxQ2L7uQAA9RJhRA (envelope-from ) for ; Wed, 30 Mar 2022 07:57:26 +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 A2C9E6C9B for ; Wed, 30 Mar 2022 07:57:26 +0200 (CEST) Received: from localhost ([::1]:36166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZRKf-0002Wf-CP for larch@yhetil.org; Wed, 30 Mar 2022 01:57:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZRKJ-0002WU-Gr for bug-guix@gnu.org; Wed, 30 Mar 2022 01:57:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZRKI-0001vZ-L2 for bug-guix@gnu.org; Wed, 30 Mar 2022 01:57:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZRKI-0004DZ-Dz for bug-guix@gnu.org; Wed, 30 Mar 2022 01:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#54631: Unable to determine system origin when configuration stored in guix channel Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 30 Mar 2022 05:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54631 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "Collin J. Doering" , 54631@debbugs.gnu.org Received: via spool by 54631-submit@debbugs.gnu.org id=B54631.164861978316157 (code B ref 54631); Wed, 30 Mar 2022 05:57:02 +0000 Received: (at 54631) by debbugs.gnu.org; 30 Mar 2022 05:56:23 +0000 Received: from localhost ([127.0.0.1]:34250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZRJf-0004CX-16 for submit@debbugs.gnu.org; Wed, 30 Mar 2022 01:56:23 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:53106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZRJd-0004CP-LF for 54631@debbugs.gnu.org; Wed, 30 Mar 2022 01:56:22 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4KSwfR1JtJz1LWpc; Wed, 30 Mar 2022 07:56:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4KSwfR1JtJz1LWpc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1648619775; bh=GnHYvMxQogcUGXlsp6rmyootTf4qFqPzglfaaQZxdL4=; h=Subject:From:To:Date:In-Reply-To:References:From; b=EYh+hh0XBe7mpoEcTuxSTCKqMvNTn5aZXAc8oKpdv7A4obHaC5UKFJ1KSPy7nWrtQ 4Gl/lRj4Bt1pfck3LG6hGM9ynGG23DKmkvHcNsIzpZM8CwmTWR6Sn6mpcqH5rBIe+K JX/8C+/ww6ErQfdmIEXFea31v1RbMl2iV/4eOHts= Message-ID: From: Liliana Marie Prikler Date: Wed, 30 Mar 2022 07:56:14 +0200 In-Reply-To: <87k0cc2o1q.fsf@rekahsoft.ca> References: <87k0cc2o1q.fsf@rekahsoft.ca> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 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" Authentication-Results: aspmx1.migadu.com; none X-Migadu-Scanner: scn1.migadu.com X-TUID: kuGRZ+bmkzww Am Dienstag, dem 29.03.2022 um 22:03 -0400 schrieb Collin J. Doering: > [...] > Notice how there is no way to see which configuration was used to > create the system. The key here is that you're using a configuration expression rather than a file. Were you to write those files to disk in let's say config-a.scm and config-b.scm respectively and refer to them on the command line like that, you'd have a configuration file guix could refer to. Alternatively, Guix could take the expression specified via -e and write it to disk. Note that some configuration files are meaningless even if written to disk, for example... > The second issue is that when `-L|--load-path` is used along with > either a file or expression to specify the operating-system or home- > configuration, it essentially 'tarnishes' the provenance of the > system, in that the following deployment is not differentiable from > the preceding one/s, despite them being different. > > --8<---------------cut here---------------start------------->8--- > sudo -i guix system reconfigure -L my-local-channel-but-with-changes > -e '(@ (my config system-a) %system)' > --8<---------------cut here---------------end--------------->8--- > > --8<---------------cut here---------------start------------->8--- > ➜ guix system describe        > Generation 32   Mar 28 2022 23:10:01    (current) >   file name: /var/guix/profiles/system-32-link >   canonical file name: /gnu/store/s1f82wy0mj1zv3jvrzzc86h86zrdv336- > system >   label: GNU with Linux 5.16.16 >   bootloader: grub-efi >   root device: label: "root" >   kernel: /gnu/store/s1f82wy0mj1zv3jvrzzc86h86zrdv336-linux- > 5.16.16/bzImage >   channels: >     guix: >       repository URL: https://git.savannah.gnu.org/git/guix.git >       branch: master >       commit: e584a093f943be216fdc93895281fde835836b8d >     my-config-channel: >       repository URL: https://not-yet-on-the-internet.com >       branch: master >       commit: 918a3bf799038a019c7394cda480ee67db8a0009 > --8<---------------cut here---------------end--------------->8--- LOAD_PATH tweaking should be considered harmful and void your provenance, at least w.r.t. channels. There's no sane way for guix to check whether the load paths you added still exist after reconfiguration, other than placing the entire directory in the store. Cheers