Store kernels in separate directories
This commit is contained in:
parent
f6b6b823a9
commit
c9618be454
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user