Files
systemd/src
Jia Zhang 486cf22c35 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>
2022-12-26 19:12:23 +09:00
..
2022-12-23 23:26:26 +01:00
2022-12-14 09:56:33 +01:00
2022-12-21 01:50:33 +09:00
2022-11-30 09:40:56 +09:00
2022-12-21 01:50:33 +09:00
2022-12-23 15:04:19 +01:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00