From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QK5VG1LP+mEfQwAAgWs5BA (envelope-from ) for ; Wed, 02 Feb 2022 19:37:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kBjlF1LP+mFFsAAAauVa8A (envelope-from ) for ; Wed, 02 Feb 2022 19:37:06 +0100 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 1CC0F43310 for ; Wed, 2 Feb 2022 19:37:06 +0100 (CET) Received: from localhost ([::1]:32928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFKV7-00028V-4X for larch@yhetil.org; Wed, 02 Feb 2022 13:37:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49760) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFJCl-0005Gs-5m for guix-patches@gnu.org; Wed, 02 Feb 2022 12:14:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFJCk-00007A-Py for guix-patches@gnu.org; Wed, 02 Feb 2022 12:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFJCk-0000Gw-Jm for guix-patches@gnu.org; Wed, 02 Feb 2022 12:14:02 -0500 Subject: bug#53672: [PATCH] guix system: 'describe' shows the running system, not the current one. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Wed, 02 Feb 2022 17:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 53672 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Cc: 53672-done@debbugs.gnu.org Mail-Followup-To: 53672@debbugs.gnu.org, ludo@gnu.org, ludo@gnu.org Received: via spool by 53672-done@debbugs.gnu.org id=D53672.1643821995962 (code D ref 53672); Wed, 02 Feb 2022 17:14:02 +0000 Received: (at 53672-done) by debbugs.gnu.org; 2 Feb 2022 17:13:15 +0000 Received: from localhost ([127.0.0.1]:53298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFJBy-0000FS-LH for submit@debbugs.gnu.org; Wed, 02 Feb 2022 12:13:14 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:38560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFJBv-0000F4-Gj for 53672-done@debbugs.gnu.org; Wed, 02 Feb 2022 12:13:12 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id CE69718E; Wed, 2 Feb 2022 18:13:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kInK11AquZ5L; Wed, 2 Feb 2022 18:13:04 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 85819123; Wed, 2 Feb 2022 18:13:03 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20220131223618.30022-1-ludo@gnu.org> Date: Wed, 02 Feb 2022 18:13:03 +0100 In-Reply-To: ("=?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?="'s message of "Tue, 01 Feb 2022 17:54:08 +0800") Message-ID: <87iltxry3k.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: CE69718E X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[outlook.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[outlook.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643827026; 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: content-transfer-encoding:content-transfer-encoding:resent-to: 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; bh=0zov6M7w9WkWoDk61Dj9PYiYiMmXoWTTf9saMGyaI9w=; b=WmngT712vWQc+70tPzAHrySOqCZhu1TDIEf5bqvRh1K3c1mRcYA9+bhpegqB97Or2pVTtz G/gX07CqXhcr5gSK0cUU01kobFEulyTw0ZqqILXmDQkIFxJ011mp0EKlw6sev0LlpfOuGe gktPBuS9Wh8ayFCsZeIB+j5fNAtQPBTVwtzky6VJ9TbPixGlDdb6qq986YUg+EcfYdKUoK qXXchY0apEj318v1eS1cL4l9JwT4nC0Gm6u5qu6sgTAXOy+ttLE+OTNsvmNnYyMcH87nhc xcKL5zDiZPKSy4p6+oWj34avp++aMceumfFHeViBx0K/DYZ1Pjreompog/ZOnA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643827026; a=rsa-sha256; cv=none; b=dFt96+IL6WbmLs4HVJVInxkTe719pD1VMj/kL8YnTABPMytk9EGwhzVZUODZd+9hKLL+4e 4XlB1V80PQkFsZ38ENTRIxtbti4DIDBO56CkRxfBLlJHDUi6jmd7Po4mrdz6nk3PL5Jyng ZMgmuGVLvOJKI4nGQDVR4nsg3zkWf/nlHsNFcueeORkWWC/BpIyosww4W5fcoq2ZQ/s4W6 Sx6gvrVLzwL106mbJWvaAGLaKEBjVeBzagPDWY3Q7rCj2JaC9HHxPU6T6RJXqa2DzwUL+f MQcF/wes5uKJN/pHZQTZJh/RC9LnLLIFv/m9Ya76zNK0Okig4WNs50bF/rMv6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1CC0F43310 X-Spam-Score: -3.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZhiJnRdDS0GE Hello! =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > Sound good to me! Well, I think "current" and "running" are the same > thing, I'd call the 'profiles/system' one "latest", so my understand is: > > 1. /run/booted-system: the system generation booted by bootloader. > > 2. /run/current-system: the system generation current running, same as > booted until we do a system 'reconfigure' or 'roll-back'. > > 3. /var/guix/profiles/system: always point to the latest system-*-link, > the default one in the bootloader, changed by a system 'reconfigure' > or 'roll-back'. > > Please correct me if it's wrong, thank you! You=E2=80=99re right, except for #3: if you do =E2=80=98guix system roll-ba= ck=E2=80=99 and reboot, then /var/guix/profiles/system points to a generation that=E2=80=99= s not the latest system-*-link but that is the currently running one. It sounds super confusing but it=E2=80=99s quite intuitive I think (I hope?= ). Applied now, thanks for taking a look! Ludo=E2=80=99.