Commit Graph

454 Commits

Author SHA1 Message Date
Adriaan de Groot
5136021416 [partition] Move SwapChoice to another namespace
- The choice of swap needs to be handled in more places,
   so make the enum available in the partition module core instead
   of just inside the choice page.
2018-09-13 06:29:59 -04:00
Adriaan de Groot
8c79c981b1 [partition] Simplify space calculations
- Q_ASSERT doesn't work in constexpr functions because it's not
 - May as well calculate bytes at compile-time, no need to give
   the runaround via number-of-MiB
2018-09-13 05:33:39 -04:00
Adriaan de Groot
e0cd90cab1 Update the documentation and implementation of swap calculation.
Make the ramps consistent between suspend-to-disk and not,
and don't do the weird drop from 8GiB swap down to 4GiB for
large-memory systems.
2018-09-11 11:30:01 -04:00
Adriaan de Groot
c104d14086 [partition] Call the helpers in the right order.
This fixes the crash by calling the model-reset first, then
refreshing. Previously, the destructors that do the work
were still being called in the wrong order.

FIXES #1019
2018-09-03 15:21:30 -04:00
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
2018-09-03 10:57:20 -04:00
Adriaan de Groot
42d606171d
Merge pull request #1020 from apachelogger/esp-eq-boot
do not set boot flag on ESP (thanks @philmmanjaro for testing)
2018-09-03 10:28:59 +02:00
Harald Sitter
84ad2852bf do not set boot flag on ESP
ESP == boot. at best this is duplicated information, at worst kpmcore may
implode if you try to set a boot flag since that is technically an MBR
type flag and means nothing within the context of GPT where ESP is the flag
to set.
2018-08-22 10:14:49 +02:00
Harald Sitter
81cab43701 do not set active flags on the to-be ESP
having ESP as active flag AND then trying to set ESP means nothing is
set since kpmcore will think ESP is already set (it is listed as active
after all). this ultimately meant that nothing was set since there was
no delta between the requested flags and the already active flags.
2018-08-22 10:12:36 +02:00
Adriaan de Groot
08d41f745b [partition] Remove superfluous null check
delete is specified to handle nullptr gracefully.

FIXES #1012
2018-08-20 06:09:30 -04:00
Andrius Štikonas
22aa6dc132 [partition] fix build with latest kpmcore. 2018-08-12 14:26:43 +01:00
Adriaan de Groot
3b82e655d7 Merge remote-tracking branch 'origin/update-lvm-support' 2018-08-08 15:28:11 -04:00
Adriaan de Groot
238a1e812f [partition] Reduce the fudge-factor for swap size
- Reported by Bill Auger (I think), a 15GiB disk wouldn't hold
   a 8.9GiB root plus 4GiB swap -- due to 10% overprovisioning
   of swap, plus the 2.1GiB fudge factor.
2018-08-08 05:58:41 -04:00
Adriaan de Groot
f10bab8a3a [partition] Minor code-styling 2018-08-08 05:29:19 -04:00
Adriaan de Groot
8ed26e537f [partition] Fix swap maximum size
- The existing calculation comment says "maximum 10% of disk"
   but the calculation itself uses 110%.
2018-08-08 05:26:55 -04:00
Adriaan de Groot
59fea041b6 [partition] Fix up calculations of sectors in auto-partition
- Calculating first free sector had an off-by-one so that
   partitioning would start at 2049.
 - EFI boot partition grew 1 sector larger than desired.
 - While here, align everything to 1MiB boundaries as well.

