Commit dcd750a6 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

zdtm.py: bind-mount a test root as slave

In this case it has an external master_id and we want to test that
criu can handle it correctly.
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent cba08fb7
...@@ -174,7 +174,7 @@ class ns_flavor: ...@@ -174,7 +174,7 @@ class ns_flavor:
self.__mknod("rtc") self.__mknod("rtc")
def init(self, l_bins, x_bins): def init(self, l_bins, x_bins):
subprocess.check_call(["mount", "--make-private", "--bind", ".", self.root]) subprocess.check_call(["mount", "--make-slave", "--bind", ".", self.root])
self.root_mounted = True self.root_mounted = True
if not os.access(self.root + "/.constructed", os.F_OK): if not os.access(self.root + "/.constructed", os.F_OK):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment