guix system: 'describe' shows the running system, not the current one.
authorLudovic Courtès <ludo@gnu.org>
Mon, 31 Jan 2022 22:29:37 +0000 (23:29 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 2 Feb 2022 17:12:22 +0000 (18:12 +0100)
commit9679123ce083c69cdfd1505d95a4066d41280394
treec163a7ca6978fc2da86801cc0b12e158b3874561
parent62e3ba78afb8fc4e2b32cb55e18a7d6dcbb26bcb
guix system: 'describe' shows the running system, not the current one.

* 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
guix/profiles.scm
guix/scripts/system.scm