mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
reconfigure: /run/current-system points to generation.
* guix/scripts/system/reconfigure.scm (switch-system-program): Set ‘GUIX_NEW_SYSTEM’ to GENERATION rather than OS, for consistency with what ‘boot-system’ does. * gnu/tests/reconfigure.scm (run-switch-to-system-test) ["script activated the new generation"]: Adjust accordingly. Change-Id: I57b693606a41b8c952df32bbdc2b9120c6dbfd6a
This commit is contained in:
parent
682d13bf39
commit
a7f15c9ecf
2 changed files with 8 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2014-2022 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2014-2022, 2024 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
|
||||
;;; Copyright © 2016, 2017, 2018 Chris Marusich <cmmarusich@gmail.com>
|
||||
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||
|
@ -106,7 +106,7 @@ atomically, and run OS's activation script."
|
|||
(generation (generation-file-name profile number)))
|
||||
(switch-symlinks generation #$os)
|
||||
(switch-symlinks profile generation)
|
||||
(setenv "GUIX_NEW_SYSTEM" #$os)
|
||||
(setenv "GUIX_NEW_SYSTEM" generation)
|
||||
(primitive-load #$(operating-system-activation-script os))))))))
|
||||
|
||||
(define* (switch-to-system eval os #:optional profile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue