Skip to content

Commit

Permalink
Merge pull request #1512 from giuseppe/mount-program-disable-check
Browse files Browse the repository at this point in the history
overlay: allow unknown backing fs with mountProgram
  • Loading branch information
vrothberg authored Feb 22, 2023
2 parents cfffdac + b9f1697 commit 0697414
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 @@ -315,7 +315,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 0697414

Please sign in to comment.