* Mount /dev/cgroup to enable cgroup support.

svn path=/nixos/trunk/; revision=26112
This commit is contained in:
Eelco Dolstra 2011-02-25 14:31:15 +00:00
parent e0fef9c333
commit e46fca2185

View file

@ -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
'';
};
}