diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-09-12 17:41:06 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-09-12 22:13:52 +0200 |
commit | 6d49355d8b69869ba46c7ca6a98eafc5dc6c4c64 (patch) | |
tree | e52b48be0d7dca9209d6e506f36815dc6931aa4c /guix | |
parent | ddfc2fd8e0b4a4d2aa647c7ebf98e521bcd9dc2a (diff) | |
download | gnu-guix-6d49355d8b69869ba46c7ca6a98eafc5dc6c4c64.tar gnu-guix-6d49355d8b69869ba46c7ca6a98eafc5dc6c4c64.tar.gz |
activation: Honor $GUIX_NEW_SYSTEM for use by 'guix system reconfigure'.
* gnu/build/activation.scm (activate-current-system): Honor
$GUIX_NEW_SYSTEM by default.
* guix/scripts/system.scm (switch-to-system): Set $GUIX_NEW_SYSTEM
before loading SCRIPT.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/scripts/system.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm index 7c0dde9030..056c8e6d30 100644 --- a/guix/scripts/system.scm +++ b/guix/scripts/system.scm @@ -199,6 +199,9 @@ it atomically, and then run OS's activation script." ;; The activation script may change $PATH, among others, so protect ;; against that. (return (save-environment-excursion + ;; Tell 'activate-current-system' what the new system is. + (setenv "GUIX_NEW_SYSTEM" system) + (primitive-load (derivation->output-path script)))) ;; TODO: Run 'deco reload ...'. |