calamares/src/modules/partition
Aurélien Gâteau 648befb9bb Add README.md
2014-08-08 13:40:09 +02:00
..
core Dispatch files in core/ gui/ and jobs/ dirs 2014-08-08 13:25:56 +02:00
gui Dispatch files in core/ gui/ and jobs/ dirs 2014-08-08 13:25:56 +02:00
jobs Dispatch files in core/ gui/ and jobs/ dirs 2014-08-08 13:25:56 +02:00
partitionmanager@997af40c36 Update partitionmanager submodule: merged origin/master into calamares 2014-08-08 10:35:06 +02:00
tests Add missing license headers 2014-08-08 13:39:40 +02:00
CMakeLists.txt Dispatch files in core/ gui/ and jobs/ dirs 2014-08-08 13:25:56 +02:00
module.desc Big configuration overhaul. 2014-08-06 11:54:45 +02:00
README.md Add README.md 2014-08-08 13:40:09 +02:00

Architecture

PartitionCoreModule

Partition and PartitionInfo

Tests

The module comes with unit tests for the partition jobs. Those tests need to run on a disk, USB stick or whatever storage device which does not contain any data you care about.

To build them:

cd $top_build_dir/src/modules/partitions/tests
make buildtests

To run them you need to define the CALAMARES_TEST_DISK environment variable. It should contain the device path to the test disk. For example, assuming you plugged a test USB stick identified as /dev/sdb, you would run the tests like this:

sudo CALAMARES_TEST_DISK=/dev/sdb $top_build_dir/partitiontests

TODO

  • PartitionPreview

    • Show used space
    • Highlight selected partition
    • Make the partitions clickable
  • Expose PartitionInfo::format in PartitionModel and add a column for it in the tree view

  • Support resizing extended partitions. ResizePartitionJob should already support this but the UI prevents editing of extended partitions for now.