1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-26 19:11:46 +02:00

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.
This commit is contained in:
Ludovic Courtès
2022-01-31 23:29:37 +01:00
parent 62e3ba78af
commit 9679123ce0
3 changed files with 24 additions and 7 deletions
+13 -1
View File
@@ -35811,9 +35811,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