826c468f2c
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) |
||
---|---|---|
.. | ||
README.md | ||
sysinfo.go | ||
sysinfo_freebsd.go | ||
sysinfo_linux.go | ||
sysinfo_linux_test.go | ||
sysinfo_windows.go |
SysInfo stores information about which features a kernel supports.