fix: search in source volumes not destination ones
This commit is contained in:
parent
14320faca8
commit
ff7bed76f2
@ -416,9 +416,9 @@ func listContainersKernels(dii container.Image, newkcfg *config.KernelConfig,
|
|||||||
for _, volume := range c.Volumes {
|
for _, volume := range c.Volumes {
|
||||||
switch volume.Dest {
|
switch volume.Dest {
|
||||||
case "/lib/modules":
|
case "/lib/modules":
|
||||||
libmodules = volume.Dest
|
libmodules = volume.Src
|
||||||
case "/boot":
|
case "/boot":
|
||||||
boot = volume.Dest
|
boot = volume.Src
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user