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-11-26 17:52:23 +0000 |
commit | cf232ab28c5c79a54a88d4d7a8177bed2bffa4ba (patch) | |
tree | 93fb43956fc21274becb3d6c8590c677c95e36b2 | |
parent | 720cf2d972c1fe64a35a768e7f5d06d7ee414fe3 (diff) | |
download | definitions-cf232ab28c5c79a54a88d4d7a8177bed2bffa4ba.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 |