pve-installer/Proxmox
Stoiko Ivanov 268783c3e8 btrfs: pass UUID of root file system to sd-boot via kernel cmdline
The recent change of handing the ESPs to proxmox-boot-tool broke
installation on btrfs booted with systemd-boot (currently efi-systems
without secure boot). our systemd-boot config-generation takes the
kernel command line from /etc/kernel/cmdline - without this there is
no root= parameter, and we end up in a initramfs shell.

Write the file unconditionally of boot-mode (legacy, efi,
efi-secureboot), to be consistent with the way we do it on ZFS.

The UUID is stored in a variable instead of running blkid multiple
time primarily to not end up with different versions of a similar
command in the future, at the expense of 3 change-sites which are
quite far apart.

Fixes: dc5b8d7 ("btrfs: use proxmox-boot-tool to sync ESPs for RAID installs")
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Link: https://lore.proxmox.com/20250408191806.2410107-1-s.ivanov@proxmox.com
 [TL: rework commit message subject]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-04-09 08:28:01 +02:00
..
Install run env: always return proper value for default zfs max arc size 2025-04-04 14:55:05 +02:00
Sys low-level: install: check for already-existing rpool on install 2024-07-16 17:51:41 +02:00
UI low-level: stdio: fix: make progress text properly optional 2024-11-25 23:21:51 +01:00
Install.pm btrfs: pass UUID of root file system to sd-boot via kernel cmdline 2025-04-09 08:28:01 +02:00
Log.pm log: record when and that the log got initialized 2023-06-21 16:39:36 +02:00
Makefile proxinstall: use email regex from HTML specification for validation 2024-11-10 19:17:07 +01:00
Sys.pm proxinstall: raise minimum root password length to 8 characters 2025-02-24 12:02:09 +01:00
UI.pm add Finished UI² message 2023-06-20 21:02:53 +02:00