Dear Debian kernel maintainers,
people wanting to give systemd-boot a try cannot currently follow the upstream recommended setup [1] that mounts a FAT-formatted partition (either the XBOOTLDR
partition from the spec or ESP [2]) to /boot/, since dpkg requires a lot of things from the underlying filesystem that FAT does not support [3].
This could be worked around by shipping the files that are currently installed to /boot/ to /usr/lib/ instead, e.g. /usr/lib/modules/$KERNEL_VERSION/ as Arch and Fedora do, and if necessary copy the files into /boot/ in a postinst script and remove them likewise, as Fedora does.
I know this is probably too late in the cycle for bookworm, but I wanted to get a discussion on this started in time for trixie.
best regards,
Jörg Behrmann
[1]
https://systemd.io/BOOT_LOADER_SPECIFICATION/
Talking with upstream the preference would be having two partitions,
XBOOTLDR mounted to /boot/ and the ESP mounted to /efi/, which would allow
for either to be automounted, since neither systemd's automount logic nor
autofs' one allows for nested automounts.
[2] It is clear that the ESP needs to be FAT-partitioned. Why then use it for
yet another partition? Reading FAT comes free with the EFI firmware, so
putting boot-related things on FAT partitions frees one from implementing
reading "real" filesystems, no matter what partition setup one uses.
[3]
https://wiki.debian.org/Teams/Dpkg/FAQ#Q:_What_are_the_filesystem_requirements_by_dpkg.3F
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEW8ff2Z3ec8g+9IMxPFdy1xdIMhgFAmMVuSQACgkQPFdy1xdI Mhhs7RAAr3YIZ9RU/6LWn6Ni47sYHzHC3yBGWFXOpxhenf/NPUwKlXUxda51WSV+ 0JOYFfJN2TokElRxzQ/W45LrbugTOIafQVbrUMEasWDD7Owpt/lolejOYaz2j/gY VZCnEjFpTcXhaa5Wqu/M0t/q2gmxJGAHYTYr76BlLYEuyIhXc1W9PE4S394TyxAF GztssMuZhP/9hKJzbTkK31GVkofB04TNE54bR3cfG/BpZIbDCShqMd/Ht8upcOAW VscVFH3rL1OgafBpMJYuUkgzI8pWc3pemt5ghorXt5nKmgSsUbPQJF2Sxa3hvwRv NAuyZl6608VcsYpqmcgDDIj32AmKnh6YqisAyUbiqXY53Sa1mfuIJ43K4RwdSXVx 5otTtCHErwRjqFgNQT3qiqb7ndAneBVHbfNW6k8DbBHKpR0b4yBtX30LTQnMKgem UpUkpw3Bm2PzY1g8fRtywoBYKDTLoVvm9RjhlCrHZqkc85DG5NhfLdxh76S5YAfT CDTTeeEYjZ9E5MW+MrsIdyQIBTCwqaSW/A5sQ34zAaZR71nWX/UqixmN+QM7+UVq yd75j1cWkWi8EMIIJlpwwa6VMMzltbOSV/s3jZtKUssR2QYLTeCwqns+Jaxs12lU ZQLJGHG5zH2ZNccWb3zURmr/gLliejjpdvDmU4MowSWF+bfchmg=
=6qAT
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)