Remove bind code path in mount()

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2023-04-03 09:15:24 -07:00
parent 6a5b4c9c24
commit 1279ad880c

View File

@ -49,13 +49,6 @@ func (m *Mount) ReadOnly() bool {
// Mount to the provided target.
func (m *Mount) mount(target string) (retErr error) {
if m.Type == "bind" {
if err := bindfilter.ApplyFileBinding(target, m.Source, m.ReadOnly()); err != nil {
return fmt.Errorf("failed to bind-mount to %s: %w", target, err)
}
return nil
}
if m.Type != "windows-layer" {
return fmt.Errorf("invalid windows mount type: '%s'", m.Type)
}