From: Gui Chen Date: Mon, 26 Aug 2013 04:08:34 +0000 (-0400) Subject: fix umount issue X-Git-Tag: 0.21~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ceb5564437e4864d547cbe7feccc11fa09393e13;p=tools%2Fmic.git fix umount issue if mount dest is updated during mount, self.ismounted() won't check it out, self.mounted flag is valid all the way Signed-off-by: Gui Chen --- diff --git a/mic/utils/fs_related.py b/mic/utils/fs_related.py index 5802c27..ed193f7 100644 --- a/mic/utils/fs_related.py +++ b/mic/utils/fs_related.py @@ -138,7 +138,7 @@ class BindChrootMount: os.symlink(self.src, dest) def unmount(self): - if self.ismounted(): + if self.mounted or self.ismounted(): runner.show([self.umountcmd, "-l", self.dest]) self.mounted = False