Files
systemd/src/boot
Yu Watanabe 6d0e8271b4 boot: fix buffer alignment when doing block I/O (#40465)
UEFI Block I/O Protocol has `Media->IoAlign` field dictating the minimum
alignment for I/O buffer. It's quite surprising this has been lingering
here unnoticed for years, seems like most UEFI implementations have
small or no alignment requirements. U-Boot is not the case here, and
requires at least 512 byte alignment, hence attempt to read GPT
partition table fail and in effect systemd-boot can not find XBOOTLDR
partition.

These patches allow to boot from XBOOTLDR partition on U-Boot - tested
with latest systemd revision and U-Boot master
(`8de6e8f8a076d2c9b6d38d8563db135c167077ec`) on x64 and ARM32, of which
both are failing without the patch.

Also fixes Bitlocker probing logic, which is the only other place where
raw block I/O is used, however this is untested.
2026-02-16 09:10:01 +09:00
..
2025-05-07 18:52:49 +03:00
2025-09-24 08:49:23 +02:00
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-21 10:50:25 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2026-01-15 11:36:13 +01:00
2025-05-22 11:10:20 +02:00
2025-02-25 21:08:38 +01:00
2025-05-22 11:10:20 +02:00
2024-11-07 14:52:06 +01:00
2025-12-15 08:50:13 +09:00
2025-11-12 23:44:06 +01:00
2025-05-22 11:10:20 +02:00
2025-12-15 08:50:13 +09:00
2024-11-07 14:52:06 +01:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2025-05-22 11:10:20 +02:00
2026-02-15 15:45:46 +01:00
2026-02-15 15:45:46 +01:00
2025-05-22 11:10:20 +02:00
2024-11-07 14:52:06 +01:00