Fixed a bug which caused Container.Start() to fail when the rootfs was already mounted.

Upstream-commit: fc19a00103f25e4d3bd1102803b32bea299d3fd6
Component: engine
This commit is contained in:
Solomon Hykes
2013-01-27 01:06:02 -08:00
parent 58ab0c3fc4
commit cc23af2ae6

View File

@ -170,7 +170,7 @@ func (container *Container) generateLXCConfig() error {
}
func (container *Container) Start() error {
if err := container.Filesystem.Mount(); err != nil {
if err := container.Filesystem.EnsureMounted(); err != nil {
return err
}