system: container: Adjust to changes in gexps.
* gnu/system/linux-container.scm (system-container): 'etc' is no longer a monadic value, and the result of 'file-union' must be lowered.
This commit is contained in:
parent
bd0b4379b2
commit
8e5999e0b0
|
@ -25,6 +25,7 @@
|
||||||
#:use-module (guix derivations)
|
#:use-module (guix derivations)
|
||||||
#:use-module (guix monads)
|
#:use-module (guix monads)
|
||||||
#:use-module (gnu build linux-container)
|
#:use-module (gnu build linux-container)
|
||||||
|
#:use-module (gnu services)
|
||||||
#:use-module (gnu system)
|
#:use-module (gnu system)
|
||||||
#:use-module (gnu system file-systems)
|
#:use-module (gnu system file-systems)
|
||||||
#:export (mapping->file-system
|
#:export (mapping->file-system
|
||||||
|
@ -50,14 +51,15 @@
|
||||||
"Return a derivation that builds OS as a Linux container."
|
"Return a derivation that builds OS as a Linux container."
|
||||||
(mlet* %store-monad
|
(mlet* %store-monad
|
||||||
((profile (operating-system-profile os))
|
((profile (operating-system-profile os))
|
||||||
(etc (operating-system-etc-directory os))
|
(etc -> (operating-system-etc-directory os))
|
||||||
(boot (operating-system-boot-script os #:container? #t))
|
(boot (operating-system-boot-script os #:container? #t))
|
||||||
(locale (operating-system-locale-directory os)))
|
(locale (operating-system-locale-directory os)))
|
||||||
|
(lower-object
|
||||||
(file-union "system-container"
|
(file-union "system-container"
|
||||||
`(("boot" ,#~#$boot)
|
`(("boot" ,#~#$boot)
|
||||||
("profile" ,#~#$profile)
|
("profile" ,#~#$profile)
|
||||||
("locale" ,#~#$locale)
|
("locale" ,#~#$locale)
|
||||||
("etc" ,#~#$etc)))))
|
("etc" ,#~#$etc))))))
|
||||||
|
|
||||||
(define (containerized-operating-system os mappings)
|
(define (containerized-operating-system os mappings)
|
||||||
"Return an operating system based on OS for use in a Linux container
|
"Return an operating system based on OS for use in a Linux container
|
||||||
|
|
Loading…
Reference in New Issue