summaryrefslogtreecommitdiff
path: root/installer/installer.py
diff options
context:
space:
mode:
Diffstat (limited to 'installer/installer.py')
-rwxr-xr-xinstaller/installer.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/installer/installer.py b/installer/installer.py
index df9d338d..f84df062 100755
--- a/installer/installer.py
+++ b/installer/installer.py
@@ -108,17 +108,12 @@ class BaserockInstaller():
return mounted
def mount(self, partition, mount_point, fstype):
- fstype = '-t %s' % fstype
- mount_command = "mount %s %s %s" % (partition, mount_point, fstype)
- child = subprocess.Popen(mount_command, shell=True)
- child.communicate()[0]
- return child.returncode
+ return subprocess.call(['mount', partition, mount_point, '-t', fstype])
def do_unmounts(self, to_unmount):
for path in reversed(to_unmount):
print 'Unmounting %s' % path
- unmount_command = "umount %s" % (path)
- subprocess.Popen(unmount_command, shell=True)
+ subprocess.Popen(['umount', path])
def check_and_read_config(self, config_file):
print "Reading configuration from %s..." % config_file