Set kernels permissions inside container
This commit is contained in:
parent
bcdfb23112
commit
ec1732c8ec
@ -621,11 +621,8 @@ func genDockerKernels(dii dockerImageInfo, newkcfg *config.KernelConfig,
|
|||||||
}
|
}
|
||||||
newkcfg.Kernels = append(newkcfg.Kernels, ki)
|
newkcfg.Kernels = append(newkcfg.Kernels, ki)
|
||||||
|
|
||||||
err = os.Chmod(ki.KernelPath, 0666)
|
cmd := "find /boot -type f -exec chmod 0644 {} \\;"
|
||||||
if err != nil {
|
_, err = c.Run("/tmp", cmd)
|
||||||
return
|
|
||||||
}
|
|
||||||
err = os.Chmod(ki.InitrdPath, 0666)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user