systemd-repart Automates Linux Disk Partitioning Without Manual Scripts
systemd-repart is a Linux tool that replaces manual partitioning scripts by using declarative configuration files to define GPT partition layouts. It reads definitions from repart.d/*.conf files and automatically adds missing partitions or grows existing ones on each boot, making it suitable for managing VMs, bare-metal servers, and image-based fleets at scale. The tool is incremental and idempotent, meaning it skips changes when the partition table already matches the configuration, and it never shrinks, deletes, or reorders existing partitions by default. It also supports offline disk image builds, optional encryption, and filesystem population via flags like Format= and CopyFiles=. A dry-run mode is available for safely previewing changes before applying them to real devices.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in