diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-11-26 17:52:23 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-12-02 17:58:47 +0000 |
commit | 6549a8b2aefeb1ca35872e1517b22455dacf254c (patch) | |
tree | d7ab2df0d0d7bf05495b37e9d92a34da666d1f7d | |
parent | fe1d5ed5d3cc7da83cfde36149c2e269946c1e34 (diff) | |
download | definitions-6549a8b2aefeb1ca35872e1517b22455dacf254c.tar.gz |
fix mount and umounts
-rwxr-xr-x | installer/installer.py | 5 |
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 |