Address loop dev PR comments #4178
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
@@ -85,9 +85,8 @@ func (m *Mount) Mount(target string) (err error) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer devFile.Close()
|
||||
// Mount the loop device instead
|
||||
source = devFile.Name()
|
||||
source = devFile
|
||||
}
|
||||
if err := mountAt(chdir, source, target, m.Type, uintptr(oflags), data); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user