diff --git a/validate.go b/validate.go index df46e3e1c..4d5b5972f 100644 --- a/validate.go +++ b/validate.go @@ -86,7 +86,6 @@ func bundleValidate(spec rspec.Spec, rootfs string) { checkSemVer(spec.Version) checkPlatform(spec.Platform) checkProcess(spec.Process, rootfs) - checkMounts(spec.Mounts, rootfs) checkLinux(spec.Linux, rootfs) } @@ -97,17 +96,6 @@ func checkSemVer(version string) { } } -func checkMounts(mounts []rspec.Mount, rootfs string) { - for _, mount := range mounts { - destPath := path.Join(rootfs, mount.Destination) - if fi, err := os.Stat(destPath); err != nil { - logrus.Fatalf("Cannot find the mount destination %q", destPath) - } else if !fi.IsDir() { - logrus.Fatalf("Mount destination %q is not a directory.", destPath) - } - } -} - func checkPlatform(platform rspec.Platform) { validCombins := map[string][]string{ "darwin": {"386", "amd64", "arm", "arm64"},