Fix the umount failed for multiple mic.
authorwanchao.xu <wanchao.xu@samsung.com>
Fri, 8 Nov 2024 00:37:00 +0000 (08:37 +0800)
committerwanchao.xu <wanchao.xu@samsung.com>
Mon, 11 Nov 2024 01:36:02 +0000 (09:36 +0800)
Change-Id: Ibde2a81488c450cf4eda22d4bcc1660e3b89acc5
Signed-off-by: wanchao.xu <wanchao.xu@samsung.com>
mic/utils/fs_related.py

index f3d16e4b3262b24e147e29d07db521eae3a8df39..389280981343b5781084afbf9f6ada51d07c6ebc 100755 (executable)
@@ -145,10 +145,10 @@ class BindChrootMount:
                 return
 
         if self.mount_option:
-            cmdline = [self.mountcmd, "-o" ,"bind", "-o", "%s" % \
+            cmdline = [self.mountcmd, "--make-private", "-o" ,"bind", "-o", "%s" % \
                        self.mount_option, self.src, self.dest]
         else:
-            cmdline = [self.mountcmd, "-o" ,"bind", self.src, self.dest]
+            cmdline = [self.mountcmd, "--make-private", "-o" ,"bind", self.src, self.dest]
         rc, errout = runner.runtool(cmdline, catch=2)
         if rc != 0:
             raise MountError("Bind-mounting '%s' to '%s' failed: %s" %