Browse code

zfs: call mount.MakePrivate

Fix #24008

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>

Akihiro Suda authored on 2016/06/29 10:55:45
Showing 1 changed files
... ...
@@ -99,6 +99,9 @@ func Init(base string, opt []string, uidMaps, gidMaps []idtools.IDMap) (graphdri
99 99
 		return nil, fmt.Errorf("BUG: zfs get all -t filesystem -rHp '%s' should contain '%s'", options.fsName, options.fsName)
100 100
 	}
101 101
 
102
+	if err := mount.MakePrivate(base); err != nil {
103
+		return nil, err
104
+	}
102 105
 	d := &Driver{
103 106
 		dataset:          rootDataset,
104 107
 		options:          options,