kernel_validator: amend kernel config check paths

Clear Linux Project for Intel Architecture uses its own path
to store kernel build artifacts. This is documented, e.g.,
in https://github.com/clearlinux/clr-boot-manager.

Adapt kernel validator's config check paths to include Clear
Linux's path too.
This commit is contained in:
Mikko Ylinen 2018-02-23 14:36:39 +02:00
parent 0e9b1dd20f
commit cc117866bd

View File

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