Skip to content

Commit b6e93a8

Browse files
committed
Fix #107 - Wait for mount if the process is already started by systemd
1 parent 29e63f2 commit b6e93a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/mounter/geesefs.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ func (geesefs *geesefsMounter) Mount(target, volumeID string) error {
185185
volumeID, target, curPath,
186186
)
187187
}
188-
// Already mounted at right location
189-
return nil
188+
// Already mounted at right location, wait for mount
189+
return waitForMount(target, 30*time.Second)
190190
} else {
191191
// Stop and garbage collect the unit if automatic collection didn't work for some reason
192192
conn.StopUnit(unitName, "replace", nil)
@@ -211,5 +211,5 @@ func (geesefs *geesefsMounter) Mount(target, volumeID string) error {
211211
if err != nil {
212212
return fmt.Errorf("Error starting systemd unit %s on host: %v", unitName, err)
213213
}
214-
return waitForMount(target, 10*time.Second)
214+
return waitForMount(target, 30*time.Second)
215215
}

0 commit comments

Comments
 (0)