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-19 15:00:57 +01:00
2022-12-23 17:35:21 +01:00
2022-12-23 23:26:26 +01:00
2022-12-15 03:36:27 +09:00
2022-12-26 19:12:23 +09: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-24 11:20:02 +01:00
2022-12-20 19:01:54 +01:00
2022-12-21 22:47:47 +01:00
2022-12-22 17:33:25 -05:00
2022-12-22 11:20:56 -05:00
2022-12-23 15:04:19 +01:00
2022-12-21 01:50:33 +09:00
2022-12-20 11:12:58 +09:00
2022-12-14 22:12:44 +01:00
2022-12-12 21:47:22 +09:00
2022-12-20 11:12:58 +09:00
2022-12-19 15:00:57 +01:00
2022-12-23 12:44:57 +01:00
2022-12-23 15:04:19 +01:00
2022-12-07 20:35:56 +01:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00
2022-12-24 08:13:00 +09:00
2022-12-19 15:00:57 +01:00
2022-11-29 11:33:27 +01:00
2022-12-23 23:26:26 +01:00
2022-12-21 01:50:33 +09:00
2022-12-19 15:00:57 +01:00
2022-12-19 15:00:59 +01:00
2022-12-19 15:00:57 +01:00
2022-12-21 01:50:33 +09:00
2022-12-12 21:57:31 +09:00
2022-12-23 15:04:19 +01:00
2022-12-22 09:40:46 +09:00
2022-12-23 15:04:19 +01:00
2022-11-25 17:41:55 +01:00
2022-12-19 15:00:57 +01:00
2022-12-23 17:35:21 +01:00
2022-12-23 15:04:19 +01:00
2022-12-19 15:00:57 +01:00
2022-12-19 15:00:57 +01:00
2022-12-19 15:00:57 +01:00
2022-12-20 19:02:18 +01:00
2022-12-21 01:50:33 +09:00
2022-12-03 20:27:47 +08:00
2022-12-21 01:50:33 +09:00
2022-12-24 08:13:00 +09:00
2022-12-19 15:00:57 +01:00
2022-12-19 15:00:57 +01:00
2022-12-20 11:12:58 +09:00
2022-11-22 13:07:27 +01:00
2022-12-23 22:11:00 +09:00
2022-12-23 18:29:35 +01:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00
2022-12-23 17:35:21 +01:00
2022-12-23 17:35:21 +01:00
2022-12-21 01:50:33 +09:00
2022-12-23 17:35:21 +01:00
2022-12-21 01:50:33 +09:00
2022-12-21 01:50:33 +09:00
2022-12-22 22:19:05 +01:00
2022-12-19 15:00:57 +01:00
2022-12-19 15:00:57 +01:00
2022-12-19 15:00:57 +01:00
2022-12-14 22:12:44 +01:00
2022-12-19 15:00:57 +01:00