Where Does systemd-repart Store Definitions?
systemd-repart partition definitions on Linux, drop in directories and build time configs.
Last updated
systemd-repart grows partition tables from declarative .conf definitions. Vendor files ship in /usr/lib/repart.d while local overrides belong in /etc/repart.d. The tool merges them at run time.
Definitions describe size, type UUIDs, encryption and verity per partition. Copying outputs without definitions strands future grows. Version the conf files like code.
Where Linux stores this, by platform
/etc/repart.d/*.conf
Local overrides win over vendor ships. Keep filenames sortable with numeric prefixes. Test with --dry-run before touching real disks.
Frequently asked questions
How do I override a vendor partition definition?
Drop a .conf into /etc/repart.d to override vendor files. Names sort lexically, so prefix with numbers. Run repart in dry run before writing to disk.
Which repart definition actually applied?
Check /usr/lib/repart.d for shipped files and /etc/repart.d for local wins. Logs through the service unit show which definition produced each partition.
Notice an outdated path? Let us know.