1
0

fix: use kernel version (same as uname -r) for /lib/modules path

This commit is contained in:
dump_stack() 2023-05-24 10:01:25 +00:00
parent e0295664af
commit c1fceb6ce6
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

4
pew.go
View File

@ -545,12 +545,12 @@ func copyTest(q *qemu.System, testPath string, ka config.Artifact) (
}
func copyStandardModules(q *qemu.System, ki distro.KernelInfo) (err error) {
_, err = q.Command("root", "mkdir -p /lib/modules/"+ki.KernelRelease)
_, err = q.Command("root", "mkdir -p /lib/modules/"+ki.KernelVersion)
if err != nil {
return
}
remotePath := "/lib/modules/" + ki.KernelRelease + "/"
remotePath := "/lib/modules/" + ki.KernelVersion + "/"
err = q.CopyDirectory("root", ki.ModulesPath+"/kernel", remotePath+"/kernel")
if err != nil {