[pve-devel] applied: [PATCH pve-kernel-meta v2] proxmox-boot: read only first line of /etc/kernel/cmdline

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Nov 11 11:21:42 CET 2021


On 10.11.21 16:25, Stoiko Ivanov wrote:
> following the commit of removing the wrong indentation of the linux
> and initrd lines - this commit strips empty lines (and leading
> trailing whitespace) in /etc/kernel/cmdline.
> 
> I managed to reproduce the issue reported in the forum [0] by adding
> empty lines to /etc/kernel/cmdline) - without this - systemd-boot
> booted quite happily even with the indentation.
> 
> considered using perl -pe with multiline matching but thanks to
> Thomas' suggestion went with the shell-builtin read.
> 
> the check for existance of 'root=' in the resulting CMDLINE was added,
> since my test-system had an empty line in the beginning, which again
> rendered it unbootable.
> 
> quickly tested on a VM.
> 
> [0]: https://forum.proxmox.com/threads/problem-with-proxmox-boot-tool.99043/
> 
> Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
> ---
> v1->v2:
> * incorporated Dominik and Thomas' feedback (huge thanks for catching my
> glitches!)
> 
>  proxmox-boot/zz-proxmox-boot | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
>

applied, thanks! I'd have preferred for this being two separate patches though.





More information about the pve-devel mailing list