Skip to content

Commit 81c608d

Browse files
authored
Merge pull request #392 from Mashimiao/skip-bind-mount-check
runtimetest: fix mounts check
2 parents e3c6364 + 7ab0fc8 commit 81c608d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/runtimetest/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,11 @@ func validateMountsExist(spec *rspec.Spec) error {
560560
}
561561

562562
for _, specMount := range spec.Mounts {
563+
if specMount.Type == "bind" || specMount.Type == "rbind" {
564+
// TODO: add bind or rbind check.
565+
continue
566+
}
567+
563568
found := false
564569
for _, sysMount := range mountsMap[filepath.Clean(specMount.Destination)] {
565570
if err := mountMatch(specMount, sysMount); err == nil {

0 commit comments

Comments
 (0)