905 Commits (9f05c236d8813837bda4b4e71cf6710c8bdc833b)

Author SHA1 Message Date
Aurélien Gâteau 493e368bf0 update partitionmanager submodule: Build PartResizerWidget 12 years ago
Teo Mrnjavac 8f10c21e5b Big configuration overhaul.
Module descriptors are now module.desc, no configuration allowed inside.
Module config files are <modulename>.conf, installed in
share/calamares/modules.
settings.conf is read from /etc/calamares, then share/calamares, and if
running with --debug also in the current dir.
Module config files are read from /etc/calamares/modules, then
share/calamares/modules, and if running with --debug also in
src/modules/<modulename> relative to the current dir.
12 years ago
Aurélien Gâteau 415ad2c506 Fix empty error message 12 years ago
Aurélien Gâteau a267ef856e Check file system after the resize, like PM does 12 years ago
Aurélien Gâteau f5ccc616b9 Check file system before resizing: necessary for testResizePartition:shrink to pass 12 years ago
Aurélien Gâteau d48644a49c Improve prettyName of all jobs, log them in execJobList() 12 years ago
Aurélien Gâteau e2fe559f9d testResizePartition: more reliability tests
- use bigger partition sizes
- write a file before resizing, test it is the same after resizing
12 years ago
Aurélien Gâteau dac23c90a1 Implement MoveFileSystemJob: all testResizePartition tests pass 12 years ago
Aurélien Gâteau 4716b1c9b4 Coding style 12 years ago
Aurélien Gâteau 3db6d607ca move MoveFileSystemJob to its own file
It's going to be bigger than the others.
12 years ago
Aurélien Gâteau 1314bf944f Update partitionmanager submodule: Include CopySourceDevice and CopyTargetDevice 12 years ago
Aurélien Gâteau f007810118 Implement SetPartGeometryJob and ResizeFileSystemJob
Now testResizePartition:grow and testResizePartition:shrink pass
12 years ago
Aurélien Gâteau 60a224e5cd 3MB is too small for ext4: set a bigger new size for shrink 12 years ago
Aurélien Gâteau 9dac375a31 Don't forget to queue the job! 12 years ago
Aurélien Gâteau 09c3240364 Scaffolding and tests for ResizePartitionJob 12 years ago
Aurélien Gâteau fc3f3eaa3a Update partitionmanager submodule: Make it possible to set partition sectors from the outside world 12 years ago
Aurélien Gâteau e6c80ed5bd Coding style 12 years ago
Aurélien Gâteau 9ce55bfb83 Introduce PartitionSizeWidget to reduce duplication between dialogs 12 years ago
Aurélien Gâteau e482481262 updatePartitionToCreate: avoid crash
Create the new partition before deleting the old one: otherwise the
m_partition member of dlg is dangling at the time we call createPartition()
12 years ago
Aurélien Gâteau 3d40527d29 Make it possible to "resize" (aka delete + create for now) existing partitions 12 years ago
Aurélien Gâteau c655c99f67 Hide disk which contains /
Fixes #75
12 years ago
Aurélien Gâteau 03c5a38b90 Show a summary of the partition changes on the summary page 12 years ago
Aurélien Gâteau e3a333e6e6 Prettier PartitionPreview 12 years ago
Aurélien Gâteau fe9e52ee0e PartitionModel: Add IsFreeSpaceRole 12 years ago
Aurélien Gâteau 0ea6f1698b First version of PartitionPreview 12 years ago
Aurélien Gâteau 93cb9fd426 New role for PartitionModel: SizeRole 12 years ago
Aurélien Gâteau 5fc07aad7c Expose colors for Qt::DecorationRole 12 years ago
Aurélien Gâteau 5c1336f2d5 Turn PartitionModel into a tree model
Fixes #12
12 years ago
Aurélien Gâteau e3a52745fc Fix assert failure when recreating partition table 12 years ago
Aurélien Gâteau 64f8748c49 Spaces fixes 12 years ago
Aurélien Gâteau 0b01c76687 Coding style 12 years ago
Aurélien Gâteau 2d9142487b FillGlobalStorageJob: Add the partition UUID to global storage 12 years ago
Aurélien Gâteau 62d706543b Do not let the user pick a partition type when creating a partition of a GPT disk
Fixes #27
12 years ago
Aurélien Gâteau fb6d80ccb6 Bring back tree view headers 12 years ago
Aurélien Gâteau bf72672cce Make double-clicking on a partition item in the list trigger edit/create 12 years ago
Aurélien Gâteau cd99f64344 Add mnemonics to UI elements 12 years ago
Aurélien Gâteau c3a91f1c8d Implement Revert
Fixes #14
12 years ago
Aurélien Gâteau 675b07799b Dead code-- 12 years ago
Aurélien Gâteau d476f9cba8 Make sure we show info of the first device in the device combo box 12 years ago
Aurélien Gâteau cb546d02f9 Sort device in DeviceModel by device node 12 years ago
Aurélien Gâteau 96ede98f27 Update partitionmanager submodule: fix cmake warning 12 years ago
Aurélien Gâteau f2ab67b28b Create bootLoader.installPath in GlobalStorage 12 years ago
Aurélien Gâteau 06a13637b6 Store current boot loader install path in PartitionCoreModule 12 years ago
Aurélien Gâteau ab4604258c Rework boot loader combo box
List MBR of all devices
Does not loose its selection when updated
12 years ago
Aurélien Gâteau c9c1917997 log-- 12 years ago
Aurélien Gâteau a39384eda7 Simplify 12 years ago
Aurélien Gâteau 484d7c4d15 Update partition path after partition has been created
Fixes #56
12 years ago
Aurélien Gâteau 89fd6a950b Add support for per-job progress 12 years ago
Aurélien Gâteau e9da5cb6cb Change signature of JobQueue::progress, add finished() signal
Now uses a qreal for progress instead of current and total
Also added a finished() signal because determining whether the queue is
finished should not be done by comparing a qreal with 1.0 as this is not
precise.
12 years ago
Aurélien Gâteau c8129898fc Introduce FillGlobalStorageJob 12 years ago
Aurélien Gâteau 7763587c01 Move PartitionIterator to its own file 12 years ago
Aurélien Gâteau 1b64917385 Use findPartitionByMountPoint in updateHasRootMountPoint 12 years ago
Aurélien Gâteau a335c1cc04 Coding style fixes 12 years ago
Aurélien Gâteau 906019facc Add combo box to pick boot loader installation destination 12 years ago
Aurélien Gâteau 3e3329d4f2 Rework PartitionPage appearance, prior addition of boot loader UI 12 years ago
Aurélien Gâteau 4c88603872 Fix bug with tiny disks and mbr partition tables 12 years ago
Aurélien Gâteau 26f6943f8a Add support for formatting existing partitions
closes #24
12 years ago
Aurélien Gâteau a5fcb9bcb9 Improve CreatePartitionJob::prettyName 12 years ago
Aurélien Gâteau d374d8bad8 Introduce PartitionJob 12 years ago
Aurélien Gâteau 568f2abd0b Reproduce and fix bug #28 12 years ago
Aurélien Gâteau 99fe98a9cf Unbreak test. Unfortunately it did not reproduce bug #28 12 years ago
Aurélien Gâteau 7e8c5a980c Make Runner::run() returns a bool indicating success or failure 12 years ago
Aurélien Gâteau eebc71257f Nicer error messages 12 years ago
Aurélien Gâteau 26d0b52342 Unbreak build 12 years ago
Aurélien Gâteau 6f65a4b16c Add a (failing for now) test for extended partitions
This reproduces bug #28
12 years ago
Aurélien Gâteau 43f29b8058 Start working on tests for partition jobs 12 years ago
Aurélien Gâteau 9c89e68672 Get rid of partview, it's no longer useful 12 years ago
Aurélien Gâteau 0d915b4995 Always delete logical partitions first when deleting an extended partition 12 years ago
Aurélien Gâteau d7a853ee06 Scaffolding for exiting partition reformating 12 years ago
Aurélien Gâteau 4e49f59333 Turn PartitionCoreModule::refreshPartitionModel() into refresh() and make it public 12 years ago
Aurélien Gâteau 5c594f8dd7 Fix doc 12 years ago
Aurélien Gâteau 8a64dcb270 Coding style fixes 12 years ago
Aurélien Gâteau ec6703b9cd Start creating EditExistingPartitionDialog 12 years ago
Aurélien Gâteau 5daa1b82e8 Refactor: PartitionInfo is no longer a class 12 years ago
Aurélien Gâteau ff5667cb73 Turn all extra PartitionInfo fields into QObject properties of Partition 12 years ago
Aurélien Gâteau 9b57b98a93 No point doing this: editing extended partitions is not supported for now 12 years ago
Teo Mrnjavac 4712af05a0 Fix build in PartitionCoreModule. 12 years ago
Aurélien Gâteau 8a7e6c9348 More readable job queue 12 years ago
Aurélien Gâteau 3fa3694f90 Fix crash when trying to delete an extended partition 12 years ago
Aurélien Gâteau 568dc4db0a Init all fields when editing a partition. Disable editing of extended partitions for now. 12 years ago
Aurélien Gâteau d500c7b480 Coding style fixes 12 years ago
Aurélien Gâteau 27b28a5bd1 Avoid potential rounding errors 12 years ago
Aurélien Gâteau 45dda6fa17 Factorize size computations 12 years ago
Aurélien Gâteau a70ab4ad60 Refactor: move sector math from PartitionPage to CreatePartitionDialog 12 years ago
Aurélien Gâteau 7c1ecabd68 Drop now unused IsNewPartitionRole 12 years ago
Aurélien Gâteau 9216982859 Allow editing of partition mount points 12 years ago
Aurélien Gâteau 48c078acc5 Start implementing editing of newly-created partitions
This is the beginning of #19
12 years ago
Aurélien Gâteau 174114f09c Add IsNewPartition role 12 years ago
Aurélien Gâteau fa30fe147f Add PMUtils::isPartitionNew() 12 years ago
Aurélien Gâteau 091c3c2757 Make CreatePartitionDialog.ui easier to read in Designer 12 years ago
Aurélien Gâteau c30ed3c9c1 Let the user recreate the partition table (mbr or gpt)
Closes #20
12 years ago
Aurélien Gâteau 7096213206 Move partitionmanager code to src/modules/partition 12 years ago
Aurélien Gâteau cbcd821943 Coding style fixes 12 years ago
Aurélien Gâteau 7ac6588090 Forget pending changes when the partition table is recreated 12 years ago
Aurélien Gâteau f0dffb7400 Refactor: Introduce PartitionInfoProvider interface, and make DeviceInfo implement it 12 years ago
Aurélien Gâteau 61b17490eb Refactor: group jobs and partitionModel for a device in a DeviceInfo struct
Makes it easier to clear all jobs for a specific device, which is necessary
when replacing a device partition table
12 years ago
Aurélien Gâteau 83a56a6bd3 Add the ability to (re)create partition tables 12 years ago
Aurélien Gâteau 5d6a80deae Factorize management of m_hasRootMountPoint 12 years ago
Aurélien Gâteau 8d3f197fde Clean up 12 years ago
Aurélien Gâteau c11fc3a4d2 Do not crash if a device does not have a partition table 12 years ago
Aurélien Gâteau 8d01b9a6fd assert-- 12 years ago
Aurélien Gâteau e792f4c9c5 Implement DeletePartitionJob::exec()
Closes #11
12 years ago
Aurélien Gâteau 7566221eff Nicer error messages on failure 12 years ago
Teo Mrnjavac dbadbf69ec Const correctness. 12 years ago
Aurélien Gâteau 6881fdab6e JobResult 12 years ago
Aurélien Gâteau d984489eea Implement CreatePartitionJob 12 years ago
Aurélien Gâteau 191f37f5fa Fake CreatePartitionJob::exec() implementation 12 years ago
Aurélien Gâteau 2f774e6c46 Implement PartitionViewStep::jobs() 12 years ago
Teo Mrnjavac b98c071f94 Prepare for late enqueuing of jobs to the JobQueue. 12 years ago
Aurélien Gâteau 023ed99aca Coding style 12 years ago
Aurélien Gâteau 36b3de7107 Enable/disable Next button based on whether we have a root mount point 12 years ago
demmm c3d40b9428 add ECM to CMakeLists,
remove obsolete CONFIG
12 years ago
Aurélien Gâteau 15c5142d09 Redo partition type UI and enable/disable mount point UI when appropriate 12 years ago
Aurélien Gâteau f27ff4c717 We want to format partitions we create 12 years ago
Aurélien Gâteau 467d89f56f Remove PartitionInfo if we remove a Partition 12 years ago
Aurélien Gâteau 3ed5704818 Refactor: Move creation of CreatePartitionJob to PartitionCoreModule 12 years ago
Aurélien Gâteau d54dfcfb78 Get rid of DeviceInfo 12 years ago
Aurélien Gâteau f3f9bfc2a3 Introduce PartitionInfo, to store Calamares-specifc info for a partition 12 years ago
Aurélien Gâteau 1247077ccc Pass mount point to CreatePartitionJob 12 years ago
Aurélien Gâteau ab4e81504e wip mount point 12 years ago
Aurélien Gâteau a62f3daf25 Adjust logical numbers 12 years ago
Teo Mrnjavac 4ec72f4afb Refactored calamares_bin into calamares_bin and libcalamaresui.
Now linking with -Wl,--no-undefined!
Moved find_package KF5 from the root CMakeLists.txt to the partitioning
module where it belongs. KF5 deps should be limited to plugins.
Lots of random fixage to make stuff link.
Removed CalamaresApplication reference from Settings.
Removed the use of AbstractPage, we don't need it right now.
12 years ago
Teo Mrnjavac 4cf6c06dda Useless linkage is useless. 12 years ago
Aurélien Gâteau 3a58e2640f Show partition elements in separate column 12 years ago
Aurélien Gâteau 0446bb1079 More readable partition sizes 12 years ago
Aurélien Gâteau a318ec49fc Enqueue all partition jobs when leaving the PartitionViewStep 12 years ago
Aurélien Gâteau 4916d0cb88 crash-- 12 years ago
Aurélien Gâteau 6f3ec0170e Argh, forgot to commit those files 12 years ago
Aurélien Gâteau d013e663b8 Implement partition removal 12 years ago
Aurélien Gâteau f9ca45face Mark the partition we create as "StateNew"
This way if user wants to remove it later we can remove the creation job
instead of queueing a delete job
12 years ago
Aurélien Gâteau 724780fb23 Coding style fixes 12 years ago
Teo Mrnjavac 20beae8f52 Minor nitpick in module.conf 12 years ago
Teo Mrnjavac 80789b6143 Added ProgressTreeModel/View, including different kinds of items.
Redone CalamaresWindow without UI file.
Const correctness in ViewStep and plugins.
12 years ago
Aurélien Gâteau 1421a04dd2 Support creation of extended partitions 12 years ago
Aurélien Gâteau e3c6869fbd Let CreatePartitionDialog create the Partition object 12 years ago
Aurélien Gâteau 90d26bfd31 Safer dialog handling 12 years ago
Aurélien Gâteau 5eafb9538e Crude way to distinguish extended from primary partitions + show partition size 12 years ago
Aurélien Gâteau cdfb890e17 Better way to detect free space 12 years ago
Aurélien Gâteau 5dc5b4ddc8 Add missing file 12 years ago
Aurélien Gâteau b060f66456 Introduce CreatePartitionDialog and CreatePartitionJob 12 years ago
Aurélien Gâteau c9409ba6b2 Start implementing support for creating partitions 12 years ago
Aurélien Gâteau 3a59cdeda9 Detect free space using the FS type 12 years ago
Aurélien Gâteau c254fe0b2a Enable/disable partition buttons 12 years ago
Aurélien Gâteau 2000553a10 PartitionModel: Add getter for Partition 12 years ago
Aurélien Gâteau 4429a8fd63 Introduce PMUtils 12 years ago
Aurélien Gâteau 6d0b3218f1 Move PartitionModel management from DeviceModel to PartitionCoreModule 12 years ago
Aurélien Gâteau 578f2e4baa Instantiate DeviceModel in PartitionCoreModule 12 years ago
Aurélien Gâteau 4d2354fb56 Introduce PartitionCoreModule
Owner of the Qt models and PM devices
12 years ago
Aurélien Gâteau 730c3902bf PartitionViewPlugin => PartitionViewStep 12 years ago
Aurélien Gâteau 8f474fa08f Persistent partition model
This will make it possible to update the partition list on changes,
regardless of the actual device state
12 years ago
Teo Mrnjavac c7d62300a0 Make the partition viewmodule compile with the new ViewStep interface. 12 years ago
Aurélien Gâteau 1d0dfa5215 Clean up 12 years ago
Aurélien Gâteau 344d7ac610 Better use QItemSelectionModel to detect selection changes 12 years ago
Aurélien Gâteau 6b164a9dcf Wrap PartitionPage building in WITH_PARTITIONMANAGER 12 years ago
Aurélien Gâteau 8d6b7672bc Start PartitionPage 12 years ago