diff --git a/gnu/installer/final.scm b/gnu/installer/final.scm index 044f79372b..9a6bbad122 100644 --- a/gnu/installer/final.scm +++ b/gnu/installer/final.scm @@ -213,10 +213,13 @@ (define (assert-exit x) (set! ret (run-command install-command #:tty? #t))) (lambda () - ;; Restart guix-daemon so that it does no keep the MNT namespace + ;; Stop guix-daemon so that it does no keep the MNT namespace ;; alive. - (restart-service 'guix-daemon) + (stop-service 'guix-daemon) + + ;; Restore the database and restart it. (copy-file saved-database database-file) + (start-service 'guix-daemon) ;; Finally umount the cow-store and exit the container. (unmount-cow-store (%installer-target-dir) backing-directory)