[PATCH 3/6] If a filesystem is already mounted, don't raise an error.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This seems pretty harmless to me, and raising an error causes problems when
dealing with bind mounts.
---
 storage/formats/fs.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 1939434..3756f48 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -453,7 +453,7 @@ class FS(DeviceFormat):
             raise FSError("no mountpoint given")
 
         if self.status:
-            raise FSError("filesystem is already mounted")
+            return
 
         if not isinstance(self, NoDevFS) and not os.path.exists(self.device):
             raise FSError("device %s does not exist" % self.device)
-- 
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux