Browse Source

Try to load aufs first then check in filesystems for aufs support

Michael Crosby 11 years ago
parent
commit
7b2d59b91e
1 changed files with 4 additions and 0 deletions
  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
 // We cannot modprobe because inside dind modprobe fails
 // to run
 // to run
 func supportsAufs() error {
 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")
 	f, err := os.Open("/proc/filesystems")
 	if err != nil {
 	if err != nil {
 		return err
 		return err