~ruther/guix-local

97bb1ab66519736afbdab57c230c3a9deef2fa05 — Christopher Baines 9 years ago 5ce09ef
services: Activate system prior to services.

* gnu/services.scm (activation-script): Move 'activation-current-system'
call before (for-each primitive-load …).

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 6 insertions(+), 4 deletions(-)

M gnu/services.scm
M gnu/services.scm => gnu/services.scm +6 -4
@@ 338,12 338,14 @@ ACTIVATION-SCRIPT-TYPE."
                      (activate-/bin/sh
                       (string-append #$(canonical-package bash) "/bin/sh"))

                      ;; Set up /run/current-system.  Among other things this
                      ;; sets up locales, which the activation snippets
                      ;; executed below may expect.
                      (activate-current-system)

                      ;; Run the services' activation snippets.
                      ;; TODO: Use 'load-compiled'.
                      (for-each primitive-load '#$actions)

                      ;; Set up /run/current-system.
                      (activate-current-system))))))
                      (for-each primitive-load '#$actions))))))

(define (gexps->activation-gexp gexps)
  "Return a gexp that runs the activation script containing GEXPS."