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

Upstream-commit: 7b2d59b91e64e72e346747cf2e561be8afc87fa7
Component: engine
This commit is contained in:
Michael Crosby
2013-11-14 09:42:12 -08:00
parent ce293b5a8b
commit 93ce091ee1
+4
View File
@@ -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