reconfigure: Silence Guile warnings.

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

* guix/scripts/system/reconfigure.scm (switch-to-system)
(upgrade-shepherd-services, install-bootloader): Wrap 'primitive-load'
call in 'parameterize'.
This commit is contained in:
Ludovic Courtès 2020-04-03 10:48:32 +02:00
parent 00a1ebb84a
commit 9fb3ff31c1
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -100,7 +100,8 @@ (define* (switch-to-system eval os #:optional profile)
"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 #~(primitive-load #$(switch-system-program os profile))))
(eval #~(parameterize ((current-warning-port (%make-void-port "w")))
(primitive-load #$(switch-system-program os profile)))))
;;;
@ -176,10 +177,11 @@ (define target-services
(map live-service-canonical-name
live-services)))
(service-files (map shepherd-service-file target-services)))
(eval #~(primitive-load #$(upgrade-services-program service-files
to-start
to-unload
to-restart)))))))
(eval #~(parameterize ((current-warning-port (%make-void-port "w")))
(primitive-load #$(upgrade-services-program service-files
to-start
to-unload
to-restart))))))))
;;;
@ -252,9 +254,10 @@ (define* (install-bootloader eval configuration bootcfg
(package (bootloader-package bootloader))
(device (bootloader-configuration-target configuration))
(bootcfg-file (bootloader-configuration-file bootloader)))
(eval #~(primitive-load #$(install-bootloader-program installer
package
bootcfg
bootcfg-file
device
target)))))
(eval #~(parameterize ((current-warning-port (%make-void-port "w")))
(primitive-load #$(install-bootloader-program installer
package
bootcfg
bootcfg-file
device
target))))))