aboutsummaryrefslogtreecommitdiff
path: root/guix/scripts
diff options
context:
space:
mode:
authorChris Marusich <cmmarusich@gmail.com>2016-12-02 01:52:04 -0800
committerLudovic Courtès <ludo@gnu.org>2016-12-05 23:19:37 +0100
commit067a2e2de9e5f8437ce020c62f64e08b82af72b8 (patch)
tree216dd46d9f104fe8ca310d19987f8cb8ef9dec16 /guix/scripts
parent4bd391f557a66660525805e9ea56d506f8eaed68 (diff)
downloadgnu-guix-067a2e2de9e5f8437ce020c62f64e08b82af72b8.tar
gnu-guix-067a2e2de9e5f8437ce020c62f64e08b82af72b8.tar.gz
guix system: If the new system generation already exists, overwrite it.
Fixes <http://bugs.gnu.org/25100>. Before that, 'guix system reconfigure' would fail if the next generation already existed. * guix/scripts/system.scm (switch-to-system): Use 'switch-symlink' instead of 'symlink'. * doc/guix.texi (Using the Configuration System, Invoking guix system): Document the behavior. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix/scripts')
-rw-r--r--guix/scripts/system.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index bb373a6726..144a7fd377 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -326,7 +326,7 @@ it atomically, and then run OS's activation script."
(let* ((system (derivation->output-path drv))
(number (+ 1 (generation-number profile)))
(generation (generation-file-name profile number)))
- (symlink system generation)
+ (switch-symlinks generation system)
(switch-symlinks profile generation)
(format #t (_ "activating system...~%"))