summaryrefslogtreecommitdiff
path: root/hwdb.d
diff options
context:
space:
mode:
authorJia Zhang <zhang.jia@linux.alibaba.com>2022-12-25 12:29:11 +0800
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-12-26 19:12:23 +0900
commit486cf22c35780d9ed621b931f3534b3e6d659c17 (patch)
tree95a5196b693705886683ee79d1544490cd4498b3 /hwdb.d
parent5c8e19cc1cfc58cd65a8bfe0fea4ea16ea513dcf (diff)
downloadsystemd-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')
0 files changed, 0 insertions, 0 deletions