mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 11:32:21 +02:00
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.
This commit is contained in:
+5
-1
@@ -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))))
|
||||
|
||||
Reference in New Issue
Block a user