浏览代码

Merge pull request #29 from crosbymichael/try-load-aufs

Try to load aufs first then check in filesystems for aufs support
Solomon Hykes 11 年之前
父节点
当前提交
099c53b28e
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      aufs/aufs.go

+ 4 - 0
aufs/aufs.go

@@ -76,6 +76,10 @@ func Init(root string) (graphdriver.Driver, error) {
 // We cannot modprobe because inside dind modprobe fails
 // to run
 func supportsAufs() error {
+	// We can try to modprobe aufs first before looking at
+	// proc/filesystems for when aufs is supported
+	exec.Command("modprobe", "aufs").Run()
+
 	f, err := os.Open("/proc/filesystems")
 	if err != nil {
 		return err