summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-06-09 21:34:50 +0000
committerJeremy Katz <katzj@redhat.com>2004-06-09 21:34:50 +0000
commit2a8997a1ddef87f7affcaa9b7580e3b8f1a6705b (patch)
treeec7a7ba843f32a97764ec44fab6785a1c81c5917
parent21d5ca24119665938a73b3461dac980038ffcee8 (diff)
downloadanaconda-2a8997a1ddef87f7affcaa9b7580e3b8f1a6705b.tar.gz
anaconda-2a8997a1ddef87f7affcaa9b7580e3b8f1a6705b.tar.xz
anaconda-2a8997a1ddef87f7affcaa9b7580e3b8f1a6705b.zip
quote fstype if needed (#119243)
-rw-r--r--partitions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/partitions.py b/partitions.py
index e881bcf54..5ad04cdcb 100644
--- a/partitions.py
+++ b/partitions.py
@@ -964,9 +964,12 @@ class Partitions:
# see above about uniqueIDs being ints
args.append("pv.%s" % (request.uniqueID))
elif request.mountpoint:
+ fstype = request.fstype.getName()
+ if fstype.find(" "):
+ fstype = "\"%s\"" %(fstype,)
args.append(request.mountpoint)
args.append("--fstype")
- args.append(request.fstype.getName())
+ args.append(fstype)
else:
continue