Masami Hiramatsu c722cea208 fs/proc: Skip bootloader comment if no embedded kernel parameters
If the "bootconfig" kernel command-line argument was specified or if
the kernel was built with CONFIG_BOOT_CONFIG_FORCE, but if there are
no embedded kernel parameter, omit the "# Parameters from bootloader:"
comment from the /proc/bootconfig file.  This will cause automation
to fall back to the /proc/cmdline file, which will be identical to the
comment in this no-embedded-kernel-parameters case.

Link: https://lore.kernel.org/all/20240409044358.1156477-2-paulmck@kernel.org/

Fixes: 8b8ce6c75430 ("fs/proc: remove redundant comments from /proc/bootconfig")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: stable@vger.kernel.org
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
2024-04-09 23:36:18 +09:00
..
2022-10-03 14:21:45 -07:00
2023-10-19 11:02:48 +02:00
2023-01-19 09:24:28 +01:00
2024-03-11 09:38:17 -07:00
2022-10-10 11:24:19 -07:00
2022-10-03 14:21:45 -07:00
2023-08-28 11:43:19 -07:00
2022-10-03 14:21:45 -07:00
2023-04-18 16:39:33 -07:00
2023-10-30 09:14:19 -10:00
2022-10-03 14:21:45 -07:00
2022-10-03 14:21:45 -07:00