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-11-26 17:21:30 +0000
commit2a77c31ec00dc5bfd8eb89d6773b7d157ced2039 (patch)
tree61d7dc1f2f4c1cc9ecac54e554f87c2a9464da0d
parentae033688fe90cf0c5a53000a33926c0bafe794f0 (diff)
downloaddefinitions-2a77c31ec00dc5bfd8eb89d6773b7d157ced2039.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]