diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | partitions.py | 7 |
2 files changed, 12 insertions, 2 deletions
@@ -1,5 +1,12 @@ 2004-12-20 Jeremy Katz <katzj@redhat.com> + * partitions.py (Partitions.writeKS): Improve quoting of fstypes. + Patch from Danen Brücker <dbrucker AT modwest DOT com> on + anaconda-devel-list + + * iw/progress_gui.py: Remove old InstallProgressWindow class to + avoid confusion with dead code + * scripts/mk-images (makeinitrd): Remove /dev creation from here, it's handled by init now. 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") |