1
0

Set kernels permissions inside container

This commit is contained in:
dump_stack() 2023-03-23 17:45:24 +00:00
parent bcdfb23112
commit ec1732c8ec
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -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
} }