From c9618be4540a34fb346bf8f73b90b77dfb9924d8 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Wed, 15 Feb 2023 16:09:11 +0000 Subject: [PATCH] Store kernels in separate directories --- kernel.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel.go b/kernel.go index d2d5091..b5ce3f7 100644 --- a/kernel.go +++ b/kernel.go @@ -470,7 +470,7 @@ func copyKernels(name string) (err error) { return } - target := usr.HomeDir + "/.out-of-tree/kernels/" + target := usr.HomeDir + "/.out-of-tree/kernels/" + name + "/" if !exists(target) { os.MkdirAll(target, os.ModePerm) } @@ -654,7 +654,7 @@ func genDockerKernels(dii dockerImageInfo, newkcfg *config.KernelConfig, if err != nil { return } - kernelsBase := usr.HomeDir + "/.out-of-tree/kernels/" + kernelsBase := usr.HomeDir + "/.out-of-tree/kernels/" + name + "/" files, err := ioutil.ReadDir(kernelsBase) if err != nil { return