[rhel7/master] Use a backslash to escape nfs spaces instead of x20 (#1109933)
Brian C. Lane
bcl at redhat.com
Tue Jan 6 20:39:05 UTC 2015
Flags replaces \x20 on the cmdline with _ (for use with devices that
have spaces in their names, _ is equivelant). But this breaks nfs paths
with spaces. Use '\ ' instead so that Flags will leave it alone.
Related: rhbz#1109933
---
dracut/parse-kickstart | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
index bcde770..304512e 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -74,8 +74,8 @@ class NFS(commands.nfs.FC6_NFS):
else:
method="nfs:%s:%s" % (self.server, self.dir)
- # Spaces on the cmdline need to be \x20
- method = method.replace(" ", "\\x20")
+ # Spaces on the cmdline need to be '\ '
+ method = method.replace(" ", "\\ ")
return "inst.repo=%s" % method
class URL(commands.url.F18_Url):
--
1.9.3
More information about the anaconda-patches
mailing list