Teo Mrnjavac
42e465aa10
CalamaresUtils::System is now a class.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
4f2eddd146
Exclude read-only devices from partitioning backend scan.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
26715d4281
Correct name of libparted backend.
2015-09-15 16:48:41 +02:00
Teo Mrnjavac
e8de570acb
Build against partresizerwidget and related in KPMcore.
2015-09-15 16:48:40 +02:00
Teo Mrnjavac
adc23b99b6
Move CalaPM init into PMUtils.
2015-09-15 16:48:40 +02:00
Teo Mrnjavac
c2eef9ac30
The Humongous Include Fixage For KPMcore Headers.
2015-09-15 16:48:40 +02:00
Teo Mrnjavac
a49c339dcd
Fixup tests directory because we don't have a project statement.
2015-09-15 16:48:40 +02:00
Teo Mrnjavac
93352cf4be
Set up linking against kpmcore.
2015-09-15 16:48:40 +02:00
Teo Mrnjavac
80ff27a804
Remove partitionmanager submodule.
2015-09-15 16:48:40 +02:00
Teo Mrnjavac
a2a6d2f243
Update submodule.
2015-07-29 13:15:47 +02:00
Teo Mrnjavac
4b8a85f66f
Update submodule.
2015-07-23 15:46:17 +02:00
Teo Mrnjavac
866ca49bdc
Update partitionmanager submodule.
2015-07-23 10:50:35 +02:00
Teo Mrnjavac
45aac4ea78
Reset filesystem combo box to current filesystem if going back to "Keep"
2015-07-15 13:35:07 +02:00
Teo Mrnjavac
49f470b503
Update non-mountable list in CreatePartitionDialog.
2015-07-15 13:26:13 +02:00
Teo Mrnjavac
2ec2b4ab86
Disallow mounting non-mountable filesystem types.
2015-07-15 13:25:52 +02:00
Teo Mrnjavac
9bc77fe386
Minimum width.
2015-07-15 13:02:42 +02:00
Teo Mrnjavac
9f2086a648
Allow changing the filesystem type when editing a partition.
2015-07-15 12:51:35 +02:00
Teo Mrnjavac
881bf67d22
Add a "do not install boot loader" value to the boot loader picker.
2015-07-07 19:16:22 +02:00
Teo Mrnjavac
3326ec4ace
Clear mountPoint string when selecting a non-mountable filesystem type.
...
CAL-249 #close I pushed a fix, please test and reopen if still broken.
2015-07-02 12:18:26 +02:00
Teo Mrnjavac
27309619d3
Optionally do not allow a swap partition smaller than physical RAM.
2015-06-26 15:49:02 +02:00
Teo Mrnjavac
35f4db9316
Read ensureSuspendToDisk from partition.conf.
2015-06-26 15:48:12 +02:00
Ramon Buldó
92736c3486
Change how swap is calculated in automatic installation.
...
It uses same values as Thus/Anaconda.
Takes into account available disk space (don't use more than 10% of it)
2015-06-26 15:36:15 +02:00
Teo Mrnjavac
683cc893e4
Remove unreachable code.
2015-06-21 01:55:15 +02:00
Teo Mrnjavac
845dd761d9
Do not dereference a nullptr.
2015-06-21 01:27:02 +02:00
Teo Mrnjavac
d96cfb725b
Do not dereference a nullptr.
2015-06-21 01:21:28 +02:00
Teo Mrnjavac
c987235bb8
Scan for type 82 partitions and clear them regardless of swapon status.
2015-06-20 20:38:40 +02:00
Teo Mrnjavac
91cf3950df
Clear swap partitions after swapoffing them.
2015-06-20 19:31:09 +02:00
Teo Mrnjavac
bc112889ea
Update submodule.
2015-06-16 02:15:00 +02:00
Teo Mrnjavac
aeac85d176
Avoid keeping dead code.
2015-06-14 01:18:51 +02:00
Teo Mrnjavac
88719d961f
Initialize all members in ChoicePage.
2015-06-14 00:55:26 +02:00
Teo Mrnjavac
624e4f9421
Initialize all members in PartitionModel.
2015-06-14 00:48:51 +02:00
Teo Mrnjavac
23c21074af
Initialize all the things in PartitionSplitterWidget.
2015-06-14 00:45:38 +02:00
Teo Mrnjavac
8633999997
Useless member is useless.
2015-06-14 00:33:32 +02:00
Teo Mrnjavac
2a0ad54fd5
Add prettyStatusMessage to all partitioning jobs.
...
CAL-235 #comment Improved status messages for jobs while installing.
2015-06-13 02:30:09 +02:00
Teo Mrnjavac
3855998fe5
Add prettyStatusMessage to Clear* and Check* partitioning jobs.
2015-06-13 02:24:58 +02:00
Teo Mrnjavac
d6441bbcb4
LVM2 unmounting and disabling support in ClearMountsJob.
2015-06-11 03:18:22 +02:00
Teo Mrnjavac
617d6d018c
Clarify.
2015-06-10 00:17:59 +02:00
Teo Mrnjavac
35e859e66e
Automatically create a swap partition if there's enough space.
2015-06-10 00:06:45 +02:00
Teo Mrnjavac
8885a7e5f6
Fix bug with KPM enum which prevented logical partition creation.
2015-06-07 03:24:00 +02:00
Teo Mrnjavac
fa2b577236
Meaningful text from BootLoaderModel.
2015-06-06 23:45:54 +02:00
Teo Mrnjavac
30408d34a1
Try to find a more reliable way to read new partition UUIDs.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
fff0f6f023
Debug output.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
cf5e137947
Correct operations order in EraseDiskPage.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
25c2b7265b
Fixup operations order when autopartitioning.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
0426d7fd35
Bump EFI system partition default size to 300M.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
7a69aae0cb
Correct operation order in EraseDiskPage for EFI.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
d499fed8a0
Add EFI detection support to Alongside page.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
e3ef61a7f2
Move onPartitionSelected into a slot instead of a huge lambda.
2015-06-05 18:02:14 +02:00
Teo Mrnjavac
195b585282
Disable alongside and replace features on EFI system without ESP.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
b507a0e2b9
Rebase ReplacePage on top of EFI support in PCM.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
f4a13b2041
Add EFI System Partition scanning support to PartitionCoreModule.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
67b96f750a
Code style.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
905835295a
Move osprober management out of ctor.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
a2f1d49983
Remove debug spam.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
a2c5bcd0ee
Fixed m_isEfi falsely false in ReplacePage.
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
d54f314394
Add debug spam to ReplacePage.cpp
2015-06-05 18:02:13 +02:00
Teo Mrnjavac
18eb0c7b96
Add ESP detection and choice to ReplacePage.
2015-06-04 02:28:12 +02:00
Teo Mrnjavac
94e9c659d1
Add generic search function to iterate over partitions for convenience.
2015-06-04 02:28:12 +02:00
Teo Mrnjavac
04f977d28f
Add ESP related UI elements to ReplacePage.
2015-06-04 02:28:12 +02:00
Teo Mrnjavac
ccab867d19
Update submodule.
2015-06-04 02:27:58 +02:00
Teo Mrnjavac
d5a42a65f6
Update KPM submodule.
2015-05-20 12:13:08 +02:00
demmm
5a07c240a9
use ShortProductName as second argument
...
choicepage.cpp has 2 instances where %2 is not defined
2015-05-16 19:43:27 +02:00
Teo Mrnjavac
cf3359bdb4
Reset ReplacePage when going back from the next one.
2015-04-29 18:16:48 +02:00
Teo Mrnjavac
55b93091e6
Add reset method to ReplacePage.
2015-04-29 18:16:48 +02:00
Teo Mrnjavac
4b73d9579f
Add PartitionPreview widget to AlongsidePage.
2015-04-28 17:42:11 +02:00
Teo Mrnjavac
0d0e3bf7bc
Add hack to PCM to create a rescanned device copy to use as preview.
2015-04-28 17:40:49 +02:00
Teo Mrnjavac
6b40c8aaa1
Use a static colors cache to preserve partition colors.
2015-04-28 17:09:24 +02:00
Teo Mrnjavac
2c9d6fff17
const array is const.
2015-04-28 17:09:24 +02:00
Teo Mrnjavac
96c840e878
Use proper color for new partition in PartitionSplitterWidget.
2015-04-28 17:09:24 +02:00
Teo Mrnjavac
ae1fa0e48b
Use correct palette in new partition dialog.
2015-04-28 17:09:24 +02:00
Teo Mrnjavac
9065882da4
Either count new partitions or existing partitions for colors.
2015-04-28 17:09:23 +02:00
Teo Mrnjavac
d3f4ced8c0
Use a separate palette for newly created partitions.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
c7563af1c9
New palette + don't reset count when coloring logical partitions.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
5ab7896fca
Add the option of using PartitionIterator on a PartitionTable.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
6c62d6f6d2
Implement wrapping to new line for partition preview color labels.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
45d5c5bbde
Only show the labels section where it's relevant.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
966ccdaafc
Initial commit for adding labels to PartitionPreview.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
1ad1a64161
Code style.
2015-04-24 18:10:12 +02:00
Teo Mrnjavac
30559baa16
Reorder entries on ChoicePage.
2015-04-16 18:14:26 +02:00
Teo Mrnjavac
d894638f2f
Add information about the partitioning action in the Summary page.
2015-04-15 15:36:49 +02:00
Teo Mrnjavac
06b4443e80
Const correctness.
2015-04-15 12:20:26 +02:00
Teo Mrnjavac
2846cbdcbc
Report a prettyDescription for FillGlobalStorageJob.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
fefa736501
Use <strong> instead of <b> in all instances.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
e2c133f329
Better Summary message in ResizePartitionJob.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
5c8453e4bb
Better Summary message in FormatPartitionJob.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
fa83ca4469
Better Summary message for DeletePartitionJob.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
c56235df37
Better Summary message for CreatePartitionTableJob.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
3140990dbc
Better Summary message for CreatePartitionJob
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
22411d2399
Never show an empty jobs label.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
69f6a2c73c
Formatting in Summary page.
2015-04-13 14:58:34 +02:00
Teo Mrnjavac
be2083e2bf
Add device node to Partitioning summary info objects.
2015-04-13 14:58:33 +02:00
Teo Mrnjavac
8568c2c816
Add prettyDescription to most Partitioning jobs.
2015-04-13 14:58:33 +02:00
Teo Mrnjavac
bf0296e155
Preliminary implementation of a summary queue for partitioning jobs.
2015-04-13 14:58:33 +02:00
Teo Mrnjavac
6395b4c8ce
Use the new Disk and Partition icons.
2015-04-03 12:19:27 +02:00
Teo Mrnjavac
ffc65fa07e
New Partitioning icons, still being fixed up.
2015-04-02 14:21:14 +02:00
Ramon Buldó
a253101258
[partition] Disable bootloader disk selection when installing in a efi system.
2015-03-29 17:03:26 +02:00
Teo Mrnjavac
75f4f0fa04
Fix issue with splitting being allowed when it shouldn't be.
...
KPM docs misreport Partition::available to be in sectors, when it's
actually in bytes. Because of this, available space estimates were
completely off and resizing was allowed even when there's no room to
do it. This used to put the resize widget in all sorts of weird,
visually broken states.
CAL-188 #comment Does this still happen with current master?
2015-03-25 12:54:44 +01:00
Teo Mrnjavac
c7f46136fc
Do not crash.
2015-03-19 17:28:30 +01:00
Teo Mrnjavac
d0235c4e76
Improve strings for actions in ChoicePage.
2015-03-18 20:12:20 +01:00
Teo Mrnjavac
c45e757cea
Good guy clang catches lousy code.
...
CAL-212 #close Fixed.
2015-03-17 15:41:17 +01:00
Philip
a62743185a
[partition] use C++11 initialization list for mountPoints
2015-03-16 19:21:18 +01:00
Ramon Buldó
6a52811c30
Show efi mountpoint when creating/editing partitions
2015-03-16 11:50:55 +01:00
Ramon Buldó
26bb6951f1
[partition] Change comment to prevent confusions of what Manjaro uses
2015-03-16 09:06:58 +01:00
Teo Mrnjavac
4468e30317
Prevent crash when going back from EraseDiskPage and then next.
...
This was caused by an invalid reference to a device model in the
partitioning preview widget after a PCM revert.
2015-03-13 16:05:35 +01:00
Teo Mrnjavac
7e7e47b6d1
Do not warn of data loss which might not happen.
...
CAL-194 #comment Fixed up warnings in ChoicePage.
2015-03-11 18:13:39 +01:00
Ramon Buldó
fb3072bbbb
/etc/mtab reports a file size of 0, so using .atEnd() may not work. Read the file until it doesn't return more data.
...
Use QTextStream because it takes care of the conversion between 8-bit and 16-bit.
http://doc.qt.io/qt-5/qfile.html#using-streams-to-read-files
2015-02-28 16:46:18 +01:00
Teo Mrnjavac
642b4be1f2
Keys are not necessarily unique, so use a QList< QPair > instead.
2015-02-27 20:43:21 +01:00
Teo Mrnjavac
20a8b222c6
Verbose debug output.
2015-02-27 20:31:17 +01:00
Teo Mrnjavac
b557961a32
New ClearTempMountsJob, to be executed before partitioning jobs.
2015-02-27 19:49:47 +01:00
Teo Mrnjavac
ee1a90d845
Add debug details to ClearMountsJob.
2015-02-19 20:25:28 +01:00
Teo Mrnjavac
23eca3db55
Only create a ClearMountsJob for dirty devices.
...
CAL-195
2015-02-18 17:41:48 +01:00
Kevin Kofler
8c98aeb04a
Make efiSystemPartition mount point configurable in partition.conf.
...
Copy the setting into the global storage. Make the EraseDiskPage in the
partition module and the grub and bootloader modules read it from there.
Do not hardcode /boot as the path anymore.
I set the default path to /boot/efi because I think that's the most
common setting. At least Fedora and Debian use that path. But we can
change the default setting if you think I'm wrong, as long as it remains
configurable.
There is no separate setting for efi_directory_firmware anymore. The EFI
firmwares expect that directory to always be in the "EFI" path in the
EFI System Partition. Distributions using /boot/efi actually have that
directory under /boot/efi/EFI.
2015-02-14 22:53:00 +01:00
Philip
92b6464f6e
[grub] make efiDirectory(Firmware) hard-coded
...
- until we find a better solution
- efiDirectory should be managed by GlobalStorage
- efiDirectory is needed followed modules: bootloader, grub, partition
2015-02-14 13:45:46 +01:00
Philip
1f661a8b4b
[partition] change efiPartition value to /boot
...
- we need to make it configurable not hard-coded
- some distributions need '/boot/efi' or '/boot/EFI', some work with '/boot'
2015-02-14 13:06:05 +01:00
Teo Mrnjavac
69c9d91aa6
Remove excessive debug output.
2015-02-13 14:03:55 +01:00
Teo Mrnjavac
8b753bd65f
Reimplement ClearMountsJob without relying on PCM state.
2015-02-13 14:03:55 +01:00
Teo Mrnjavac
1eff260637
Add debug output to the ClearMountsJob code path.
2015-02-13 14:03:55 +01:00
Teo Mrnjavac
d07dfc3eca
More debug output in partition module.
2015-02-05 13:23:41 +01:00
Teo Mrnjavac
171248ad4f
Add isBackEnabled checks to all ViewSteps.
2015-01-29 22:46:07 +01:00
Teo Mrnjavac
5742bbd074
Fix issue with partition selection preview not being updated.
2014-12-19 15:27:46 +01:00
Teo Mrnjavac
7cd382b39c
Use osProber output in ReplacePage.
...
CAL-155 #close
2014-12-19 15:25:31 +01:00
Teo Mrnjavac
f8f005f53c
Store osprober output in GlobalStorage.
2014-12-19 15:03:27 +01:00
Teo Mrnjavac
aa70a4b2dd
Improve messages in Replace page.
...
Fixes CAL-155
2014-12-19 14:10:40 +01:00
Teo Mrnjavac
c21f426dee
Don't rely on the activated signal in ReplacePage.
2014-12-19 13:53:05 +01:00
Teo Mrnjavac
a7b4c01ec0
GB -> GiB
2014-12-19 13:53:05 +01:00
Teo Mrnjavac
0da99d0866
Hook up ReplacePage in ChoicePage and PartitionViewStep.
2014-12-19 13:53:05 +01:00
Teo Mrnjavac
2f2ef73f20
Compile ReplacePage
2014-12-19 13:53:05 +01:00
Teo Mrnjavac
8f8e1ad6d4
New ReplacePage
2014-12-19 13:53:04 +01:00
Teo Mrnjavac
e85b2d164f
Hook up ClearMountsJob in PartitionCoreModule.
2014-11-28 15:52:18 +01:00
Teo Mrnjavac
1de7b55c3b
ClearMountsJob: umount all partitions before making changes to a device.
...
Fixes #169
2014-11-28 15:52:18 +01:00
Teo Mrnjavac
0c3f88077d
More debug output in CreatePartitionTableJob
2014-11-27 14:22:00 +01:00
Teo Mrnjavac
da0afd6e55
Better error reporting in CreatePartitionTableJob.cpp
2014-11-23 11:46:45 +01:00
Kevin Kofler
5cae4e0632
partition: Don't assume that an unknown OS is Windows 7.
...
Don't talk about "Windows 7 programs, documents, photos, music, and
other files" when we actually have no idea what the other operating
system is or when there are multiple ones.
2014-11-18 02:48:58 +01:00
Teo Mrnjavac
faa77d7f5e
Use Retranslator in Partitioning module.
2014-11-11 17:09:33 +01:00
Teo Mrnjavac
8026a287d3
Shut up Qt lupdate warnings.
2014-10-29 13:06:52 +01:00
Teo Mrnjavac
2e2bd78deb
Use Branding in partition viewmodule.
2014-10-16 17:00:08 +02:00
Teo Mrnjavac
fc60bcb313
Update partitionmanager submodule.
2014-10-15 10:29:53 +02:00
Teo Mrnjavac
9c10b49802
Check if the filesystem to be resized actually supports grow/shrink.
2014-10-14 11:48:19 +02:00
Teo Mrnjavac
ce407a5ec4
Use good old C++ template instead of auto parameter which needs C++1y.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
961eadada4
New UI and logic for Alongside autopartitioning+install.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
08a2ab94e7
Use PMUtils::findPartitionByPath in PVS + fix back button in Alongside.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
2347ead200
Remove bad debug feature.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
6d60ca5e63
Fix item order in ChoicePage
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
6bd5736d35
Add findPartitionByPath to PMUtils
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
e7995ad540
Improve Osprober logic to immediately check if entries are resizable.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
045d9cdf8c
Fix layout in partitioning choice page.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
faa39e1746
Enable resize+alongside radiobutton if osprober reports multiple lines.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
0801756cd1
Stub for Alongside page, and logic to detect if alongside is possible.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
c070b1c836
Const correctness.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
c6eb0721d9
Check for root mount point before going ahead.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
aeb20761cc
Add preview and partitioning operations to Erase+Autopartition code path
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
8a50685c75
Add clearJobs to PCM
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
b7f2d5d9d3
Fix page flow issue in partition module.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
a943d55063
Size policy on erase page.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
ef703b0859
Add page for erase+install operation.
2014-10-07 16:07:28 +02:00
Teo Mrnjavac
dab5a05116
Add isDirty check to PartitionCoreModule
2014-10-07 16:07:27 +02:00
Teo Mrnjavac
4cadbf9b98
Expose icon and tooltip in DeviceModel.
2014-10-07 16:07:27 +02:00
Teo Mrnjavac
a98a4bb614
Add ChoicePage to partition module + OS detection with os-prober.
2014-10-07 16:07:27 +02:00
Teo Mrnjavac
73246b47c6
Prefer nullptr over 0.
2014-10-07 16:07:27 +02:00
Teo Mrnjavac
d39e77f7e8
New PrettyRadioButton, an alternative to QRadioButton with rich text.
2014-10-07 16:07:27 +02:00
Aurélien Gâteau
75129131bb
More todos
2014-08-09 11:51:29 +02:00
Aurélien Gâteau
97980f5fad
Make PartitionSizeController handle cloning the partition for PartResizerWidget
2014-08-09 11:31:00 +02:00
Aurélien Gâteau
738427130b
Update partitionmanager submodule: Fix devices without partition table not being listed
2014-08-08 18:45:46 +02:00
Aurélien Gâteau
ddd8d7063c
Doc++
2014-08-08 16:57:22 +02:00
Aurélien Gâteau
648befb9bb
Add README.md
2014-08-08 13:40:09 +02:00
Aurélien Gâteau
044bd46ca3
Add missing license headers
2014-08-08 13:39:40 +02:00
Aurélien Gâteau
119a04ba3c
Rename jobtests to partitionjobtests
2014-08-08 13:39:19 +02:00
Aurélien Gâteau
693e9229c8
Dispatch files in core/ gui/ and jobs/ dirs
2014-08-08 13:25:56 +02:00
Aurélien Gâteau
8e2b4050e7
clean ups
2014-08-08 12:37:01 +02:00
Aurélien Gâteau
315c0f0fc5
doc++
2014-08-08 12:37:01 +02:00
Aurélien Gâteau
7978a8b279
Remove Context class
2014-08-08 12:37:01 +02:00
Aurélien Gâteau
ec1836d802
dead code--
2014-08-08 12:37:01 +02:00
Aurélien Gâteau
ddb6813d26
Update partitionmanager submodule: merged origin/master into calamares
2014-08-08 10:35:06 +02:00
Aurélien Gâteau
62470ac4cf
Update partitionmanager submodule: remove stray kcolorscheme.h include
2014-08-08 08:54:12 +02:00
Aurélien Gâteau
1c9265cd21
Merge branch 'wip/resize-partition'
2014-08-07 17:40:03 +02:00
Aurélien Gâteau
9b30e27f5e
update partitionmanager submodule: Nicer rendering of PartResizerWidget
2014-08-07 17:30:07 +02:00
Aurélien Gâteau
310fdc56d9
Set proper colors in PartResizeWidget
2014-08-07 17:26:26 +02:00
Aurélien Gâteau
055904b20a
Coding style
2014-08-07 17:25:45 +02:00
Aurélien Gâteau
86481461fd
Move color handling to a separate namespace
2014-08-07 17:24:39 +02:00
Aurélien Gâteau
cf4416a171
Keep partition color if space is inserted/removed before it
2014-08-07 16:13:46 +02:00
Aurélien Gâteau
06e30b8290
Remove PartitionSizeWidget
2014-08-07 13:05:16 +02:00
Aurélien Gâteau
5c9c414988
Use PartResizerWidget in CreatePartitionDialog
2014-08-07 13:04:02 +02:00
Aurélien Gâteau
38c685dc10
Move code cloning the partition for PartResizerWidget to PMUtils
2014-08-07 12:59:24 +02:00
Aurélien Gâteau
c109059eb7
Fix crash if widgets are deleted before new ones are set
2014-08-07 12:58:28 +02:00
Aurélien Gâteau
55f4231c92
EditExistingPartitionDialog: Visual resizing of partitions
2014-08-06 18:31:46 +02:00
Teo Mrnjavac
78a3f1ce57
Merge pull request #81 from calamares/config
...
Configuration refactor
2014-08-06 17:42:35 +02:00
Aurélien Gâteau
c3efa65668
Make sure all PM filesystem classes are initialized early enough
...
If FileSystemFactory::init() is not called early enough, we won't get
access to some information such as the number of used sectors.
2014-08-06 16:15:34 +02:00
Aurélien Gâteau
b246a95606
Coding style
2014-08-06 15:11:10 +02:00
Aurélien Gâteau
493e368bf0
update partitionmanager submodule: Build PartResizerWidget
2014-08-06 15:08:19 +02:00
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.
2014-08-06 11:54:45 +02:00
Aurélien Gâteau
415ad2c506
Fix empty error message
2014-08-06 11:53:23 +02:00
Aurélien Gâteau
a267ef856e
Check file system after the resize, like PM does
2014-08-06 11:52:27 +02:00
Aurélien Gâteau
f5ccc616b9
Check file system before resizing: necessary for testResizePartition:shrink to pass
2014-08-06 11:49:04 +02:00
Aurélien Gâteau
d48644a49c
Improve prettyName of all jobs, log them in execJobList()
2014-08-06 11:48:03 +02:00
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
2014-08-06 11:46:03 +02:00
Aurélien Gâteau
dac23c90a1
Implement MoveFileSystemJob: all testResizePartition tests pass
2014-08-05 18:27:24 +02:00
Aurélien Gâteau
4716b1c9b4
Coding style
2014-08-05 17:53:10 +02:00
Aurélien Gâteau
3db6d607ca
move MoveFileSystemJob to its own file
...
It's going to be bigger than the others.
2014-08-05 17:38:26 +02:00
Aurélien Gâteau
1314bf944f
Update partitionmanager submodule: Include CopySourceDevice and CopyTargetDevice
2014-08-05 17:35:54 +02:00
Aurélien Gâteau
f007810118
Implement SetPartGeometryJob and ResizeFileSystemJob
...
Now testResizePartition:grow and testResizePartition:shrink pass
2014-08-05 16:11:34 +02:00
Aurélien Gâteau
60a224e5cd
3MB is too small for ext4: set a bigger new size for shrink
2014-08-05 16:10:20 +02:00
Aurélien Gâteau
9dac375a31
Don't forget to queue the job!
2014-08-05 16:09:30 +02:00
Aurélien Gâteau
09c3240364
Scaffolding and tests for ResizePartitionJob
2014-08-05 14:57:00 +02:00
Aurélien Gâteau
fc3f3eaa3a
Update partitionmanager submodule: Make it possible to set partition sectors from the outside world
2014-08-05 14:55:49 +02:00
Aurélien Gâteau
e6c80ed5bd
Coding style
2014-08-05 09:54:30 +02:00
Aurélien Gâteau
9ce55bfb83
Introduce PartitionSizeWidget to reduce duplication between dialogs
2014-08-04 19:26:16 +02:00
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()
2014-08-04 19:23:39 +02:00
Aurélien Gâteau
3d40527d29
Make it possible to "resize" (aka delete + create for now) existing partitions
2014-08-04 18:16:05 +02:00
Aurélien Gâteau
c655c99f67
Hide disk which contains /
...
Fixes #75
2014-07-30 23:21:06 +02:00
Aurélien Gâteau
03c5a38b90
Show a summary of the partition changes on the summary page
2014-07-30 14:17:14 +02:00
Aurélien Gâteau
e3a333e6e6
Prettier PartitionPreview
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
fe9e52ee0e
PartitionModel: Add IsFreeSpaceRole
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
0ea6f1698b
First version of PartitionPreview
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
93cb9fd426
New role for PartitionModel: SizeRole
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
5fc07aad7c
Expose colors for Qt::DecorationRole
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
5c1336f2d5
Turn PartitionModel into a tree model
...
Fixes #12
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
e3a52745fc
Fix assert failure when recreating partition table
2014-07-29 16:01:45 +02:00
Aurélien Gâteau
64f8748c49
Spaces fixes
2014-07-28 15:00:30 +02:00
Aurélien Gâteau
0b01c76687
Coding style
2014-07-28 15:00:17 +02:00
Aurélien Gâteau
2d9142487b
FillGlobalStorageJob: Add the partition UUID to global storage
2014-07-28 14:58:06 +02:00
Aurélien Gâteau
62d706543b
Do not let the user pick a partition type when creating a partition of a GPT disk
...
Fixes #27
2014-07-28 11:45:13 +02:00
Aurélien Gâteau
fb6d80ccb6
Bring back tree view headers
2014-07-25 13:13:04 +02:00
Aurélien Gâteau
bf72672cce
Make double-clicking on a partition item in the list trigger edit/create
2014-07-25 13:07:22 +02:00
Aurélien Gâteau
cd99f64344
Add mnemonics to UI elements
2014-07-25 12:46:20 +02:00
Aurélien Gâteau
c3a91f1c8d
Implement Revert
...
Fixes #14
2014-07-24 19:28:53 +02:00
Aurélien Gâteau
675b07799b
Dead code--
2014-07-24 19:26:57 +02:00
Aurélien Gâteau
d476f9cba8
Make sure we show info of the first device in the device combo box
2014-07-24 19:26:19 +02:00
Aurélien Gâteau
cb546d02f9
Sort device in DeviceModel by device node
2014-07-24 19:24:40 +02:00
Aurélien Gâteau
96ede98f27
Update partitionmanager submodule: fix cmake warning
2014-07-24 14:00:56 +02:00
Aurélien Gâteau
f2ab67b28b
Create bootLoader.installPath in GlobalStorage
2014-07-23 18:16:55 +02:00
Aurélien Gâteau
06a13637b6
Store current boot loader install path in PartitionCoreModule
2014-07-23 18:15:46 +02:00
Aurélien Gâteau
ab4604258c
Rework boot loader combo box
...
List MBR of all devices
Does not loose its selection when updated
2014-07-23 18:14:27 +02:00
Aurélien Gâteau
c9c1917997
log--
2014-07-23 15:05:01 +02:00
Aurélien Gâteau
a39384eda7
Simplify
2014-07-23 15:04:40 +02:00
Aurélien Gâteau
484d7c4d15
Update partition path after partition has been created
...
Fixes #56
2014-07-23 14:34:06 +02:00
Aurélien Gâteau
89fd6a950b
Add support for per-job progress
2014-07-23 12:04:27 +02:00
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.
2014-07-23 10:58:08 +02:00
Aurélien Gâteau
c8129898fc
Introduce FillGlobalStorageJob
2014-07-22 17:38:36 +02:00
Aurélien Gâteau
7763587c01
Move PartitionIterator to its own file
2014-07-22 17:38:36 +02:00
Aurélien Gâteau
1b64917385
Use findPartitionByMountPoint in updateHasRootMountPoint
2014-07-22 10:50:16 +02:00
Aurélien Gâteau
a335c1cc04
Coding style fixes
2014-07-22 10:50:16 +02:00
Aurélien Gâteau
906019facc
Add combo box to pick boot loader installation destination
2014-07-22 10:50:16 +02:00
Aurélien Gâteau
3e3329d4f2
Rework PartitionPage appearance, prior addition of boot loader UI
2014-07-22 10:50:16 +02:00
Aurélien Gâteau
4c88603872
Fix bug with tiny disks and mbr partition tables
2014-07-18 18:37:44 +02:00
Aurélien Gâteau
26f6943f8a
Add support for formatting existing partitions
...
closes #24
2014-07-18 15:49:27 +02:00
Aurélien Gâteau
a5fcb9bcb9
Improve CreatePartitionJob::prettyName
2014-07-18 15:49:27 +02:00
Aurélien Gâteau
d374d8bad8
Introduce PartitionJob
2014-07-18 15:49:27 +02:00
Aurélien Gâteau
568f2abd0b
Reproduce and fix bug #28
2014-07-18 12:26:12 +02:00
Aurélien Gâteau
99fe98a9cf
Unbreak test. Unfortunately it did not reproduce bug #28
2014-07-18 12:11:42 +02:00
Aurélien Gâteau
7e8c5a980c
Make Runner::run() returns a bool indicating success or failure
2014-07-18 11:27:03 +02:00
Aurélien Gâteau
eebc71257f
Nicer error messages
2014-07-18 11:20:13 +02:00
Aurélien Gâteau
26d0b52342
Unbreak build
2014-07-18 11:20:13 +02:00
Aurélien Gâteau
6f65a4b16c
Add a (failing for now) test for extended partitions
...
This reproduces bug #28
2014-07-18 10:51:54 +02:00
Aurélien Gâteau
43f29b8058
Start working on tests for partition jobs
2014-07-18 10:51:54 +02:00
Aurélien Gâteau
9c89e68672
Get rid of partview, it's no longer useful
2014-07-17 16:09:06 +02:00
Aurélien Gâteau
0d915b4995
Always delete logical partitions first when deleting an extended partition
2014-07-17 15:01:45 +02:00
Aurélien Gâteau
d7a853ee06
Scaffolding for exiting partition reformating
2014-07-17 14:59:59 +02:00
Aurélien Gâteau
4e49f59333
Turn PartitionCoreModule::refreshPartitionModel() into refresh() and make it public
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
5c594f8dd7
Fix doc
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
8a64dcb270
Coding style fixes
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
ec6703b9cd
Start creating EditExistingPartitionDialog
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
5daa1b82e8
Refactor: PartitionInfo is no longer a class
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
ff5667cb73
Turn all extra PartitionInfo fields into QObject properties of Partition
2014-07-17 14:57:16 +02:00
Aurélien Gâteau
9b57b98a93
No point doing this: editing extended partitions is not supported for now
2014-07-17 09:50:07 +02:00
Teo Mrnjavac
4712af05a0
Fix build in PartitionCoreModule.
2014-07-16 15:55:49 +02:00
Aurélien Gâteau
8a7e6c9348
More readable job queue
2014-07-16 11:15:22 +02:00
Aurélien Gâteau
3fa3694f90
Fix crash when trying to delete an extended partition
2014-07-16 11:14:55 +02:00
Aurélien Gâteau
568dc4db0a
Init all fields when editing a partition. Disable editing of extended partitions for now.
2014-07-16 10:59:24 +02:00
Aurélien Gâteau
d500c7b480
Coding style fixes
2014-07-16 10:36:17 +02:00
Aurélien Gâteau
27b28a5bd1
Avoid potential rounding errors
2014-07-16 10:35:09 +02:00
Aurélien Gâteau
45dda6fa17
Factorize size computations
2014-07-16 10:34:56 +02:00
Aurélien Gâteau
a70ab4ad60
Refactor: move sector math from PartitionPage to CreatePartitionDialog
2014-07-16 10:15:57 +02:00
Aurélien Gâteau
7c1ecabd68
Drop now unused IsNewPartitionRole
2014-07-16 10:02:53 +02:00
Aurélien Gâteau
9216982859
Allow editing of partition mount points
2014-07-16 10:02:41 +02:00
Aurélien Gâteau
48c078acc5
Start implementing editing of newly-created partitions
...
This is the beginning of #19
2014-07-15 17:37:04 +02:00
Aurélien Gâteau
174114f09c
Add IsNewPartition role
2014-07-15 17:33:16 +02:00
Aurélien Gâteau
fa30fe147f
Add PMUtils::isPartitionNew()
2014-07-15 17:32:55 +02:00
Aurélien Gâteau
091c3c2757
Make CreatePartitionDialog.ui easier to read in Designer
2014-07-15 15:31:45 +02:00
Aurélien Gâteau
c30ed3c9c1
Let the user recreate the partition table (mbr or gpt)
...
Closes #20
2014-07-15 14:40:08 +02:00
Aurélien Gâteau
7096213206
Move partitionmanager code to src/modules/partition
2014-07-15 11:54:09 +02:00
Aurélien Gâteau
cbcd821943
Coding style fixes
2014-07-15 11:38:46 +02:00
Aurélien Gâteau
7ac6588090
Forget pending changes when the partition table is recreated
2014-07-11 17:09:11 +02:00
Aurélien Gâteau
f0dffb7400
Refactor: Introduce PartitionInfoProvider interface, and make DeviceInfo implement it
2014-07-11 17:09:11 +02:00
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
2014-07-11 17:09:11 +02:00
Aurélien Gâteau
83a56a6bd3
Add the ability to (re)create partition tables
2014-07-10 19:55:16 +02:00
Aurélien Gâteau
5d6a80deae
Factorize management of m_hasRootMountPoint
2014-07-10 19:01:55 +02:00
Aurélien Gâteau
8d3f197fde
Clean up
2014-07-10 18:55:19 +02:00
Aurélien Gâteau
c11fc3a4d2
Do not crash if a device does not have a partition table
2014-07-10 18:27:51 +02:00
Aurélien Gâteau
8d01b9a6fd
assert--
2014-07-10 15:14:06 +02:00
Aurélien Gâteau
e792f4c9c5
Implement DeletePartitionJob::exec()
...
Closes #11
2014-07-10 15:07:02 +02:00
Aurélien Gâteau
7566221eff
Nicer error messages on failure
2014-07-10 14:47:06 +02:00
Teo Mrnjavac
dbadbf69ec
Const correctness.
2014-07-10 12:06:23 +02:00
Aurélien Gâteau
6881fdab6e
JobResult
2014-07-09 15:50:27 +02:00
Aurélien Gâteau
d984489eea
Implement CreatePartitionJob
2014-07-09 15:47:34 +02:00
Aurélien Gâteau
191f37f5fa
Fake CreatePartitionJob::exec() implementation
2014-07-08 19:21:55 +02:00
Aurélien Gâteau
2f774e6c46
Implement PartitionViewStep::jobs()
2014-07-08 15:46:48 +02:00
Teo Mrnjavac
b98c071f94
Prepare for late enqueuing of jobs to the JobQueue.
2014-07-08 14:03:06 +02:00
Aurélien Gâteau
023ed99aca
Coding style
2014-07-08 14:04:57 +02:00
Aurélien Gâteau
36b3de7107
Enable/disable Next button based on whether we have a root mount point
2014-07-08 14:04:57 +02:00
demmm
c3d40b9428
add ECM to CMakeLists,
...
remove obsolete CONFIG
2014-07-05 17:28:13 -04:00
Aurélien Gâteau
15c5142d09
Redo partition type UI and enable/disable mount point UI when appropriate
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
f27ff4c717
We want to format partitions we create
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
467d89f56f
Remove PartitionInfo if we remove a Partition
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
3ed5704818
Refactor: Move creation of CreatePartitionJob to PartitionCoreModule
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
d54dfcfb78
Get rid of DeviceInfo
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
f3f9bfc2a3
Introduce PartitionInfo, to store Calamares-specifc info for a partition
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
1247077ccc
Pass mount point to CreatePartitionJob
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
ab4e81504e
wip mount point
2014-07-04 18:34:01 +02:00
Aurélien Gâteau
a62f3daf25
Adjust logical numbers
2014-07-04 18:34:01 +02:00
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.
2014-07-03 18:00:40 +02:00
Teo Mrnjavac
4cf6c06dda
Useless linkage is useless.
2014-07-03 13:13:06 +02:00
Aurélien Gâteau
3a58e2640f
Show partition elements in separate column
2014-07-02 18:04:53 +02:00
Aurélien Gâteau
0446bb1079
More readable partition sizes
2014-07-02 18:04:53 +02:00
Aurélien Gâteau
a318ec49fc
Enqueue all partition jobs when leaving the PartitionViewStep
2014-07-02 16:06:54 +02:00
Aurélien Gâteau
4916d0cb88
crash--
2014-07-02 16:03:52 +02:00
Aurélien Gâteau
6f3ec0170e
Argh, forgot to commit those files
2014-07-02 15:59:34 +02:00
Aurélien Gâteau
d013e663b8
Implement partition removal
2014-07-02 15:49:35 +02:00
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
2014-07-02 15:48:47 +02:00
Aurélien Gâteau
724780fb23
Coding style fixes
2014-07-02 14:12:56 +02:00
Teo Mrnjavac
20beae8f52
Minor nitpick in module.conf
2014-07-02 11:47:48 +02:00
Teo Mrnjavac
80789b6143
Added ProgressTreeModel/View, including different kinds of items.
...
Redone CalamaresWindow without UI file.
Const correctness in ViewStep and plugins.
2014-07-01 17:52:04 +02:00
Aurélien Gâteau
1421a04dd2
Support creation of extended partitions
2014-07-01 17:33:53 +02:00
Aurélien Gâteau
e3c6869fbd
Let CreatePartitionDialog create the Partition object
2014-07-01 17:09:39 +02:00
Aurélien Gâteau
90d26bfd31
Safer dialog handling
2014-07-01 16:46:33 +02:00
Aurélien Gâteau
5eafb9538e
Crude way to distinguish extended from primary partitions + show partition size
2014-07-01 16:29:26 +02:00
Aurélien Gâteau
cdfb890e17
Better way to detect free space
2014-07-01 16:29:00 +02:00
Aurélien Gâteau
5dc5b4ddc8
Add missing file
2014-07-01 10:58:54 +02:00
Aurélien Gâteau
b060f66456
Introduce CreatePartitionDialog and CreatePartitionJob
2014-06-30 18:08:13 +02:00
Aurélien Gâteau
c9409ba6b2
Start implementing support for creating partitions
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
3a59cdeda9
Detect free space using the FS type
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
c254fe0b2a
Enable/disable partition buttons
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
2000553a10
PartitionModel: Add getter for Partition
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
4429a8fd63
Introduce PMUtils
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
6d0b3218f1
Move PartitionModel management from DeviceModel to PartitionCoreModule
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
578f2e4baa
Instantiate DeviceModel in PartitionCoreModule
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
4d2354fb56
Introduce PartitionCoreModule
...
Owner of the Qt models and PM devices
2014-06-30 16:17:59 +02:00
Aurélien Gâteau
730c3902bf
PartitionViewPlugin => PartitionViewStep
2014-06-30 13:24:59 +02:00
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
2014-06-30 13:15:20 +02:00
Teo Mrnjavac
c7d62300a0
Make the partition viewmodule compile with the new ViewStep interface.
2014-06-27 18:14:39 +02:00
Aurélien Gâteau
1d0dfa5215
Clean up
2014-06-27 17:42:15 +02:00
Aurélien Gâteau
344d7ac610
Better use QItemSelectionModel to detect selection changes
2014-06-27 17:42:13 +02:00
Aurélien Gâteau
6b164a9dcf
Wrap PartitionPage building in WITH_PARTITIONMANAGER
2014-06-27 17:41:55 +02:00
Aurélien Gâteau
8d6b7672bc
Start PartitionPage
2014-06-27 17:26:31 +02:00