mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-06 07:54:22 +01:00
dev: Revert "Don't ignore container mounts based on their path"
This reverts commit 08909b2213.
We should not be passing any bind-mounts from /dev, /sys and /proc.
Mounting these from the host inside the container does not make
sense as these files are relevant to the host OS.
Fixes #219
Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
@@ -290,7 +290,7 @@ func (c *Container) createContainersDirs() error {
|
||||
func (c *Container) mountSharedDirMounts(hostSharedDir, guestSharedDir string) ([]Mount, error) {
|
||||
var sharedDirMounts []Mount
|
||||
for idx, m := range c.mounts {
|
||||
if m.Type != "bind" {
|
||||
if isSystemMount(m.Destination) || m.Type != "bind" {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user