Explorar o código

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

Solomon Hykes %!s(int64=12) %!d(string=hai) anos
pai
achega
fc19a00103
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      container.go

+ 1 - 1
container.go

@@ -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
 	}