33 Commits (3e067e617e9fed5e86a39aa87f861114da61f124)

Author SHA1 Message Date
Adriaan de Groot 3e067e617e [partition] Add accessor and documentation to BootLoaderInstallPath 7 years ago
Adriaan de Groot dff5afe227 [partition] Reduce refreshes when reverting 7 years ago
Arnaud Ferraris 2f14a21456 [partition] Apply custom layout when installing "Alongside"
When choosing "Install alongside another system", the custom partition
layout is applied to the space freed by resizing the selected partition.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
7 years ago
Arnaud Ferraris 0d284759f5 [partition] Apply custom partition layout for Erase and Replace choices
This patches add new methods to both PartitionLayout and
PartitionCoreModule classes which apply the partition layout to the
available drive space.

In addition, the partition creation code from PartitioinActions is
removed to call the newly created methods instead, thus applying the
custom partition layout when the "Erase whole disk" and "Replace
partition" choices are selected.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
7 years ago
Arnaud Ferraris b2bf873ede [partition] Initialize partition layout from config file
In order to keep the partition layout during calamares' execution, we
add a PartitionLayout object instance to PartitionCoreModule. This class
will therefore be used to initialize the PartitionLayout object and
interact with it thoughout the program's execution.

When no partition layout is present in the config file, we initialize
the layout with a single ext4 partition mounted on '/', as it was
previously done.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
7 years ago
Adriaan de Groot a1143e8fef [partition] Document flags parameter to createPartition() 7 years ago
Adriaan de Groot fe662345bd [partition] Extra helper classes for doing reset and refresh
- The ResetHelper only finalized changes to the module on
   destruction, but calls to refresh() assumed it was already
   done. This leads to crashes when refresh() uses an intermediate
   state of the model.

Introduce extra helpers, and rename refresh() to avoid calling the
old implementation from any code. The new helper just creates and
destroys a ResetHelper, before creating and destroying an object
that calls the new refreshAfterModelChange().

FIXES #1019
7 years ago
Caio Carvalho 295e14530e [partition] Adding resizing, deactivating and removing procedures for LVM VGs. 7 years ago
Caio 208d58bcd9 [partition] Including CreateVolumeGroupDialog and fixing some of its GUI issues. 7 years ago
Caio d15ce56c97 [partition] Initial implementation of VolumeGroupBaseDialog. 7 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 8 years ago
Teo Mrnjavac 80beb87ae9 Documentation++ 9 years ago
Teo Mrnjavac c316d22b08 Keep an immutable copy for every scanned Device* to avoid rescans. 9 years ago
Andrius Štikonas 9f0ca042fe Port away from most cases of Q_FOREACH to C++11 ranged for loop.
In order to avoid deep copies, Qt containers over which we iterate must be const
The remaining unported cases require qAsConst (Qt 5.7) or std::as_const (C++17)
9 years ago
Teo Mrnjavac 45f6e6c55b Rearrange asynchronous scan in PartitionCoreModule a bit. 9 years ago
Teo Mrnjavac be9ec27350 Make findPartitionByMountPoint public. 10 years ago
Teo Mrnjavac e9d2312002 PCM::createPartition now includes SetPartFlagsJob.
Also remove outstanding SetPartFlagsJobs when deleting a new partition.
10 years ago
Teo Mrnjavac cb9a984b11 setPartitionFlags in PartitionCoreModule. 10 years ago
Teo Mrnjavac 0cff1cd7ec Add deviceReverted signal to PCM and emit it. 10 years ago
Teo Mrnjavac a1e4667ebe New revertAllDevices operation in PCM. 10 years ago
Teo Mrnjavac dbef198bac Add asynchronous device revert. 10 years ago
Teo Mrnjavac ace0d30eb4 PCM::createImmutableDeviceCopy can be static. 10 years ago
Teo Mrnjavac 0a0a0d58e0 PartitionCoreModule::revertDevice. 10 years ago
Teo Mrnjavac 0224811bf6 Move Osprober to PCM and add Osprober roles to PartitionModel. 10 years ago
Teo Mrnjavac 9b2f04daf6 Add reverted signal to PCM. 10 years ago
Teo Mrnjavac c2eef9ac30 The Humongous Include Fixage For KPMcore Headers. 10 years ago
Teo Mrnjavac f4a13b2041 Add EFI System Partition scanning support to PartitionCoreModule. 11 years ago
Teo Mrnjavac 67b96f750a Code style. 11 years ago
Teo Mrnjavac 0d0e3bf7bc Add hack to PCM to create a rescanned device copy to use as preview. 11 years ago
Teo Mrnjavac be2083e2bf Add device node to Partitioning summary info objects. 11 years ago
Teo Mrnjavac 8a50685c75 Add clearJobs to PCM 11 years ago
Teo Mrnjavac dab5a05116 Add isDirty check to PartitionCoreModule 11 years ago
Aurélien Gâteau 693e9229c8 Dispatch files in core/ gui/ and jobs/ dirs 11 years ago