Move sysinfo out of daemon struct
sysinfo struct was initialized at daemon startup to make sure kernel configs such as device cgroup are present and error out if not. The struct was embedded in daemon struct making impossible to detect if some system config is changed at daemon runtime (i.e. someone umount the memory cgroup). This leads to container's starts failure if some config is changed at daemon runtime. This patch moves sysinfo out of daemon and initilize and check it when needed (daemon startup, containers creation, contaienrs startup for now). Signed-off-by: Antonio Murdaca <runcom@linux.com> (cherry picked from commit 472b6f66e03f9a85fe8d23098dac6f55a87456d8)
A
Antonio Murdaca committed
b2d06b6fba307a8972d08477ef8b711e31ace433
Parent: 6b341f2
Committed by David Calavera <david.calavera@gmail.com>
on 8/6/2015, 10:46:09 PM