Archived
1
0
Fork 0

reconfigure: Run the effect scripts as separate processes.

Fixes <https://bugs.gnu.org/39301>.
Reported by strypsteen@posteo.net.

* guix/scripts/system/reconfigure.scm (switch-to-system)
(upgrade-shepherd-services, install-bootloader): Use 'system*' instead
of 'primitive-load'.
This commit is contained in:
Ludovic Courtès 2020-04-02 22:46:18 +02:00
parent a6850f6827
commit 5517750344
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -100,7 +100,7 @@ atomically, and run OS's activation script."
"Using EVAL, a monadic procedure taking a single G-Expression as an argument, "Using EVAL, a monadic procedure taking a single G-Expression as an argument,
create a new generation of PROFILE pointing to the directory of OS, switch to create a new generation of PROFILE pointing to the directory of OS, switch to
it atomically, and run OS's activation script." it atomically, and run OS's activation script."
(eval #~(primitive-load #$(switch-system-program os profile)))) (eval #~(system* #$(switch-system-program os profile))))
;;; ;;;
@ -176,10 +176,10 @@ services as defined by OS."
(map live-service-canonical-name (map live-service-canonical-name
live-services))) live-services)))
(service-files (map shepherd-service-file target-services))) (service-files (map shepherd-service-file target-services)))
(eval #~(primitive-load #$(upgrade-services-program service-files (eval #~(system* #$(upgrade-services-program service-files
to-start to-start
to-unload to-unload
to-restart))))))) to-restart)))))))
;;; ;;;
@ -252,9 +252,9 @@ additional configurations specified by MENU-ENTRIES can be selected."
(package (bootloader-package bootloader)) (package (bootloader-package bootloader))
(device (bootloader-configuration-target configuration)) (device (bootloader-configuration-target configuration))
(bootcfg-file (bootloader-configuration-file bootloader))) (bootcfg-file (bootloader-configuration-file bootloader)))
(eval #~(primitive-load #$(install-bootloader-program installer (eval #~(system* #$(install-bootloader-program installer
package package
bootcfg bootcfg
bootcfg-file bootcfg-file
device device
target))))) target)))))