diff options
author | Jia Zhang <zhang.jia@linux.alibaba.com> | 2022-12-25 12:29:11 +0800 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-26 19:12:23 +0900 |
commit | 486cf22c35780d9ed621b931f3534b3e6d659c17 (patch) | |
tree | 95a5196b693705886683ee79d1544490cd4498b3 /hwdb.d/60-keyboard.hwdb | |
parent | 5c8e19cc1cfc58cd65a8bfe0fea4ea16ea513dcf (diff) | |
download | systemd-486cf22c35780d9ed621b931f3534b3e6d659c17.tar.gz |
boot: don't convert the trailing newline in mangle_stub_cmdline()
It is pretty convenient to add .cmdline using /proc/cmdline like
this:
--add-section .cmdline=/proc/cmdline --change-section-vma .cmdline=0x25000
However, it always returns a trailing newline, and stub will
convert it to a whitespace by mangle_stub_cmdline() in next boot.
Thus the resulting /proc/cmdline would contain a trailing
whitespace. When /proc/cmdline is used to generate .cmdline again,
the resulting UKI is mangled.
To address this kind of inconvenience, mangle_stub_cmdline() should
skip converting the trailing newline, and try to chomp all the
trailing whitespaces.
Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com>
Diffstat (limited to 'hwdb.d/60-keyboard.hwdb')
0 files changed, 0 insertions, 0 deletions