mirror of
https://git.proxmox.com/git/pve-kernel-meta
synced 2025-08-06 14:08:54 +00:00
proxmox-boot: esp config: avoid leading whitespace in initrd/linux options
Not an actual issue, the systemd parser just skips those
whitespaces[0], but it may confuse people and lead to false-positive
conclusions about a culprit for loader issues, so fix that up.
[0]: https://github.com/systemd/systemd/blob/main/src/boot/efi/boot.c#L1064
diff before -> after:
version 5.11.22-7-pve
options root=ZFS=rpool/ROOT/pve-1 boot=zfs iommu=pt
- linux /EFI/proxmox/5.11.22-7-pve/vmlinuz-5.11.22-7-pve
- initrd /EFI/proxmox/5.11.22-7-pve/initrd.img-5.11.22-7-pve
+linux /EFI/proxmox/5.11.22-7-pve/vmlinuz-5.11.22-7-pve
+initrd /EFI/proxmox/5.11.22-7-pve/initrd.img-5.11.22-7-pve
Fixes: 2a8a4b5
("proxmox-boot: fix #3632 copy kernel+initrd unconditionally")
Signed-off-by: Oguz Bektas <o.bektas@proxmox.com>
[ Thomas: Clarify that the commit does not fix anything but is still
good to have ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
3004f01932
commit
c473995e65
@ -140,8 +140,8 @@ copy_and_config_kernels() {
|
||||
title ${LOADER_TITLE}
|
||||
version ${kver}
|
||||
options ${CMDLINE}
|
||||
linux /${KERNEL_ESP_DIR}/vmlinuz-${kver}
|
||||
initrd /${KERNEL_ESP_DIR}/initrd.img-${kver}
|
||||
linux /${KERNEL_ESP_DIR}/vmlinuz-${kver}
|
||||
initrd /${KERNEL_ESP_DIR}/initrd.img-${kver}
|
||||
EOF
|
||||
else
|
||||
warn " Copying kernel ${kver}"
|
||||
|
Loading…
Reference in New Issue
Block a user