Refactor
This commit is contained in:
parent
3aba883b81
commit
8d3986ce8e
@ -568,7 +568,7 @@ func updateKernelsCfg(host, download bool) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, d := range dockerImages {
|
for _, d := range dockerImages {
|
||||||
err = genDockerKernels(d, &newkcfg, download)
|
err = listContainersKernels(d, &newkcfg, download)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Print("gen kernels", d.ContainerName, ":", err)
|
log.Print("gen kernels", d.ContainerName, ":", err)
|
||||||
continue
|
continue
|
||||||
@ -605,7 +605,7 @@ func updateKernelsCfg(host, download bool) (err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func genDockerKernels(dii dockerImageInfo, newkcfg *config.KernelConfig,
|
func listContainersKernels(dii dockerImageInfo, newkcfg *config.KernelConfig,
|
||||||
download bool) (err error) {
|
download bool) (err error) {
|
||||||
|
|
||||||
rootfs, err := genRootfsImage(dii, download)
|
rootfs, err := genRootfsImage(dii, download)
|
||||||
|
Loading…
Reference in New Issue
Block a user