Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure compression in repart.d file (squashfs, erofs, btrfs) #32737

Open
septatrix opened this issue May 9, 2024 · 0 comments
Open

Configure compression in repart.d file (squashfs, erofs, btrfs) #32737

septatrix opened this issue May 9, 2024 · 0 comments
Labels
repart RFE 🎁 Request for Enhancement, i.e. a feature request

Comments

@septatrix
Copy link
Contributor

Component

systemd-repart

Is your feature request related to a problem? Please describe

SquashFS and EROFS support different compression algorithms which influence compression ration and speed. Having control over these settings is important when creating disk images using e.g. mkosi.

Similarly BTRFS supports online compression. While this is a mount option and makes no difference for empty volumes, as soon as one starts to fill it using CopyFiles= there is no method to enable compression for these files meaning these files will always be uncompressed if filled my repartd. Instead, one would have to create the btrfs manually, mount if using the proper options, then fill it, and optionally shrink it afterwards.

Describe the solution you'd like

A new option CompressionAlgorithm= should be added to the repart.d config files to set configure these values.

Describe alternatives you've considered

One could also use $SYSTEMD_REPART_MKFS_OPTIONS_<FSTYPE>. For one time operations this might be acceptable but it quickly becomes unmaintainable as one must not forget to set the option and write it down somewhere. It is also way more convoluted when using e.g. systemd-repart.service and splits configuration into several places. AFAIK this workaround also does not work with BTRFS.

The systemd version you checked that didn't have the feature you are asking for

255

@septatrix septatrix added the RFE 🎁 Request for Enhancement, i.e. a feature request label May 9, 2024
@github-actions github-actions bot added the repart label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repart RFE 🎁 Request for Enhancement, i.e. a feature request
Development

No branches or pull requests

1 participant