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 return
} }
target := usr.HomeDir + "/.out-of-tree/kernels/" target := usr.HomeDir + "/.out-of-tree/kernels/" + name + "/"
if !exists(target) { if !exists(target) {
os.MkdirAll(target, os.ModePerm) os.MkdirAll(target, os.ModePerm)
} }
@ -654,7 +654,7 @@ func genDockerKernels(dii dockerImageInfo, newkcfg *config.KernelConfig,
if err != nil { if err != nil {
return return
} }
kernelsBase := usr.HomeDir + "/.out-of-tree/kernels/" kernelsBase := usr.HomeDir + "/.out-of-tree/kernels/" + name + "/"
files, err := ioutil.ReadDir(kernelsBase) files, err := ioutil.ReadDir(kernelsBase)
if err != nil { if err != nil {
return return