container: resolve workdir after all the mounts happen.

There are use-cases where users would want to use overlay-mounts as
workdir. For such cases workdir should be resolved after all the mounts
are completed during the container init process.

Signed-off-by: Aditya Rajan <arajan@redhat.com>
This commit is contained in:
flouthoc
2021-08-30 11:52:15 +05:30
committed by Aditya Rajan
parent a2acd04447
commit ec1f350ee5
3 changed files with 25 additions and 5 deletions

View File

@ -176,11 +176,6 @@ func (c *Container) prepare() error {
return err
}
// Make sure the workdir exists
if err := c.resolveWorkDir(); err != nil {
return err
}
return nil
}