[systemd-devel] systemd-repart MountPoint fails for esp partitions

Thayne Harbaugh thayne at mastodonlabs.com
Tue Mar 25 22:53:07 UTC 2025


Greetings,

systemd-repart MountPoint fails to generate a correct fstab entry for
esp partitions.  It generates a standard partition UUID which does not
work for FAT file systems - a FAT volume ID must be used analogous to
what is generated for vfat in mkfs-util.c:make_filesystem().  The FAT
volume ID is in the form of 32 bits of uppercase hex digits with a
dash "-" between the high and low 16 bits: XXXX-XXXX (where X
represents an uppercase hex digit).

Attached is a patch I have been using with systemd v257 to provide
correct behavior.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: repart-fstab_vfat_partuuid.2.patch
Type: text/x-patch
Size: 4307 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20250325/5e2aede1/attachment.bin>


More information about the systemd-devel mailing list