浏览代码

Merge pull request #5781 from creack/remove_bind_console

Remove the bind mount for dev/console which override the mknod/label
Victor Vieux 11 年之前
父节点
当前提交
3bf1b562e3
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      pkg/libcontainer/console/console.go

+ 0 - 3
pkg/libcontainer/console/console.go

@@ -40,9 +40,6 @@ func Setup(rootfs, consolePath, mountLabel string) error {
 	if err := label.SetFileLabel(consolePath, mountLabel); err != nil {
 	if err := label.SetFileLabel(consolePath, mountLabel); err != nil {
 		return fmt.Errorf("set file label %s %s", dest, err)
 		return fmt.Errorf("set file label %s %s", dest, err)
 	}
 	}
-	if err := system.Mount(consolePath, dest, "bind", syscall.MS_BIND, ""); err != nil {
-		return fmt.Errorf("bind %s to %s %s", consolePath, dest, err)
-	}
 	return nil
 	return nil
 }
 }