summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/partitions.py b/partitions.py
index dc6fa83db..0c6a092e1 100644
--- a/partitions.py
+++ b/partitions.py
@@ -990,7 +990,7 @@ class Partitions:
args.extend(["prepboot", "--fstype", "\"PPC PReP Boot\""])
elif request.mountpoint:
fstype = request.fstype.getName()
- if fstype.find(" "):
+ if fstype.find(" ") > 0:
fstype = "\"%s\"" %(fstype,)
args.append(request.mountpoint)
args.append("--fstype")
@@ -1060,8 +1060,11 @@ class Partitions:
if not request.format:
args.append("--noformat")
if request.fstype:
+ fstype = request.fstype.getName()
+ if fstype.find(" ") > 0:
+ fstype = "\"%s\"" %(fstype,)
args.append("--fstype")
- args.append(request.fstype.getName())
+ args.append(fstype)
if request.badblocks:
args.append("--badblocks")