add systemd mount options interface to support the no-systemd mount

This commit is contained in:
tashen
2020-10-02 15:31:38 +08:00
parent 53d9bed6e0
commit 27cb5cf4f0
24 changed files with 68 additions and 26 deletions

View File

@@ -305,7 +305,7 @@ func (b *azureFileMounter) SetUpAt(dir string, mounterArgs volume.MounterArgs) e
mountComplete := false
err = wait.PollImmediate(1*time.Second, 2*time.Minute, func() (bool, error) {
err := b.mounter.MountSensitive(source, dir, "cifs", mountOptions, sensitiveMountOptions)
err := b.mounter.MountSensitiveWithoutSystemd(source, dir, "cifs", mountOptions, sensitiveMountOptions)
mountComplete = true
return true, err
})