mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
file-systems: mount the PID cgroup filesystem.
* gnu/system/file-systems.scm (%control-groups): Add "pids". * gnu/services/docker.scm (docker-shepherd-service): Resolve a TODO. This has allowed me to make a specific configuration of nsjail work.
This commit is contained in:
parent
639ae3f20b
commit
2ef4d273d1
2 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2018 Danny Milosavljevic <dannym@scratchpost.org>
|
||||
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -94,7 +95,7 @@ (define (docker-shepherd-service config)
|
|||
file-system-/sys/fs/cgroup/cpuset
|
||||
file-system-/sys/fs/cgroup/devices
|
||||
file-system-/sys/fs/cgroup/memory
|
||||
; TODO: file-system-/sys/fs/cgroup/pids
|
||||
file-system-/sys/fs/cgroup/pids
|
||||
networking
|
||||
udev))
|
||||
(start #~(make-forkexec-constructor
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -389,7 +390,7 @@ (define %control-groups
|
|||
;; parent directory.
|
||||
(dependencies (list parent))))
|
||||
'("cpuset" "cpu" "cpuacct" "memory" "devices" "freezer"
|
||||
"blkio" "perf_event")))))
|
||||
"blkio" "perf_event" "pids")))))
|
||||
|
||||
(define %elogind-file-systems
|
||||
;; We don't use systemd, but these file systems are needed for elogind,
|
||||
|
|
Loading…
Reference in a new issue