From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 31 17:36:39 2022 Received: (at submit) by debbugs.gnu.org; 31 Jan 2022 22:36:39 +0000 Received: from localhost ([127.0.0.1]:41114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEfHr-0006H0-1S for submit@debbugs.gnu.org; Mon, 31 Jan 2022 17:36:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:35152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEfHo-0006Gs-J4 for submit@debbugs.gnu.org; Mon, 31 Jan 2022 17:36:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEfHm-0004qI-Km for guix-patches@gnu.org; Mon, 31 Jan 2022 17:36:36 -0500 Received: from [2001:470:142:3::e] (port=57486 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEfHd-0000rc-Po; Mon, 31 Jan 2022 17:36:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=RzwyxDWMQSLnaEcrnzDVqMY7duzs4kx7hkZK6iHRzvU=; b=GVvxt8APk4lKZf sgi/xZCQlCspl92NO87usfIGF0bnL0M61JV77sa3pnS2CpbWmVSSGhJ3cpXl73sTdh3I6Zwndk2ML Bc52c1F02182SW2d1dJrLmfNrMpWGlbKERycQy7mVNHdKv4cROxjrLB28P/qy1Zsg5RUR217LpGgN UyFQorgE+d0b/jdoLXqhdRTjERnfU2OZLDhP1AaD092b+ql4wyzIA+D+Sm2wJJ/GPLkB2Tv3TBsXO MGesjTb8Qal/+RjaBnyQDVUtz5FeD0vbyMMJCBk1xCWYhsMTLO7lcCngZFAN9hvlrWYO+zMFwUuvf ErhcS3RBTl9mfwt+1iRg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:56714 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nEfHc-0001oZ-IM; Mon, 31 Jan 2022 17:36:25 -0500 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH] guix system: 'describe' shows the running system, not the current one. Date: Mon, 31 Jan 2022 23:36:18 +0100 Message-Id: <20220131223618.30022-1-ludo@gnu.org> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * guix/profiles.scm (generation-number): Add optional 'base-profile' parameter and use it. * guix/scripts/system.scm (process-command): Add "/run/current-system" as first argument to 'generation-number'. * doc/guix.texi (Invoking guix system): Clarify that 'guix system describe' shows the running system. --- doc/guix.texi | 14 +++++++++++++- guix/profiles.scm | 13 +++++++++---- guix/scripts/system.scm | 4 ++-- 3 files changed, 24 insertions(+), 7 deletions(-) Hello! Having reconfigured my system, generation N was “current”. I booted into generation N-1 and noticed that ‘guix system describe’ would still display generation N—the “current” generation, but not the one I’m actually running. I think it’s counter-intuitive so this patch changes that so that ‘guix system describe’ shows the “running” generation—which, in this case, is N-1. Objections? Thoughts? Ludo’. diff --git a/doc/guix.texi b/doc/guix.texi index 94f8e5e481..8f5312217f 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -35724,9 +35724,21 @@ bootloader boot menu: @table @code @item describe -Describe the current system generation: its file name, the kernel and +Describe the running system generation: its file name, the kernel and bootloader used, etc., as well as provenance information when available. +@quotation Note +The @emph{running} system generation---referred to by +@file{/run/current-system}---is not necessarily the @emph{current} +system generation---referred to by @file{/var/guix/profiles/system}: it +differs when, for instance, you chose from the bootloader menu to boot +an older generation. + +It can also differ from the @emph{booted} system generation---referred +to by @file{/run/booted-system}---for instance because you reconfigured +the system in the meantime. +@end quotation + @item list-generations List a summary of each generation of the operating system available on disk, in a human-readable way. This is similar to the diff --git a/guix/profiles.scm b/guix/profiles.scm index 1d354ecb78..96be421727 100644 --- a/guix/profiles.scm +++ b/guix/profiles.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès +;;; Copyright © 2013-2022 Ludovic Courtès ;;; Copyright © 2013 Nikita Karetnikov ;;; Copyright © 2014, 2016 Alex Kost ;;; Copyright © 2015 Mark H Weaver @@ -2037,9 +2037,14 @@ (define (profile-regexp profile) (make-regexp (string-append "^" (regexp-quote (basename profile)) "-([0-9]+)"))) -(define (generation-number profile) - "Return PROFILE's number or 0. An absolute file name must be used." - (or (and=> (false-if-exception (regexp-exec (profile-regexp profile) +(define* (generation-number profile + #:optional (base-profile profile)) + "Return PROFILE's number or 0. An absolute file name must be used. + +Optionally, if BASE-PROFILE is provided, use it instead of PROFILE to +construct the regexp matching generations. This is useful in special cases +like: (generation-number \"/run/current-system\" %system-profile)." + (or (and=> (false-if-exception (regexp-exec (profile-regexp base-profile) (basename (readlink profile)))) (compose string->number (cut match:substring <> 1))) 0)) diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 414e931c8a..430815902d 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès +;;; Copyright © 2014-2022 Ludovic Courtès ;;; Copyright © 2016 Alex Kost ;;; Copyright © 2016, 2017, 2018 Chris Marusich ;;; Copyright © 2017, 2019 Mathieu Othacehe @@ -1328,7 +1328,7 @@ (define-syntax-rule (with-store* store exp ...) (x (leave (G_ "wrong number of arguments~%")))))) (list-generations pattern))) ((describe) - (match (generation-number %system-profile) + (match (generation-number "/run/current-system" %system-profile) (0 (leave (G_ "no system generation, nothing to describe~%"))) (generation base-commit: 27c1d58d901dcf48929bcb6f76d861fc21575dbf -- 2.34.0 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 01 04:54:24 2022 Received: (at 53672) by debbugs.gnu.org; 1 Feb 2022 09:54:24 +0000 Received: from localhost ([127.0.0.1]:41784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEprk-0000W1-9Y for submit@debbugs.gnu.org; Tue, 01 Feb 2022 04:54:24 -0500 Received: from mail-tycjpn01olkn2061.outbound.protection.outlook.com ([40.92.99.61]:61520 helo=JPN01-TYC-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nEprh-0000Vi-Q9 for 53672@debbugs.gnu.org; Tue, 01 Feb 2022 04:54:22 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mhn5KRFBdfjAuWiW2s3iJ8T9fTPvf7AnwTGkPZLHiBPQlz0YWR8uMFazVmxF9+0vG7GmXc5JFi9j/EVjro/donuyLOCGYLK4FiBtF1prtkWJrDjMRssXQfBX9Jpwzxzq6I5BGIKVjjvQ9b4pvoim7nMSPfCJzZAEY1oZ2grfZOwi+dTu/cs0NSc2hisRMwXTeNr9Igxl6v+tyIwx/T1ct72rZIpltgETcAdvRLAnRv3CuXo9f7+keo7pSNWwoOuRtD3SoM16Ih3VswN9M8u18YtB0TVD8uHgaVq3D8O5cDViC2uhf8FnIo91APJkNdCKslXUaxE9wbYj3g3tX08/3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=EIEQzv5hDljyrJZsqxKXzT4fJ3K/unbPQ/UoVfByByE=; b=AsND09vk7WuaJxu+6M6vn1rF3dhvqVYKVJ44pkQ26yfvPAxRyDUUBtx9kSuksQ0UQpSoImSZrF3sYtPf5XO6JJCc2BXTXvBuHlvxvXvrVxy28tzOSN1yheqP9Y0PAHsYn63duGundIsTl5f/x96pvGvoo06qgvynJfHqjoFE8YwS/hfrjah+WZqfGOSZTStPRleW6EcVD7FNr9B1zhPLocK3hgLWq0678Le8Jr1HKq8FTdD3nfrPV2GhMNDPRM0X7YpzPD3wYeQcW1b+lxmeGE9GOgVHgV5mmBLDMrQSMqrGhLXyVd6i0MSVSs3bMLsUhy8u3Ta6es3nQD5NRduMtg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EIEQzv5hDljyrJZsqxKXzT4fJ3K/unbPQ/UoVfByByE=; b=Uiphcc49JNli53q5ucG1DHU1PgZiqIByYWDyW7F192bjYfcLtQMoq2ATSVr8iKbBJNx+j/5rNBAX9bvuqHdmhQzUJ5NoMqMoCCua9x/XApAFYmAcQJ0llY8Qle/H0fPl0SJm8W/IY7uipww/SILTN3uIWy3S4KJAEbXbLabroPkHsYVqNqNt86dErXbBYSU+OwnEs4jLfRmgRx3VNd9w7EqvsrSsJrc0yl8bJMIilAFWlv5d21L4u49USx+TII8g6ohRteAYP2J/28QxoCaoga3MBHgJyg8os5yrbVo2+8sDGCw6VANi8aZzFvzpSopmRAHmR2FPxve/PBEgnQ/rEg== Received: from TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11e::13) by OSZP286MB1984.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:181::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.15; Tue, 1 Feb 2022 09:54:13 +0000 Received: from TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM ([fe80::51f5:8561:6bc0:1f64]) by TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM ([fe80::51f5:8561:6bc0:1f64%4]) with mapi id 15.20.4930.020; Tue, 1 Feb 2022 09:54:13 +0000 From: =?utf-8?B?5a6L5paH5q2m?= To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#53672: [PATCH] guix system: 'describe' shows the running system, not the current one. References: <20220131223618.30022-1-ludo@gnu.org> Date: Tue, 01 Feb 2022 17:54:08 +0800 In-Reply-To: <20220131223618.30022-1-ludo@gnu.org> ("Ludovic =?utf-8?Q?Cou?= =?utf-8?Q?rt=C3=A8s=22's?= message of "Mon, 31 Jan 2022 23:36:18 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TMN: [shmQq4kghjq67fizICxtTiMR5vDE3c4v7xtLmJRhS2vxfS0dfnZloBAx3Rp0o50J] X-ClientProxiedBy: HK2P15301CA0019.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::29) To TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:11e::13) X-Microsoft-Original-Message-ID: <875ypy9akf.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bb788cce-d42c-40a2-09f5-08d9e568cd3d X-MS-TrafficTypeDiagnostic: OSZP286MB1984:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g6tPLkv+4deovT3YP4ssy6UTBxYEoc8LvRUZ7fVG2dUrPGioPdYkfM/RKABDgA14MXwAbt61Jsc+UE53V5G/5JiAX/3IBoLIQI4cGHbz5vp4xqinaNzuYV3+z1kETqIP1Op+xip5pIfMOenIJulrw8UBCx5SY+O5ZS3owxJs4gXuBvedw0JVZCkD1Mzi1aqgX3zxaibKEKilYYAmsjsi+mtmuzQ72HUatB0VrOSJVnN++q2DlrquZoxElPqiWF2NP8W9UPyXK9GIh8XPYoPY7gexLI9Ap+2HMiVgV8UAf8mvOifcbxyANn+CGqmRE0oXGfe9GOpjk8lSKZ74q4aNFDgVqlKfdgIPo0md4WELSyrSArGYfCPGiOxYXhGFI1lRGeIIXtXAqUFrIgUZR5VnTu6BzWZjFbI15m2m//HRzRYVm5zMDH4Yk3HxMvUc+RdUhoLkYi7KfOhLQCsSaKGy2ZR2Fiy7zTel0qClLcWuYXFh/d+bKeJN/kU8WmlOwCtC05fiho2Lj5TPxe3UeOXCWDpGVPekWXXXU2L2JIxCEE01lV5iANCkOUOXfCPB8rXn X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?N2VpWXZ6UUhVSkEwblFxQnZmaG5rZjBRUldxR2JVTmt5bmIzc3ZqUmZybHo1?= =?utf-8?B?L0p4aGZuMVZIUkhIT3N1M0ZCYUFPeHhTajRNcWp4bXJFRmFoMWFOMkJwaUpT?= =?utf-8?B?Sko2bUgxS2xaYmxiOGxoZVNjbnplR0tob1Y2VjdGK3RaQjNtZC9PK29PV3VJ?= =?utf-8?B?d0Y3QlJIaCtNWXMxaDIwSXZ3SllJbnF2c1JBdmdGM0xyaThSaVk0NWNhOHdv?= =?utf-8?B?bnB6OHdrbUEvMit4R1Fhd0w1emxjc3RibkV6aVpRK2R5bTBQSUlyWm44alpT?= =?utf-8?B?QmZCR1phTVI1R2RrTnZ4Z2xUeDRaaGRpNHh4dTZGbGw5ZndMekZkTmNqRENI?= =?utf-8?B?aXN4bVo0Tk9UUzc1ZCtLbTF3U3FTdHVWVGNLYktWSS9MRW1VbXVUVFhYRjda?= =?utf-8?B?ZTBwYVl4Q2RxL0I3cHNKLzVobW5HcDBodE5IZEFiRktlempySGNBM0xVQjcy?= =?utf-8?B?dUdKbURwaFpEUEU3OXh2K09XejNQT044M1BMb28vamtHUktxUHdXS2cvRXM4?= =?utf-8?B?K1hpRWFyZEVzM2hSVkNkcjNrc054ZFloT1pqQ1h6TWNYRnJDWUR2TzZFZ2xB?= =?utf-8?B?d2hiU3FhWGw1bnU1REZvT3E4VFRDSE1FSjNtMkhkWlpSN1pkNnlrRkpKNWlM?= =?utf-8?B?RGp2a3l2THFjZWs4UlpRNUw2ZVByT0t4NDJkc21MTWxDU0VEQlhGMVdPc1M0?= =?utf-8?B?YldSKzRCcW51NStKanA3QlJ2MDlqWE5lWmxCeW1yTU13NFZNaTU1a2lVZnk0?= =?utf-8?B?NS9mY2QrQWtvUUk0citrYmZ3Y1lUUkhuQzRMVVFCRGpEeTdkanltaVlVblh2?= =?utf-8?B?S1UyNEg0ZGtzNXJpU3hqeFdFcnBseStqMUlLUDZXNFBYZG5UL1AySFl5RVBs?= =?utf-8?B?S2hDcndRR3VNb0JFc2kwZjMzQi9mUEU3clpCTjVFbC9CTUF0NUVCZ2dRQnRo?= =?utf-8?B?M2tmTFRkTE9jY2NCRmdTaEd6WVd4YWNBanJjL0xlbHAyNXRUNUZnUkt4V3N0?= =?utf-8?B?LzBvdlM3ekdTMUpYZVFrUXpGM3V1ZWRuV3pjbzRsV3dRa0h0bzcyMkR0T0RX?= =?utf-8?B?VEt3S05hMHZTTHBvTFYyUkJTUjArbXptR1FuQUZZZHhwa0VKcG56YmI0R0Fr?= =?utf-8?B?ck1SME4zQnVlMERvUkNFc3ZMYVVHeEwwSFJKSHl3MnR4SzBReU43WUphaDly?= =?utf-8?B?VVcwNGFqLzFqbWc1bDFrNXZrRHdnK2RxUjlETEN3RGJTNEUwbzFwNkpKT1NK?= =?utf-8?B?bVJDV2xLNmlKYUpCSWxTckZMVlFvY0huSXhjRUlqTnY3VE1MRkFWUjY0eVp3?= =?utf-8?B?dktnQklWQmFZdzRRbVZvZ2JHMHN2NVR1OEhyd056TEE0R1lXYURpd09ZOGdx?= =?utf-8?B?aFl2UEQwM0ZwSFE9PQ==?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb788cce-d42c-40a2-09f5-08d9e568cd3d X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2022 09:54:13.7962 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZP286MB1984 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 53672 Cc: 53672@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ludovic Court=C3=A8s writes: > * guix/profiles.scm (generation-number): Add optional 'base-profile' > parameter and use it. > * guix/scripts/system.scm (process-command): Add "/run/current-system" > as first argument to 'generation-number'. > * doc/guix.texi (Invoking guix system): Clarify that 'guix system > describe' shows the running system. > --- > doc/guix.texi | 14 +++++++++++++- > guix/profiles.scm | 13 +++++++++---- > guix/scripts/system.scm | 4 ++-- > 3 files changed, 24 insertions(+), 7 deletions(-) > > Hello! > > Having reconfigured my system, generation N was =E2=80=9Ccurrent=E2=80=9D= . I booted > into generation N-1 and noticed that =E2=80=98guix system describe=E2=80= =99 would > still display generation N=E2=80=94the =E2=80=9Ccurrent=E2=80=9D generati= on, but not the one > I=E2=80=99m actually running. > > I think it=E2=80=99s counter-intuitive so this patch changes that so that > =E2=80=98guix system describe=E2=80=99 shows the =E2=80=9Crunning=E2=80= =9D generation=E2=80=94which, in this > case, is N-1. > > Objections? Thoughts? 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! From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 02 12:13:14 2022 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: =?utf-8?B?5a6L5paH5q2m?= Subject: Re: bug#53672: [PATCH] guix system: 'describe' shows the running system, not the current one. References: <20220131223618.30022-1-ludo@gnu.org> Date: Wed, 02 Feb 2022 18:13:03 +0100 In-Reply-To: (=?utf-8?B?IuWui+aWh+atpiIncw==?= 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: / Authentication-Results: hera.aquilenet.fr; none 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-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 53672-done Cc: 53672-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) 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. From unknown Mon Jun 23 13:12:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 03 Mar 2022 12:24:13 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator