system: Add 'essential-services' field to <operating-system>.
authorLudovic Courtès <ludo@gnu.org>
Fri, 22 Mar 2019 16:48:37 +0000 (17:48 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 25 Mar 2019 22:37:06 +0000 (23:37 +0100)
commit69cae3d3356a69b7fe69481338f760545995485e
tree4d191f2b530837a0be058f3f804ab984c715962c
parentcf848cc0a17a3a58d600116896f6e7abfb0440d4
system: Add 'essential-services' field to <operating-system>.

* gnu/system.scm (<operating-system>)[essential-services]: New field.
(operating-system-directory-base-entries): Remove #:container? keyword
and keep only the not-container branch.
(essential-services): Likewise.
(operating-system-services): Likewise, and call
'operating-system-essential-services' instead of 'essential-services'.
(operating-system-activation-script): Remove #:container?.
(operating-system-boot-script): Likewise.
(operating-system-derivation): Likewise.
* gnu/system/linux-container.scm (container-essential-services): New procedure.
(containerized-operating-system): Use it and set the
'essential-services' field.
(container-script): Remove call to 'operating-system-derivation'.
* gnu/system/vm.scm (system-docker-image): Likewise.
* doc/guix.texi (operating-system Reference): Document 'essential-services'.
doc/guix.texi
gnu/system.scm
gnu/system/linux-container.scm
gnu/system/vm.scm