From c1fceb6ce6728066d1f2463b9f5cbb5fcf77f1b4 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Wed, 24 May 2023 10:01:25 +0000 Subject: [PATCH] fix: use kernel version (same as uname -r) for /lib/modules path --- pew.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pew.go b/pew.go index 4131003..b59e9b7 100644 --- a/pew.go +++ b/pew.go @@ -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 {