FIXES #1008
2018-08-08 05:19:09 -04:00
Adriaan de Groot
1cbfa9d693 [partition] Simplify code for sizing 2018-08-08 04:49:13 -04:00
Adriaan de Groot
5d5feeb0ab Merge branch 'master' of https://github.com/cjlcarvalho/calamares into lvm-update 2018-06-28 23:48:13 +02:00
Caio Carvalho
295e14530e [partition] Adding resizing, deactivating and removing procedures for LVM VGs. 2018-06-26 00:38:52 -03:00
Adriaan de Groot
5643ee4b8f Merge branch 'master' into secureboot 2018-06-15 13:14:58 -04:00
Adriaan de Groot
fa08e0ad73 Copyright: fix bad email address 2018-06-15 06:15:43 -04:00
Adriaan de Groot
dd8e53dc22 Copyright: update copyright lines on files touched in 2018
Contributions from:
  Adriaan de Groot <groot@kde.org>
  Gabriel Craciunescu <crazy@frugalware.org>
  AlmAck <gluca86@gmail.com>
  Andrius Štikonas <andrius@stikonas.eu>
  Caio Carvalho <caiojcarvalho@gmail.com>
  Raul Rodrigo Segura <raurodse@gmail.com>
2018-06-15 05:59:11 -04:00
Caio Carvalho
98a158c6e5 [partition] kpmcore latest release doesn't support FileSystem::Type::Luks2 2018-06-14 15:37:00 -03:00
Caio Carvalho
3b6c764f75 [partition] Fixing revert device loop error in PartitionCoreModule::revertAllDevices. 2018-06-11 18:38:57 -03:00
Caio
0465cc4214 [partition] Including revert on creation of LVM VGs. 2018-06-08 20:20:05 -03:00
Caio
f8897e0e0b [partition] Including new LVM PVs in LVM VG creation GUI. 2018-06-08 18:52:53 -03:00
Caio
e5351cdf3c [partition] Don't show capacity of new LVM VGs in DeviceModel. 2018-06-07 17:49:25 -03:00
Caio
208d58bcd9 [partition] Including CreateVolumeGroupDialog and fixing some of its GUI issues. 2018-06-07 17:22:22 -03:00
Caio
d15ce56c97 [partition] Initial implementation of VolumeGroupBaseDialog. 2018-06-04 16:31:58 -03:00
Adriaan de Groot
cbd62fbeb1 Merge branch 'master' into secureboot 2018-05-28 05:04:03 -04:00
Adriaan de Groot
5bcd6eaef8 [partition] Reduce warnings by removing unused code 2018-05-21 06:30:54 -04:00
Adriaan de Groot
336b8c758a [partition] Consider the future flags when checking EFI bootability
- If we're changing the flags to enable EFI boot, then that's
   enough to satisfy the (future) EFI bootability check.
   This is for issue #622 as well. Fixes #884.
2018-05-16 07:33:04 -04:00
Adriaan de Groot
6739b81c2a [partition] Tell PartitionInfo about desired flags
- When creating a partition, or changing flags, tell
   the PartitionInfo about those desired flags.
2018-05-16 07:13:35 -04:00
Adriaan de Groot
7df143f64a [partition] Add flags to PartitionInfo
- PartitionInfo maintains information on "what is desired" for
   a given Partition. Now we can set desired flags, alongside
   the flags already supported by Partition (where activeFlags()
   gives you the flags currently set on that partition).
