From: 宋文武 <iyzsong@outlook.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 53672@debbugs.gnu.org
Subject: [bug#53672] [PATCH] guix system: 'describe' shows the running system, not the current one.
Date: Tue, 01 Feb 2022 17:54:08 +0800 [thread overview]
Message-ID: <TYCP286MB18973E081DB007E43B6C6917A3269@TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20220131223618.30022-1-ludo@gnu.org> ("Ludovic Courtès"'s message of "Mon, 31 Jan 2022 23:36:18 +0100")
Ludovic Courtès <ludo@gnu.org> 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 “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?
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!
next prev parent reply other threads:[~2022-02-01 9:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-31 22:36 [bug#53672] [PATCH] guix system: 'describe' shows the running system, not the current one Ludovic Courtès
2022-02-01 9:54 ` 宋文武 [this message]
2022-02-02 17:13 ` bug#53672: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=TYCP286MB18973E081DB007E43B6C6917A3269@TYCP286MB1897.JPNP286.PROD.OUTLOOK.COM \
--to=iyzsong@outlook.com \
--cc=53672@debbugs.gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.