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