Skip to content

Commit 1f0dbd0

Browse files
Remove bind code path in mount()
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
1 parent 8f37b1c commit 1f0dbd0

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

mount/mount_windows.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ func (m *Mount) ReadOnly() bool {
4949

5050
// Mount to the provided target.
5151
func (m *Mount) mount(target string) (retErr error) {
52-
if m.Type == "bind" {
53-
if err := bindfilter.ApplyFileBinding(target, m.Source, m.ReadOnly()); err != nil {
54-
return fmt.Errorf("failed to bind-mount to %s: %w", target, err)
55-
}
56-
return nil
57-
}
58-
5952
if m.Type != "windows-layer" {
6053
return fmt.Errorf("invalid windows mount type: '%s'", m.Type)
6154
}

0 commit comments

Comments
 (0)