mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
* Mount /dev/cgroup to enable cgroup support.
svn path=/nixos/trunk/; revision=26112
This commit is contained in:
parent
e0fef9c333
commit
e46fca2185
1 changed files with 8 additions and 0 deletions
|
@ -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 a new issue