2018-05-16 06:53:35 -04:00
Caio Carvalho
f72f7bd8fe [partition] Only bootloader model should ignore devices that are not of Disk_Device type. 2018-05-10 18:37:37 -03:00
Caio Carvalho
f561f04591 [partition] Changing PartUtils::getDevices to ignore devices that aren't of Disk_Device type. 2018-05-03 14:50:13 -03:00
Caio Carvalho
8726b70574 [partition] Ignoring LVM devices in PartUtils::getDevices to prevent installing bootloader in LVM VG. 2018-04-30 00:40:54 -03:00
Adriaan de Groot
6bb72d173d [libcalamares] Drop generic cLog()
- Use cWarning or cError() for errors
 - Use cDebug(level) for other uses (but there aren't any)
2018-03-28 09:31:45 -04:00
Adriaan de Groot
092529da45 [partition] WIP: EFI partition search
- Add some logging (not even sure it compiles) because
   my openSUSE Krypton Secureboot-enabled VM says
   "no EFI system partitions found".
2018-02-19 10:25:00 -05:00
Adriaan de Groot
3ae126f589 [modules] Use cError() as well
- Switch KPMHelpers to using Calamares logging instead of qDebug()
2018-02-13 11:59:38 +01:00
Adriaan de Groot
3315df5df1 [modules] Use new convenience logging methods across the board 2018-02-13 11:07:12 +01:00
Adriaan de Groot
637d6ad752 [partition] Find Esp partition with modern flags. 2018-01-09 11:12:13 -05:00
Adriaan de Groot
94b6c95c44 [partition] Introduce function for checking various flag-combinations for ESP boot. 2018-01-09 10:53:33 -05:00
Adriaan de Groot
1a42b8af41 Merge branch 'kpmcore-3.2'
- Bumps requireed KPMCore to 3.3 (in spite of the branch name)
 - Cleans up some dependencies

Thanks to Andrius Stikonas.
2018-01-02 13:25:11 +01:00
Adriaan de Groot
762ad54344 Documentation: change http links to GitHub to https 2017-12-20 08:39:09 -05:00
Adriaan de Groot
96c3f7def3 KPMCore: drop conditional code 2017-09-30 16:50:02 +02:00
Adriaan de Groot
d2cce926de Merge pull request #821 from calamares/luks-colors
Use the LUKS filesystem's outer UUID for the color index.
2017-09-26 17:40:36 +02:00
Adriaan de Groot
e3e519c06f Clang: reduce warnings, nullptr, unused parameters 2017-09-21 04:04:01 -04:00
Adriaan de Groot
337903db09 Clang: reduce warnings about overriden destructors 2017-09-20 09:11:18 -04:00
Adriaan de Groot
9693d7a5bd Memory: clean up interface used to get memory (RAM) size 2017-09-20 09:11:02 -04:00
Adriaan de Groot
13807ceabf Licensing: add self
- to all the files I've touched recently
 - to (very incomplete) AUTHORS list

Licensing: add license info to top-level CMakeLists.txt
2017-09-19 15:57:25 +02:00
Adriaan de Groot
ca60a7fc16 Clang: warnings-- 2017-09-14 07:02:24 -04:00
Adriaan de Groot
a06911e9aa Clang: refactor units-converters, reduce warnings 2017-09-10 13:22:32 -04:00
Adriaan de Groot
3e5916157f A mounted partition cannot be resized or replaced
- add check for isMounted()
 - a device with a mounted partition cannot be (entirely) erased

FIXES #639
2017-09-07 04:55:44 -04:00
Andrius Štikonas
252006ea25 kpmcore now requires passing sector size to FileSystem. 2017-09-06 12:24:51 +01:00
Adriaan de Groot
360a114ed4 Be more explicit on why a device is winnowed from the list 2017-09-05 06:09:50 -04:00
Adriaan de Groot
0e96621b94 Don't leak memory when winnowing disk devices
- Improve logging a little
 - Don't leak Device*, but delete the raw pointer when erasing
 - Document that DeviceInfo takes ownership and doesn't leak
2017-08-31 04:14:52 -04:00
Adriaan de Groot
c5abfd6371 Having a mounted partition should not disqualify the entire device.
FIXES #780
(should reopen #639 for double-checking)
2017-08-28 06:01:11 -04:00
Adriaan de Groot
85595b4e04 #780: check for isMounted(), not for where-would-it-be-mounted 2017-08-28 05:54:04 -04:00
Adriaan de Groot
7e66499f36 Refactor check for EFI system.
The TODO stands, to delegate this to KPMCore.
2017-08-28 05:36:45 -04:00
Adriaan de Groot
3cd18fd285 Partitions: extend getDevices() with minimum size.
This is preparatory work for making the available-space check consistent with
what the partition module will allow for installation. Right now, the check
for available space will allow a mounted drive, even /, to satisfy the check.
2017-07-12 06:40:54 -04:00
Adriaan de Groot
18a1f459db Partition: reduce code duplications 2017-07-12 05:54:22 -04:00
Adriaan de Groot
7d49255a78 Partitions: use an enum with clear semantics instead of bool 2017-07-12 05:41:29 -04:00
Adriaan de Groot
730e0d885f Partitions: use KPMCore-defined default backend 2017-07-12 05:17:34 -04:00
Adriaan de Groot
55c6cfa1ca Partitions: improve wording of debug messages 2017-07-12 04:57:22 -04:00
Adriaan de Groot
102bed1805 Partitions: split device-listing (and winnowing) into separate source file.
The grab-list-of-writable-devices code is usable for the partition module, but
also useful for welcome module, so reduce its footprint.
2017-07-12 04:52:52 -04:00
Adriaan de Groot
5bf03cc515 Partitions: shuffle some device-detection code off to PartUtils.cpp 2017-07-11 06:27:19 -04:00
Adriaan de Groot
aeb0cd0d3f Partitions: drop devices with mounted partitions.
FIXES #639
2017-07-11 06:27:19 -04:00
Adriaan de Groot
cc7631dd99 Partitions: code-formatting 2017-07-11 06:27:19 -04:00
Adriaan de Groot
232bbe18bc Be more verbose while scanning devices 2017-07-04 05:32:05 -04:00
Adriaan de Groot
8ea14d7957 Release: add copyright to files I've touched 2017-06-21 08:27:10 -04:00
Adriaan de Groot
46a2503c87 PartitionModule: skip nullptr devices, and report count
FIXES #686
2017-06-14 12:24:32 -04:00
Adriaan de Groot
92a2c7aa70 PartitionModule: avoid nullptr crashes
Fix up iterator code so that it handles nullptr better.
This avoids part of #686.
2017-06-14 12:24:32 -04:00
Adriaan de Groot
e92d82c5db Cleanup: add copyright lines 2017-06-12 09:59:04 -04:00
Adriaan de Groot
5382a510a9 Cleanup: switch to C++11 user-defined literals 2017-06-12 04:51:55 -04:00
Adriaan de Groot
829f72363e Cleanup: remove duplicate #define 2017-06-12 03:32:22 -04:00
Rohan Garg
bba2f65079
Add additional variables to help improve readability 2017-04-20 01:38:30 +02:00
Teo Mrnjavac
80beb87ae9 Documentation++ 2017-03-03 12:32:44 +01:00
Teo Mrnjavac
6c7cdb5f50 Documentation++ 2017-03-01 13:35:06 +01:00
Teo Mrnjavac
3aebb79d30 Add optional config value neverCreateSwap in partition module.
CAL-458 #close The feature has landed in master, please test.
2017-02-09 18:08:47 +01:00
Teo Mrnjavac
4f1317d1b7 Force the correct flags for EFI system partition. 2017-01-12 16:52:22 +01:00
Teo Mrnjavac
40eba50821 Improve debug output. 2016-12-23 14:17:57 +01:00
Teo Mrnjavac
244b4dff83 Improve debug output. 2016-12-23 14:03:47 +01:00
Teo Mrnjavac
457172df66 Do not dereference nullptr. 2016-12-13 12:17:07 +01:00
Teo Mrnjavac
45315e6ae9 Improve debug output for bootloader code path. 2016-12-02 18:36:02 +01:00
Teo Mrnjavac
2230cd6941 Use the LUKS filesystem's outer UUID for the color index. 2016-11-30 17:26:49 +01:00
Kevin Kofler
1548fe4810 [partition] Use FlagEsp instead of sgdisk to scan for ESPs.
Address an old FIXME in
PartitionCoreModule::scanForEfiSystemPartitions(): Check the FlagEsp on
the Partition object (that KPMcore has been supporting since 2.1.0)
instead of running sgdisk.
2016-10-29 01:09:14 +02:00
Kevin Kofler
5377003f89 Set the ESP flag in partition rather than bootloader.
The manual partitioning setup was already requiring the user to check
the ESP flag for the EFI System Partition. Now the autopartitioning also
sets it directly (a one-line change). The sgdisk call in the bootloader
module is thus no longer necessary (it was only a workaround because
kpmcore < 2.1.0 did not support FlagEsp), so remove that snippet.

This fixes configurations such as NVME disks where splitting boot_device
into boot_device[-1:] and boot_device[:-1] is not the correct split
(because the partition gets a 2-letter suffix) (reported by demmm on
IRC).
2016-10-29 00:52:38 +02:00
Chantara Tith
64db6d5ba1 Use device's immutable copy instead of rescanning. 2016-09-11 16:20:50 +07:00
Teo Mrnjavac
c316d22b08 Keep an immutable copy for every scanned Device* to avoid rescans. 2016-09-09 11:28:39 +02:00
Teo Mrnjavac
464336d609 Assert on nullptr Device*. 2016-09-09 11:28:39 +02:00
Chantara Tith
aa10fe982a API Changes, logicalSectorSize -> logicalSize, totalSectors -> totalLogical. 2016-09-09 11:28:39 +02:00
Teo Mrnjavac
cbb2162ee9 Merge pull request #255 from stikonas/master
Port away from most cases of Q_FOREACH to C++11 ranged for loop.
2016-09-02 15:14:25 +02:00
Teo Mrnjavac
6c928e0404 Exclude ISO9660 volumes. 2016-09-02 15:12:48 +02:00
Teo Mrnjavac
ad219e1b8e Exclude loop devices with mounted children from devices list. 2016-09-02 12:08:00 +02:00
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)
2016-09-01 16:46:14 +01:00
Teo Mrnjavac
849137c20b Use UUIDs instead of paths to match osprober entries with partitions. 2016-07-28 17:53:54 +02:00
Teo Mrnjavac
811261258b Try to load filesystem UUIDs into the OsproberEntryList structure. 2016-07-28 17:53:54 +02:00
Teo Mrnjavac
f13f6a1faf Add filesystem UUID to OsproberEntry structure. 2016-07-28 17:53:54 +02:00
Teo Mrnjavac
18b6e56271 nullptr safety. 2016-07-28 17:53:54 +02:00
Teo Mrnjavac
754cfc78b3 Make che color cache indexed by UUID instead of by path. 2016-07-28 17:53:54 +02:00
Teo Mrnjavac
003456594e Try with new enumeration but no cache reset. 2016-07-27 16:55:22 +02:00
Teo Mrnjavac
1da4360ed6 Go on with colors enumeration even when there's a new partition. 2016-07-27 16:53:17 +02:00
Teo Mrnjavac
c08eecbbaf Invalidate colors cache on delete. 2016-07-27 16:49:53 +02:00
Teo Mrnjavac
9f1f3a8f54 Add invalidateCache to ColorUtils. 2016-07-27 16:49:13 +02:00
Teo Mrnjavac
45ed210192 Add OsproberHomePartitionPathRole to PartitionModel. 2016-07-22 16:36:26 +02:00
Teo Mrnjavac
be3070ca48 Populate /home partition path, if any. 2016-07-22 16:36:26 +02:00
Teo Mrnjavac
1443b335d3 OsproberEntry.cpp be gone! 2016-07-22 16:36:26 +02:00
Teo Mrnjavac
5fe5b8a4f3 Add some guesswork to acquire a part node from a fstab entry for /home. 2016-07-22 16:36:26 +02:00
Teo Mrnjavac
f2f5a18984 Reading a system's fstab lines into the osprober entries list. 2016-07-22 16:36:26 +02:00
Teo Mrnjavac
098aa5546c Add struct FstabEntry to OsproberEntry.h. 2016-07-22 16:36:26 +02:00
Teo Mrnjavac
2951c88990 Init filesystems asynchronously. 2016-07-20 13:02:04 +02:00
Teo Mrnjavac
45f6e6c55b Rearrange asynchronous scan in PartitionCoreModule a bit. 2016-07-19 13:04:00 +02:00
Teo Mrnjavac
f5ff716369 Make everything obey the default filesystem type setting. 2016-06-10 15:22:21 +02:00
Teo Mrnjavac
e84108e234 Add encryption support in PartitionActions::doReplacePartition. 2016-06-03 16:39:28 +02:00
Teo Mrnjavac
a252f7ff32 Debug output. 2016-05-12 14:01:38 +02:00
Teo Mrnjavac
167b4fc0a2 Exclude zram from devices list. 2016-05-09 16:18:03 +02:00
Teo Mrnjavac
759ccae9f6 Tentative LUKS support for EraseAutopartition.
Partitioning only, install doesn't work yet.
2016-05-06 18:59:51 +02:00
Teo Mrnjavac
0dfe627d52 Add KPMHelpers::createNewEncryptedPartition. 2016-05-06 18:59:51 +02:00
Chantara Tith
fd8c131b26 implement free-space partition replace install 2016-03-18 17:09:50 +07:00
Teo Mrnjavac
4f5230fc63 Revert "Temporarily allow read-only devices."
This reverts commit fc4a8b8628.
2016-03-15 18:07:45 +01:00
Teo Mrnjavac
fc4a8b8628 Temporarily allow read-only devices.
This way the KPMcore libpartedbackend scanner won't filter out Parted
devices of type UNKNOWN.
CAL-349
2016-03-15 16:45:48 +01:00
Teo Mrnjavac
a0055534a1 Disallow replace/resize on free space.
CAL-359 #close
2016-03-10 12:58:10 +01:00
Teo Mrnjavac
7d5795a6fd Empty path should yield nullptr Partition. 2016-03-10 12:43:00 +01:00
Teo Mrnjavac
24c1bf429e Don't fail when trying to replace unallocated space. 2016-03-10 12:33:19 +01:00
Teo Mrnjavac
be9ec27350 Make findPartitionByMountPoint public. 2016-03-09 12:52:43 +01:00
Teo Mrnjavac
e9d2312002 PCM::createPartition now includes SetPartFlagsJob.
Also remove outstanding SetPartFlagsJobs when deleting a new partition.
2016-03-08 16:25:43 +01:00
Teo Mrnjavac
cb9a984b11 setPartitionFlags in PartitionCoreModule. 2016-03-08 12:50:45 +01:00
Teo Mrnjavac
c233fb3b2d Allow setting flags when creating a partition. 2016-03-08 12:50:45 +01:00
Teo Mrnjavac
7d8b8eb7a6 Improve debug output for device detection. 2016-03-01 18:20:11 +01:00
Teo Mrnjavac
64498ea71b Keep the EFI system partitions model up to date with reverts. 2016-02-19 17:04:16 +01:00
Teo Mrnjavac
5372245aed Copyright statements. 2016-02-12 17:19:30 +01:00
Teo Mrnjavac
a9c6b47e5e Check whether a new primary partition can be created in canBeResized. 2016-02-12 16:36:50 +01:00
Teo Mrnjavac
935c4816d3 New partition replace check. 2016-02-12 15:02:49 +01:00
Teo Mrnjavac
01eede3f6e Split out a canBeResized overload that takes a Partition*. 2016-02-11 16:52:21 +01:00
Teo Mrnjavac
0cff1cd7ec Add deviceReverted signal to PCM and emit it. 2016-01-05 18:45:59 +01:00
Teo Mrnjavac
eb485f55c0 Make sure the Extended partition role doesn't carry over on replace. 2015-12-31 17:33:13 +01:00
Teo Mrnjavac
a1e4667ebe New revertAllDevices operation in PCM. 2015-12-30 17:27:13 +01:00
Vedant Agarwala
66d378d338 Showing a tooltip on hover in Partition Labels
Tooltip has partition path, file system type, size of partition
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
9847b8efa9 Try to invalidate whole PartitionModel on replace. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
fbb293c15a Back to QFutureWatcher, but we allocate/destroy it ourselves.
This reverts commit c64eef54f6584b26f14933f0c8e600d5ad2dacbb.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
d635709833 Maybe a plain QTimer is enough. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
dbef198bac Add asynchronous device revert. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
16d10afcde Revert "Trying out something really horrible."
This reverts commit 10d622b0339697c57d4072b34052e657136145a5.
2015-12-30 17:27:13 +01:00
Teo Mrnjavac
bd573233ec Trying out something really horrible. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
ace0d30eb4 PCM::createImmutableDeviceCopy can be static. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
157a3f8ed2 devicePath != partitionPath. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
8e8fcf936c Debug info. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
ad2ce6b6d4 Refresh model on forgetChanges. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
4859431fe9 Maybe the deviceNode check isn't necessary. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
015aeb6b07 Debug output. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
423c9ccfb7 Reset the partition model before swapping the new Device into the DM. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
0a0a0d58e0 PartitionCoreModule::revertDevice. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
fe5ab75e82 Whitespace. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
0bf2389b1a Add swapDevice to DeviceModel. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
1d553407b9 And remove swapDevice from BootLoaderModel. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
cbbaa8b592 swapDevice in BootLoaderModel. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
5655b4f1da Add PartitionPathRole to PartitionModel. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
b663ce5f74 Add PartitionPtrRole to PartitionModel. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
df13b3ba08 Add separate FileSystemTypeRole to PM, and output FS PrettyNames. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
2986625cfd PrettyName generator for FileSystem::Type. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
e277467ed4 Run osprober after we have a working DeviceModel. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
fc54b9bf40 Debug spam. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
a75c69805f Add IsPartitionNewRole to PartitionModel. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
c765de654c Add filesystem label role. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
0224811bf6 Move Osprober to PCM and add Osprober roles to PartitionModel. 2015-12-30 17:27:13 +01:00
Teo Mrnjavac
8a6dcfbe2f Move ReplacePartition operation to PartitionActions. 2015-12-30 17:27:02 +01:00
Teo Mrnjavac
9b2f04daf6 Add reverted signal to PCM. 2015-12-30 17:27:02 +01:00
Teo Mrnjavac
9167a34f2e Kill EraseDiskPage, add PartitionActions. 2015-12-30 17:27:02 +01:00
Teo Mrnjavac
26c2c08c47 Constant for unknown disklabel color. 2015-12-30 17:27:02 +01:00
Teo Mrnjavac
5f54a56513 PMUtils is now KPMHelpers. Also fixup after PartUtils refactor. 2015-09-18 15:41:07 +02:00
Teo Mrnjavac
95e87391a4 Refactor Osprober and resizability logic out ot PartitionViewStep. 2015-09-18 15:39:49 +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
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
881bf67d22 Add a "do not install boot loader" value to the boot loader picker. 2015-07-07 19:16:22 +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
624e4f9421 Initialize all members in PartitionModel. 2015-06-14 00:48:51 +02:00
Teo Mrnjavac
fa2b577236 Meaningful text from BootLoaderModel. 2015-06-06 23:45:54 +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
94e9c659d1 Add generic search function to iterate over partitions for convenience. 2015-06-04 02:28:12 +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
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
be2083e2bf Add device node to Partitioning summary info objects. 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
Teo Mrnjavac
b557961a32 New ClearTempMountsJob, to be executed before partitioning jobs. 2015-02-27 19:49:47 +01:00
Teo Mrnjavac
23eca3db55 Only create a ClearMountsJob for dirty devices.
CAL-195
2015-02-18 17:41:48 +01:00
Teo Mrnjavac
1eff260637 Add debug output to the ClearMountsJob code path. 2015-02-13 14:03:55 +01:00
Teo Mrnjavac
e85b2d164f Hook up ClearMountsJob in PartitionCoreModule. 2014-11-28 15:52:18 +01:00
Teo Mrnjavac
8026a287d3 Shut up Qt lupdate warnings. 2014-10-29 13:06:52 +01:00
Teo Mrnjavac
6bd5736d35 Add findPartitionByPath to PMUtils 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
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
Aurélien Gâteau
693e9229c8 Dispatch files in core/ gui/ and jobs/ dirs 2014-08-08 13:25:56 +02:00