Centos-kernel-stream-9/init
Brian Masney 6948ce03fe bootconfig: do not put quotes on cmdline items unless necessary
JIRA: https://issues.redhat.com/browse/RHEL-65546

Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

commit 212f863fa8811c780abacc1d0404c573fdc0a2de
Author: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Date:   Wed Mar 20 11:19:52 2024 +0100

    bootconfig: do not put quotes on cmdline items unless necessary

    When trying to migrate to using bootconfig to embed the kernel's and
    PID1's command line with the kernel image itself, and so allowing changing
    that without modifying the bootloader, I noticed that /proc/cmdline
    changed from e.g.

      console=ttymxc0,115200n8 cma=128M quiet -- --log-level=notice

    to

      console="ttymxc0,115200n8" cma="128M" quiet -- --log-level="notice"

    The kernel parameters are parsed just fine, and the quotes are indeed
    stripped from the actual argv[] given to PID1.  However, the quoting
    doesn't really serve any purpose and looks excessive, and might confuse
    some (naive) userspace tool trying to parse /proc/cmdline.  So do not
    quote the value unless it contains whitespace.

    Link: https://lkml.kernel.org/r/20240320101952.62135-1-linux@rasmusvillemoes.dk
    Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
    Cc: Masami Hiramatsu <mhiramat@kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Brian Masney <bmasney@redhat.com>
2024-11-06 14:49:53 -05:00
..
Kconfig bootconfig: Default BOOT_CONFIG_FORCE to y if BOOT_CONFIG_EMBED 2024-11-06 14:49:52 -05:00
Makefile sched/preempt: Tell about PREEMPT_DYNAMIC on kernel headers 2022-04-07 09:35:08 -04:00
calibrate.c
do_mounts.c init: flush async file closing 2024-04-17 10:10:57 +08:00
do_mounts.h init: flush async file closing 2024-04-17 10:10:57 +08:00
do_mounts_initrd.c freezer,umh: Clean up freezer/initrd interaction 2023-10-20 06:13:12 -04:00
do_mounts_rd.c
init_task.c Merge: Sched: Updates and fixes for 9.6 2024-10-25 16:52:35 +00:00
initramfs.c mm: remove arguments of show_mem() 2024-10-01 11:17:31 -04:00
main.c bootconfig: do not put quotes on cmdline items unless necessary 2024-11-06 14:49:53 -05:00
noinitramfs.c
version.c kbuild: add an elfnote for whether vmlinux is built with lto 2021-04-25 05:25:42 +09:00