]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
init: make unknown command line param message clearer
authorAndrew Halaney <ahalaney@redhat.com>
Tue, 9 Nov 2021 02:34:27 +0000 (18:34 -0800)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:37 +0000 (09:48 +0100)
commit2340f661269a67ba59aa96e025ffc272a5868f04
tree469c4d6382fd138dc9bd8105e4bec8f896d29f13
parent22eb54af7c2acd148a4cdf749e39397b9ec6b060
init: make unknown command line param message clearer

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit 8bc2b3dca7292347d8e715fb723c587134abe013 ]

The prior message is confusing users, which is the exact opposite of the
goal.  If the message is being seen, one of the following situations is
happening:

 1. the param is misspelled
 2. the param is not valid due to the kernel configuration
 3. the param is intended for init but isn't after the '--'
    delineator on the command line

To make that more clear to the user, explicitly mention "kernel command
line" and also note that the params are still passed to user space to
avoid causing any alarm over params intended for init.

Link: https://lkml.kernel.org/r/20211013223502.96756-1-ahalaney@redhat.com
Fixes: 86d1919a4fb0 ("init: print out unknown kernel parameters")
Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Suggested-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Borislav Petkov <bp@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
init/main.c