* Mount /dev/cgroup to enable cgroup support.
svn path=/nixos/trunk/; revision=26112
This commit is contained in:
parent
e0fef9c333
commit
e46fca2185
|
@ -129,6 +129,14 @@ in
|
|||
mkdir -p /media
|
||||
'';
|
||||
|
||||
system.activationScripts.cgroups =
|
||||
''
|
||||
if ! ${pkgs.sysvtools}/bin/mountpoint -q /dev/cgroup; then
|
||||
mkdir -p /dev/cgroup
|
||||
${pkgs.utillinux}/bin/mount -t cgroup none /dev/cgroup
|
||||
fi
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue