From 6549a8b2aefeb1ca35872e1517b22455dacf254c Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 26 Nov 2014 17:52:23 +0000 Subject: fix mount and umounts --- installer/installer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1