1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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

Try to load aufs first then check in filesystems for aufs support
This commit is contained in:
Solomon Hykes 2013-11-14 10:11:19 -08:00
commit 099c53b28e

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