add kernel config locations for fedora and atomic

* Fedora stores its kernel configs in /usr/lib/modules/$(uname -r)
* Fedora/CentOS/RHEL atomic hosts use /usr/lib/ostree-boot, though this location is deprecated
* The lack of these locations in the validator is causing kubeadm to hang on "failed to parse kernel config" in its preflight checking on fedora and atomic host
This commit is contained in:
Jason Brooks 2017-07-21 13:16:13 -07:00 committed by GitHub
parent ae1ff1a2d4
commit fa03b1eca7

View File

@ -175,6 +175,8 @@ func (k *KernelValidator) getKernelConfigReader() (io.Reader, error) {
"/boot/config-" + k.kernelRelease,
"/usr/src/linux-" + k.kernelRelease + "/.config",
"/usr/src/linux/.config",
"/usr/lib/modules/" + k.kernelRelease + "/config",
"/usr/lib/ostree-boot/config-" + k.kernelRelease,
}
configsModule := "configs"
modprobeCmd := "modprobe"