mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: Add control group file systems.
* gnu/system/file-systems.scm (%control-groups): New variable. (%base-file-system): Include control group file systems.
This commit is contained in:
parent
5fd77f3f43
commit
727636aaf8
1 changed files with 23 additions and 4 deletions
|
@ -39,6 +39,7 @@ (define-module (gnu system file-systems)
|
|||
%pseudo-terminal-file-system
|
||||
%devtmpfs-file-system
|
||||
%immutable-store
|
||||
%control-groups
|
||||
|
||||
%base-file-systems
|
||||
|
||||
|
@ -152,13 +153,31 @@ (define %immutable-store
|
|||
(check? #f)
|
||||
(flags '(read-only bind-mount))))
|
||||
|
||||
(define %control-groups
|
||||
(cons (file-system
|
||||
(device "cgroup")
|
||||
(mount-point "/sys/fs/cgroup")
|
||||
(type "tmpfs")
|
||||
(check? #f))
|
||||
(map (lambda (subsystem)
|
||||
(file-system
|
||||
(device "cgroup")
|
||||
(mount-point (string-append "/sys/fs/cgroup/" subsystem))
|
||||
(type "cgroup")
|
||||
(check? #f)
|
||||
(options subsystem)
|
||||
(create-mount-point? #t)))
|
||||
'("cpuset" "cpu" "cpuacct" "memory" "devices" "freezer"
|
||||
"blkio" "perf_event" "hugetlb"))))
|
||||
|
||||
(define %base-file-systems
|
||||
;; List of basic file systems to be mounted. Note that /proc and /sys are
|
||||
;; currently mounted by the initrd.
|
||||
(list %devtmpfs-file-system
|
||||
%pseudo-terminal-file-system
|
||||
%shared-memory-file-system
|
||||
%immutable-store))
|
||||
(append (list %devtmpfs-file-system
|
||||
%pseudo-terminal-file-system
|
||||
%shared-memory-file-system
|
||||
%immutable-store)
|
||||
%control-groups))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue