浏览代码

Merge pull request #25638 from anusha-ragunathan/fix-plugin-tests

Debugging issue #25511
Tibor Vass 9 年之前
父节点
当前提交
6e70a976ba
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      plugin/manager_linux.go

+ 6 - 0
plugin/manager_linux.go

@@ -90,7 +90,13 @@ func (pm *Manager) initSpec(p *plugin) (*specs.Spec, error) {
 		if mount.Source != nil {
 			m.Source = *mount.Source
 		}
+
 		if m.Source != "" && m.Type == "bind" {
+			/* Debugging issue #25511: Volumes and other content created under the
+			bind mount should be recursively propagated. rshared, not shared.
+			This could be the reason for EBUSY during removal. Override options
+			with rbind, rshared and see if CI errors are fixed. */
+			m.Options = []string{"rbind", "rshared"}
 			fi, err := os.Lstat(filepath.Join(rootfs, string(os.PathSeparator), m.Destination)) // TODO: followsymlinks
 			if err != nil {
 				return nil, err