[rhel7/master] Use a backslash to escape nfs spaces instead of x20 (#1109933)
Vratislav Podzimek
vpodzime at redhat.com
Wed Jan 7 07:43:27 UTC 2015
On Tue, 2015-01-06 at 12:39 -0800, Brian C. Lane wrote:
> 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
One of the "hell-long debugging, simple fix" patches, I guess? ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list