From: "Brian C. Lane" bcl@redhat.com
Instead of using self.status which checks to see if anything is mounted, not the specific mountpoint requested. --- blivet/formats/fs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py index e1b5bba..8142081 100644 --- a/blivet/formats/fs.py +++ b/blivet/formats/fs.py @@ -642,7 +642,8 @@ def mount(self, options="", chroot="/", mountpoint=None): if not mountpoint: raise FSError("no mountpoint given")
- if self.status: + # Is something is already mounted at this path? + if mountsCache.isMounted(mountpoint): return
if not isinstance(self, NoDevFS) and not os.path.exists(self.device):