1
0

Set kernel/initrd permissions

This commit is contained in:
dump_stack() 2023-03-22 21:16:00 +00:00
parent 105809ddec
commit d70150b496
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -620,6 +620,15 @@ func genDockerKernels(dii dockerImageInfo, newkcfg *config.KernelConfig,
RootFS: rootfs,
}
newkcfg.Kernels = append(newkcfg.Kernels, ki)
err = os.Chmod(ki.KernelPath, 0666)
if err != nil {
return
}
err = os.Chmod(ki.InitrdPath, 0666)
if err != nil {
return
}
}
return