Skip to content

parted_server: Add SET_FLAG command (#1093565)

Pascal Hambourg requested to merge pham/partman-base:set_flag into master

This command sets a single partition flag on/off. It does not mark the partition table changed if the flag is unknown, invalid for the partition or already has the desired state. When a flag is set on, conflicting flags are implicitly set off.

Syntax:

open_dialog SET_FLAG <partition-id> <flag> on|off
close_dialog

It is aimed to replace SET_FLAGS in partman scripts in order to make them simpler and more reliable, as it does not require to read current flags nor explicitly set conflicting flags off (see #1093565). The following packages must be updated to take advantage of the new SET_FLAG command:

  • partman-auto
  • partman-basicmethods
  • partman-cros
  • partman-efi
  • partman-lvm
  • partman-md
  • partman-newworld
  • partman-partitioning
  • partman-prep

However I think this MR is a better alternative than MR !12 in the long term because it does not require to classify partition flags. I have updates ready for each of these packages (example: https://salsa.debian.org/pham/partman-partitioning/-/commits/set_flag) and will create MRs after this one is merged.

Edited by Pascal Hambourg

Merge request reports

Loading