1
0

Store kernels in separate directories

This commit is contained in:
dump_stack() 2023-02-15 16:09:11 +00:00
parent f6b6b823a9
commit c9618be454
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -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