summaryrefslogtreecommitdiffstats
path: root/partitions.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-06-07 19:21:23 +0000
committerJeremy Katz <katzj@redhat.com>2005-06-07 19:21:23 +0000
commita1b89c764bcb3c2b52ef03b46415403b331439bc (patch)
treeea61a009825d196db9ce9c80924c92abd8e02213 /partitions.py
parent82d1e31cccb065212137d8aae77c8ad255246eac (diff)
downloadanaconda-a1b89c764bcb3c2b52ef03b46415403b331439bc.tar.gz
anaconda-a1b89c764bcb3c2b52ef03b46415403b331439bc.tar.xz
anaconda-a1b89c764bcb3c2b52ef03b46415403b331439bc.zip
2005-06-07 Jeremy Katz <katzj@redhat.com>
* partitions.py (Partitions.writeKS): And use the quoted format so we get it everywhere (#159193) * fsset.py (FileSystemType.getName): Pass back quoted fsname if needed.
Diffstat (limited to 'partitions.py')
-rw-r--r--partitions.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/partitions.py b/partitions.py
index 3bc795955..dfde0f7f7 100644
--- a/partitions.py
+++ b/partitions.py
@@ -1035,12 +1035,8 @@ class Partitions:
elif request.fstype.getName() == "Apple Bootstrap":
args.extend(["appleboot", "--fstype", "\"Apple Bootstrap\""])
elif request.mountpoint:
- fstype = request.fstype.getName()
- if fstype.find(" ") > 0:
- fstype = "\"%s\"" %(fstype,)
- args.append(request.mountpoint)
- args.append("--fstype")
- args.append(fstype)
+ args.extend([request.mountpoint, "--fstype",
+ request.fstype.getName(quoted = 1)])
else:
continue
@@ -1106,11 +1102,7 @@ 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(fstype)
+ args.extend(["--fstype", request.fstype.getName(quoted = 1)])
if request.badblocks:
args.append("--badblocks")
@@ -1176,8 +1168,7 @@ class Partitions:
if not request.format:
args.append("--noformat")
if request.fstype:
- args.append("--fstype")
- args.append(request.fstype.getName())
+ args.extend(["--fstype", request.fstype.getName(quoted = 1)])
vg = self.getRequestByID(request.volumeGroup)
if vg is None: