mirror of
https://github.com/docker/cli.git
synced 2026-01-22 03:22:01 +03:00
Merge pull request #29 from crosbymichael/try-load-aufs
Try to load aufs first then check in filesystems for aufs support Upstream-commit: 099c53b28ef361c236b0c2b22dbf6a43bb647af2 Component: engine
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user