🏗️ DevOps & Infrastructure

systemd-repart: Smarter Linux Image Growth on Boot

Forget shipping fat Linux images. systemd-repart is here to revolutionize how we handle partition resizing on first boot, offering a smarter, cleaner approach for VM and cloud deployments.

Diagram showing a Linux image with initial partitions and then expanded partitions after systemd-repart has run.

⚡ Key Takeaways

  • `systemd-repart` offers a declarative, repeatable way to manage Linux partition layouts on first boot. 𝕏
  • It focuses on growing existing partitions and adding new ones, not shrinking or deleting. 𝕏
  • The `GrowFileSystem=yes` option and `x-systemd.growfs` in `/etc/fstab` work together to expand filesystems. 𝕏
  • Dry-running with `--dry-run=yes` against an image file is crucial for safe testing before deployment. 𝕏
Jordan Kim
Written by

Jordan Kim

Infrastructure reporter. Covers CNCF projects, cloud-native ecosystems, and OSS-backed platforms.

Worth sharing?

Get the best Open Source stories of the week in your inbox — no noise, no spam.

Originally reported by Dev.to

Stay in the loop

The week's most important stories from Open Source Beat, delivered once a week.