Revert "reconfigure: Run the effect scripts as separate processes."
authorLudovic Courtès <ludo@gnu.org>
Fri, 3 Apr 2020 08:26:54 +0000 (10:26 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 3 Apr 2020 10:58:14 +0000 (12:58 +0200)
This reverts commit 5517750344be05c91bc2979c1a0e2348a9ae902d.
That commit would remove all sorts of error checking when running those
programs.

guix/scripts/system/reconfigure.scm

index 21b472e..c8d1ed4 100644 (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,
 create a new generation of PROFILE pointing to the directory of OS, switch to
 it atomically, and run OS's activation script."
-  (eval #~(system* #$(switch-system-program os profile))))
+  (eval #~(primitive-load #$(switch-system-program os profile))))
 
 \f
 ;;;
@@ -176,10 +176,10 @@ services as defined by OS."
                                         (map live-service-canonical-name
                                              live-services)))
              (service-files (map shepherd-service-file target-services)))
-        (eval #~(system* #$(upgrade-services-program service-files
-                                                     to-start
-                                                     to-unload
-                                                     to-restart)))))))
+        (eval #~(primitive-load #$(upgrade-services-program service-files
+                                                            to-start
+                                                            to-unload
+                                                            to-restart)))))))
 
 \f
 ;;;
@@ -252,9 +252,9 @@ additional configurations specified by MENU-ENTRIES can be selected."
          (package (bootloader-package bootloader))
          (device (bootloader-configuration-target configuration))
          (bootcfg-file (bootloader-configuration-file bootloader)))
-    (eval #~(system* #$(install-bootloader-program installer
-                                                   package
-                                                   bootcfg
-                                                   bootcfg-file
-                                                   device
-                                                   target)))))
+    (eval #~(primitive-load #$(install-bootloader-program installer
+                                                          package
+                                                          bootcfg
+                                                          bootcfg-file
+                                                          device
+                                                          target)))))