mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-25 11:44:44 +00:00
Fix root directory permissions with overlay
At least when running under Docker this seems to cause some issues, possibly also explains some other oddnesses. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
d2b7782419
commit
c42ddc0af8
@ -43,11 +43,11 @@ func prepareRW(path string) error {
|
|||||||
}
|
}
|
||||||
upper := filepath.Join(tmp, "upper")
|
upper := filepath.Join(tmp, "upper")
|
||||||
// make the mount points
|
// make the mount points
|
||||||
if err := os.Mkdir(upper, 0744); err != nil {
|
if err := os.Mkdir(upper, 0755); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
work := filepath.Join(tmp, "work")
|
work := filepath.Join(tmp, "work")
|
||||||
if err := os.Mkdir(work, 0744); err != nil {
|
if err := os.Mkdir(work, 0755); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
lower := filepath.Join(path, "lower")
|
lower := filepath.Join(path, "lower")
|
||||||
|
@ -43,11 +43,11 @@ func prepareRW(path string) error {
|
|||||||
}
|
}
|
||||||
upper := filepath.Join(tmp, "upper")
|
upper := filepath.Join(tmp, "upper")
|
||||||
// make the mount points
|
// make the mount points
|
||||||
if err := os.Mkdir(upper, 0744); err != nil {
|
if err := os.Mkdir(upper, 0755); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
work := filepath.Join(tmp, "work")
|
work := filepath.Join(tmp, "work")
|
||||||
if err := os.Mkdir(work, 0744); err != nil {
|
if err := os.Mkdir(work, 0755); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
lower := filepath.Join(path, "lower")
|
lower := filepath.Join(path, "lower")
|
||||||
|
Loading…
Reference in New Issue
Block a user