init/bootconfig: Reorder init parameter from bootconfig and cmdline
authorMasami Hiramatsu <mhiramat@kernel.org>
Sat, 4 Sep 2021 15:54:16 +0000 (00:54 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 8 Sep 2021 19:10:41 +0000 (15:10 -0400)
commitb66fbbe8d48228e1e81b583ae39abb86d7d09053
tree2e02da90c7241f756db435e1fedc7d01ad26a013
parent40caa127f3c7279c75cb0c9684559fa314ee3a66
init/bootconfig: Reorder init parameter from bootconfig and cmdline

Reorder the init parameters from bootconfig and kernel cmdline
so that the kernel cmdline always be the last part of the
parameters as below.

 " -- "[bootconfig init params][cmdline init params]

This change will help us to prevent that bootconfig init params
overwrite the init params which user gives in the command line.

Link: https://lkml.kernel.org/r/163077085675.222577.5665176468023636160.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
init/main.c