Merge pull request #241 from mslacken/fix-kernel-imprt

fixups for kernel import
This commit is contained in:
Gregory M. Kurtzer
2022-01-18 22:13:31 -08:00
committed by GitHub
2 changed files with 6 additions and 5 deletions

View File

@@ -133,8 +133,8 @@ func Build(kernelVersion, kernelName, root string) (string, error) {
return "", fmt.Errorf("failed to create version dest: %s", err)
}
for _, path := range kernelSearchPaths {
testPath := fmt.Sprintf(path, kernelVersion)
for _, searchPath := range kernelSearchPaths {
testPath := fmt.Sprintf(path.Join(root, searchPath), kernelVersion)
wwlog.Printf(wwlog.VERBOSE, "Looking for kernel at: %s\n", testPath)
if util.IsFile(testPath) {
kernelSource = testPath