]> git.baikalelectronics.ru Git - kernel.git/commit
param: allow whitespace as kernel parameter separator
authorPeter Oberparleiter <oberpar@linux.vnet.ibm.com>
Mon, 6 Jul 2009 15:11:22 +0000 (17:11 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 24 Sep 2009 15:02:58 +0000 (00:32 +0930)
commitc20dc9c704d81bbe3b4581889018317d95067ff7
tree4244565b8a687f52fa2b7375cc8435fd1bb41e98
parentf53bd6f7da3db26bd8bc4c5ad5db0cb119e9e13a
param: allow whitespace as kernel parameter separator

Some boot mechanisms require that kernel parameters are stored in a
separate file which is loaded to memory without further processing
(e.g. the "Load from FTP" method on s390). When such a file contains
newline characters, the kernel parameter preceding the newline might
not be correctly parsed (due to the newline being stuck to the end of
the actual parameter value) which can lead to boot failures.

This patch improves kernel command line usability in such a situation
by allowing generic whitespace characters as separators between kernel
parameters.

Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/params.c