Set kernel/initrd permissions
This commit is contained in:
parent
105809ddec
commit
d70150b496
@ -620,6 +620,15 @@ func genDockerKernels(dii dockerImageInfo, newkcfg *config.KernelConfig,
|
|||||||
RootFS: rootfs,
|
RootFS: rootfs,
|
||||||
}
|
}
|
||||||
newkcfg.Kernels = append(newkcfg.Kernels, ki)
|
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
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user