summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-11-26 17:21:30 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-12-02 17:58:47 +0000
commitf2366f8908c3228a7b02e3c7031fac52e016fe61 (patch)
tree9ef8a877ccb730b2251789b076a590f7714f5ad1
parent4db7263748781e139dd18cc999b056fc36a5c8af (diff)
downloaddefinitions-f2366f8908c3228a7b02e3c7031fac52e016fe61.tar.gz
Remove conditional fstype
-rwxr-xr-xinstaller/installer.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/installer/installer.py b/installer/installer.py
index 7e1033b8..df9d338d 100755
--- a/installer/installer.py
+++ b/installer/installer.py
@@ -107,11 +107,8 @@ class BaserockInstaller():
mounted.append(mount_point)
return mounted
- def mount(self, partition, mount_point, fstype=None):
- if not fstype:
- fstype = ''
- else:
- fstype = '-t %s' % fstype
+ 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]