systemd-repart
Declarative disk partition management
TLDR
Grow partitions automatically
SYNOPSIS
systemd-repart [OPTIONS] [DEVICE]
DESCRIPTION
systemd-repart automatically grows and adds partitions based on configuration files in `/usr/lib/repart.d/` and `/etc/repart.d/`. It reads declarative partition definitions and applies them to the disk.
This tool modifies partition tables but does not resize filesystems. Use `systemd-growfs` to extend filesystems after growing partitions.
PARAMETERS
--dry-run= BOOL
Show what would be done without applying changes--size= SIZE
Target size for operations--root= PATH
Operate on specified root directory--definitions= PATH
Use configuration from specified directory
CAVEATS
Only modifies partition tables, not filesystems. Configuration files define desired partition layout declaratively. Use dry-run mode to preview changes before applying. Primarily designed for image-based systems.
HISTORY
systemd-repart supports image-based OS deployment by enabling declarative partition management, allowing systems to automatically configure disk layout on first boot.
SEE ALSO
systemd-growfs(8), repart.d(5), fdisk(8)
