mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
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:
parent
ae1ff1a2d4
commit
fa03b1eca7
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user