repart: rework --empty= handling a bit
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Sep 2023 14:09:50 +0000 (16:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 Oct 2023 17:04:40 +0000 (19:04 +0200)
commit243dd1e9fac1277f4877a42a50b6dcedd0c8a725
tree700b56ec4c2a329563fba8ac2a2cb17ecfffeb86
parent6c05395e82448bdf92079e1d04507ea9af6ed41b
repart: rework --empty= handling a bit

Introduce a new enum value EMPTY_UNSET to which arg_empty now is set
initially. Only after we finished parsing the command line we'll now set
this to EMPTY_REFUSE as before.

This prepares ground for later changes, where we then can make different
decisions after havig all input from the command line.

As of now this doesn't change behaviour of systemd-repart, it just
rearranges things a bit.
src/partition/repart.c