diff options
author | Ludovic Courtès <ludo@gnu.org> | 2018-06-20 09:44:27 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-06-20 10:05:18 +0200 |
commit | 661c237b4d8e670e73ea946179a94a3b956bb90e (patch) | |
tree | 12090ee441330c21df3e1978c1475ac8c4bc3e79 /gnu/services.scm | |
parent | 80f755090db5d67af5a44992d11799cb65792c3e (diff) | |
download | patches-661c237b4d8e670e73ea946179a94a3b956bb90e.tar patches-661c237b4d8e670e73ea946179a94a3b956bb90e.tar.gz |
services: boot: Reverse the order of boot expressions.
* gnu/services.scm (compute-boot-script): Reverse MEXPS.
* gnu/system.scm (essential-services): Reverse order of
%SHEPHERD-ROOT-SERVICE, %ACTIVATION-SERVICE, and CLEANUP-SERVICE-TYPE.
Diffstat (limited to 'gnu/services.scm')
-rw-r--r-- | gnu/services.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/services.scm b/gnu/services.scm index 81af4df849..3162c6ba05 100644 --- a/gnu/services.scm +++ b/gnu/services.scm @@ -334,7 +334,11 @@ containing the given entries." (extend system-derivation))) (define (compute-boot-script _ mexps) - (mlet %store-monad ((gexps (sequence %store-monad mexps))) + ;; Reverse MEXPS so that extensions appear in the boot script in the right + ;; order. That is, user extensions would come first, and extensions added + ;; by 'essential-services' (e.g., running shepherd) are guaranteed to come + ;; last. + (mlet %store-monad ((gexps (sequence %store-monad (reverse mexps)))) (gexp->file "boot" ;; Clean up and activate the system, then spawn shepherd. #~(begin #$@gexps)))) |