summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-11-26 17:52:23 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-12-02 17:58:47 +0000
commit6549a8b2aefeb1ca35872e1517b22455dacf254c (patch)
treed7ab2df0d0d7bf05495b37e9d92a34da666d1f7d
parentfe1d5ed5d3cc7da83cfde36149c2e269946c1e34 (diff)
downloaddefinitions-6549a8b2aefeb1ca35872e1517b22455dacf254c.tar.gz
fix mount and umounts
-rwxr-xr-xinstaller/installer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/installer/installer.py b/installer/installer.py
index f84df062..6d4ac297 100755
--- a/installer/installer.py
+++ b/installer/installer.py
@@ -113,7 +113,10 @@ class BaserockInstaller():
def do_unmounts(self, to_unmount):
for path in reversed(to_unmount):
print 'Unmounting %s' % path
- subprocess.Popen(['umount', path])
+ try:
+ subprocess.check_call(['umount', path])
+ except:
+ print 'WARNING: Failed to `umount %s`' % path
def check_and_read_config(self, config_file):
print "Reading configuration from %s..." % config_file