Merge pull request #8594 from fuweid/fix-blockfile-mount
snapshots/blockfile: use loop if options is empty
This commit is contained in:
commit
f49789fd54
@ -121,7 +121,7 @@ func NewSnapshotter(root string, opts ...Opt) (snapshots.Snapshotter, error) {
|
||||
config.fsType = "ext4"
|
||||
}
|
||||
|
||||
if config.mountOptions != nil {
|
||||
if config.mountOptions == nil {
|
||||
config.mountOptions = []string{"loop"}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user