[rhel7-branch 25/29] Use a backslash to escape nfs spaces instead of x20 (#1109933)

bcl installerbot-noreply at redhat.com
Wed Jun 3 00:36:57 UTC 2015


From: "Brian C. Lane" <bcl at redhat.com>

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
(cherry picked from commit c17161469c17ef0f2ff18b90f3eb05c38fbff1fe)

Related: rhbz#1196721
---
 dracut/parse-kickstart | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
index c1d4e92..61a93ee 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -103,8 +103,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):


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/1b643e8bf309a190bb7eb15d442d843679822136


More information about the anaconda-patches mailing list