[master 2/2] Skip tearing down devices when unmounting filesystems

bcl installerbot-noreply at redhat.com
Wed Jul 29 23:07:39 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

Otherwise it will try to unmount things that shouldn't be unmounted.
---
 blivet/osinstall.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/osinstall.py b/blivet/osinstall.py
index 5918904..bb7c204 100644
--- a/blivet/osinstall.py
+++ b/blivet/osinstall.py
@@ -617,8 +617,8 @@ def umountFilesystems(self, swapoff=True):
                (device.format.type == "swap" and not swapoff):
                 continue
 
+            # Unmount the devices
             device.format.teardown()
-            device.teardown()
 
         self.active = False
 


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/be5a5879ac6f0c0e3cf92ed7adc816e4b7008193


More information about the anaconda-patches mailing list