mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
linux-container: Remove '%containerized-shepherd-service' hack.
This hack worked around a defect in the Shepherd 0.5.0 and is no longer needed. * gnu/services/shepherd.scm (%containerized-shepherd-service): Remove. * gnu/system/linux-container.scm (container-essential-services): Don't use it.
This commit is contained in:
parent
051b279fd0
commit
86b8869fff
2 changed files with 1 additions and 18 deletions
|
@ -60,7 +60,6 @@ (define-module (gnu services shepherd)
|
||||||
%default-modules
|
%default-modules
|
||||||
|
|
||||||
shepherd-service-file
|
shepherd-service-file
|
||||||
%containerized-shepherd-service
|
|
||||||
|
|
||||||
shepherd-service-lookup-procedure
|
shepherd-service-lookup-procedure
|
||||||
shepherd-service-back-edges
|
shepherd-service-back-edges
|
||||||
|
@ -346,21 +345,6 @@ (define edges
|
||||||
(lambda (service)
|
(lambda (service)
|
||||||
(vhash-foldq* cons '() service edges)))
|
(vhash-foldq* cons '() service edges)))
|
||||||
|
|
||||||
(define %containerized-shepherd-service
|
|
||||||
;; XXX: This service works around a bug in the Shepherd 0.5.0: shepherd
|
|
||||||
;; calls reboot(2) (via 'disable-reboot-on-ctrl-alt-del') when it starts,
|
|
||||||
;; but in a container that fails with EINVAL. This was fixed in Shepherd
|
|
||||||
;; commit 92e806bac1abaeeaf5d60f0ab50d1ae85ba6a62f.
|
|
||||||
(simple-service 'containerized-shepherd
|
|
||||||
shepherd-root-service-type
|
|
||||||
(list (shepherd-service
|
|
||||||
(provision '(containerized-shepherd))
|
|
||||||
(start #~(lambda ()
|
|
||||||
(set! (@@ (shepherd)
|
|
||||||
disable-reboot-on-ctrl-alt-del)
|
|
||||||
(const #t))
|
|
||||||
#t))))))
|
|
||||||
|
|
||||||
(define (shepherd-service-upgrade live target)
|
(define (shepherd-service-upgrade live target)
|
||||||
"Return two values: the subset of LIVE (a list of <live-service>) that needs
|
"Return two values: the subset of LIVE (a list of <live-service>) that needs
|
||||||
to be unloaded, and the subset of TARGET (a list of <shepherd-service>) that
|
to be unloaded, and the subset of TARGET (a list of <shepherd-service>) that
|
||||||
|
|
|
@ -29,7 +29,6 @@ (define-module (gnu system linux-container)
|
||||||
#:use-module (gnu build linux-container)
|
#:use-module (gnu build linux-container)
|
||||||
#:use-module (gnu services)
|
#:use-module (gnu services)
|
||||||
#:use-module (gnu services base)
|
#:use-module (gnu services base)
|
||||||
#:use-module (gnu services shepherd)
|
|
||||||
#:use-module (gnu system)
|
#:use-module (gnu system)
|
||||||
#:use-module (gnu system file-systems)
|
#:use-module (gnu system file-systems)
|
||||||
#:export (system-container
|
#:export (system-container
|
||||||
|
@ -52,7 +51,7 @@ (define base
|
||||||
(let ((locale (operating-system-locale-directory os)))
|
(let ((locale (operating-system-locale-directory os)))
|
||||||
(with-monad %store-monad
|
(with-monad %store-monad
|
||||||
(return `(("locale" ,locale))))))
|
(return `(("locale" ,locale))))))
|
||||||
(append base (list %containerized-shepherd-service))))
|
base))
|
||||||
|
|
||||||
(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 a new issue