]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: Rework Minimize= option settings
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 13 Dec 2022 18:52:18 +0000 (18:52 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 15 Dec 2022 06:09:09 +0000 (15:09 +0900)
commit5c33b6865246f0651ced43048fa1cb58cbc0c35b
treef4daa0e167c2eb571e5cc037b7008b781d8f05e6
parent993681def8241dcf0af8da1993015e1445f63837
repart: Rework Minimize= option settings

Instead of having Minimize= take a boolean let's allow for two
different ways to enable it. "best" means we want the most minimal
image possible, which currently is only possible for read-only
filesystems but can be extended in the future with bisection
to find the most minimal possible size.

We also add "guess", which is the current behavior, where we
populate once and use the sparse size to make a reasonable guess
on a size that fits all the sources without needing to O(log(n))
tries to find the most minimal size.
man/repart.d.xml
src/partition/repart.c