Commit 72453c4c by Serge Hallyn Committed by Stéphane Graber

overlay: create workdir if it doesn't exist

Otherwise a container created before we needed workdir will fail to start after a kernel+lxc update. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Acked-by: 's avatarKATOH Yasufumi <karma@jazz.email.ne.jp>
parent 485227ee
......@@ -2210,6 +2210,11 @@ static int overlayfs_mount(struct bdev *bdev)
return -22;
}
if (mkdir_p(work, 0755) < 0 && errno != EEXIST) {
free(mntdata);
return -22;
}
// TODO We should check whether bdev->src is a blockdev, and if so
// but for now, only support overlays of a basic directory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment