guix: Fix system reconfigure.
This is a follow-up to 378daa8cb6
.
* guix/scripts/system.scm (switch-to-system): Lower the script.
This commit is contained in:
parent
a34801ca68
commit
945449b40b
|
@ -3,6 +3,7 @@
|
||||||
;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
|
;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
|
||||||
;;; Copyright © 2016, 2017, 2018 Chris Marusich <cmmarusich@gmail.com>
|
;;; Copyright © 2016, 2017, 2018 Chris Marusich <cmmarusich@gmail.com>
|
||||||
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
|
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -353,7 +354,7 @@ bring the system down."
|
||||||
"Make a new generation of PROFILE pointing to the directory of OS, switch to
|
"Make a new generation of PROFILE pointing to the directory of OS, switch to
|
||||||
it atomically, and then run OS's activation script."
|
it atomically, and then run OS's activation script."
|
||||||
(mlet* %store-monad ((drv (operating-system-derivation os))
|
(mlet* %store-monad ((drv (operating-system-derivation os))
|
||||||
(script (operating-system-activation-script os)))
|
(script (lower-object (operating-system-activation-script os))))
|
||||||
(let* ((system (derivation->output-path drv))
|
(let* ((system (derivation->output-path drv))
|
||||||
(number (+ 1 (generation-number profile)))
|
(number (+ 1 (generation-number profile)))
|
||||||
(generation (generation-file-name profile number)))
|
(generation (generation-file-name profile number)))
|
||||||
|
|
Loading…
Reference in New Issue