[systemd-devel] Strange partition layout from systemd-repart

Lennart Poettering lennart at poettering.net
Fri Jun 5 13:29:51 UTC 2020


On Do, 04.06.20 16:58, Tobias Hunger (tobias.hunger at gmail.com) wrote:

> Poking around a bit more: I have 4096 unused sectors before the first
> partiton instead of just 2048. Systemd-repart then tries to put all my
> new partitions into the sectors 2048-4095 and completely ignores the
> GBs of free space that is available elsewhere.

Hmm, I guess what it does currently does makes some sense
actually. Maybe we should change the defaults for SizeMinBytes=
however, and default to 10M or so for that, so that it doesn't happen
accidentally, if people don't set a lower partition limit. Or maybe we
should warn about really small partitions?

> So this can be considered a user error. I'll fix the image generation.
>
> Maybe there is some way to improve the reporting done by
> systemd-repart in such a case?

What would you propose specifically? Warn when partitions of a size
below some compiled-in threshold are generated? anything smarter?

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list