Skip to content

Commit

Permalink
Merge pull request #1515 from giuseppe/backport-unknown-fs-1.45
Browse files Browse the repository at this point in the history
[1.45] overlay: allow unknown backing fs with mountProgram
  • Loading branch information
rhatdan committed Feb 23, 2023
2 parents f8ede14 + 1e7d3fa commit e4b939f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@ func Init(home string, options graphdriver.Options) (graphdriver.Driver, error)
}
fsName, ok := graphdriver.FsNames[fsMagic]
if !ok {
return nil, fmt.Errorf("filesystem type %#x reported for %s is not supported with 'overlay': %w", fsMagic, filepath.Dir(home), graphdriver.ErrIncompatibleFS)
if opts.mountProgram == "" {
return nil, fmt.Errorf("filesystem type %#x reported for %s is not supported with 'overlay': %w", fsMagic, filepath.Dir(home), graphdriver.ErrIncompatibleFS)
}
fsName = "<unknown>"
}
backingFs = fsName

Expand Down

0 comments on commit e4b939f

Please sign in to comment.