mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b2d06b6fba
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
|
||
---|---|---|
.. | ||
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.