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

bcl installerbot-noreply at redhat.com
Tue Jun 2 00:31:28 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 1f38b5a..82d9079 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -88,8 +88,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/4a8f1f38c4a138451f36db226518cb224627ad3c


More information about the anaconda-patches mailing list