On 20/01/2025 at 00:01, Pascal Hambourg wrote:
Possible mitigations/solutions:
(...)
3) Modify parted_server to set only the last type flag when processing a
SET_FLAGS command (all scripts send the new flag last).
Advantage: no need to change affected packages.
Downsides: changes SET_FLAGS behaviour; needs to be updated whenever
libparted supports a new flag.
4) Modify parted_server to add a new SET_FLAG command which sets a
single flag and use it in synchronization scripts.
Downside: requires a change in all affected packages.
I think solution #3 is the best because it requires changes only in
partman-base to fully fix the issue.
At least in the short term (for trixie ?). But I think solution #4 would
be better, simpler and more reliable in the long term without the need
to classify flags. I implemented the SET_FLAG command in parted_server
and tested it successfully with the "boot" flag.
<https://salsa.debian.org/pham/partman-base/-/commits/set_flag/>