[USETUP] Improve the formatter & check-disk state machine. CORE-7749
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 25 Feb 2019 19:29:16 +0000 (20:29 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 10 Mar 2019 14:41:25 +0000 (15:41 +0100)
commita5431030681038941cff3037a6b48c35e1ac1b2a
tree46640135294a709df1d76906365a842db73a8114
parent29cc1843d074106649aa6b0155f9ff347c7abb45
[USETUP] Improve the formatter & check-disk state machine. CORE-7749

- Find or set the active system partition only once, when we start the
  formatting stage. If the system partition is to be created in some
  non-partitioned space, we create it.

- A file-system check is always scheduled for both the system and the
  installation partitions.

- If the system partition was already formatted (which usually means
  that it already existed on the system), don't ask for formatting it.

  CORE-13205

- For each partition to be formatted, the file-system menu list is
  re-created, in order to display only the FSes that are compatible
  with the selected partition, and allow to give the user the choice
  to keep the existing file-system only if the selected partition was
  already formatted.

- Check whether the user attempts to delete the partition on which
  the installation source is present, only if it is not "new" and is
  formatted.

- Check first whether the current partition is the system partition,
  before displaying the CONFIRM_DELETE_SYSTEM_PARTITION_PAGE.
base/setup/usetup/partlist.c
base/setup/usetup/partlist.h
base/setup/usetup/usetup.c