repart: Use first unused partition number for new partitions
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 14 Oct 2022 10:40:28 +0000 (12:40 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 15 Nov 2022 12:27:59 +0000 (13:27 +0100)
commit00428745e3d1e42fe4481fc8a5c50d6316d4282a
treecc1c4d079b8c8d9cd9206d31417021762b2b5448
parent22e932f4d15f59ae773370a41a1c01ec93f8915a
repart: Use first unused partition number for new partitions

If we skip some partition types in a first run of systemd-repart,
we don't want their partition numbers to be different than usual,
so let's change the allocation of partition numbers to account for
that.
src/partition/repart.c