905 Commits (9f05c236d8813837bda4b4e71cf6710c8bdc833b)

Author SHA1 Message Date
Teo Mrnjavac a55bef5d2d Warn user about encrypted root with unencrypted /boot. 10 years ago
Philip e8f694fe02 [partition] Bump kpmcore requirements 10 years ago
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.
10 years ago
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).
10 years ago
Teo Mrnjavac fbe72b3663 Improve user-visible strings in SetPartFlagsJob. 10 years ago
Teo Mrnjavac 6e7dc0b437 Use the target system's boot name in partitioning summary widget. 10 years ago
Teo Mrnjavac 5796b05fda Allow disabling automated LUKS modes. 10 years ago
Chantara Tith 64db6d5ba1 Use device's immutable copy instead of rescanning. 10 years ago
Teo Mrnjavac c316d22b08 Keep an immutable copy for every scanned Device* to avoid rescans. 10 years ago
Teo Mrnjavac 464336d609 Assert on nullptr Device*. 10 years ago
Chantara Tith 23026252a8 Update to KPMcore LUKS' API changes 10 years ago
Chantara Tith aa10fe982a API Changes, logicalSectorSize -> logicalSize, totalSectors -> totalLogical. 10 years ago
Teo Mrnjavac cbb2162ee9 Merge pull request #255 from stikonas/master
Port away from most cases of Q_FOREACH to C++11 ranged for loop.
10 years ago
Teo Mrnjavac 6c928e0404 Exclude ISO9660 volumes. 10 years ago
Teo Mrnjavac ad219e1b8e Exclude loop devices with mounted children from devices list. 10 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)
10 years ago
Teo Mrnjavac 849137c20b Use UUIDs instead of paths to match osprober entries with partitions. 10 years ago
Teo Mrnjavac 811261258b Try to load filesystem UUIDs into the OsproberEntryList structure. 10 years ago
Teo Mrnjavac f13f6a1faf Add filesystem UUID to OsproberEntry structure. 10 years ago
Teo Mrnjavac 18b6e56271 nullptr safety. 10 years ago
Teo Mrnjavac 754cfc78b3 Make che color cache indexed by UUID instead of by path. 10 years ago
Teo Mrnjavac 003456594e Try with new enumeration but no cache reset. 10 years ago
Teo Mrnjavac 1da4360ed6 Go on with colors enumeration even when there's a new partition. 10 years ago
Teo Mrnjavac c08eecbbaf Invalidate colors cache on delete. 10 years ago
Teo Mrnjavac 9f1f3a8f54 Add invalidateCache to ColorUtils. 10 years ago
Teo Mrnjavac e9da3acd95 Fix EncryptWidget height. 10 years ago
Teo Mrnjavac 04ab71bad9 Fix default new partition text. 10 years ago
Teo Mrnjavac 9c90a2a500 Useless margins are useless. 10 years ago
Teo Mrnjavac edeee85cd3 Write reuse Home check box string. 10 years ago
Teo Mrnjavac e6f9714f84 Avoid homePartitionPath going out of scope. 10 years ago
Teo Mrnjavac 90bb64fb17 Pass current index by value. 10 years ago
Teo Mrnjavac aaf85407fb Only look for a separate /home partition if a partition was found. 10 years ago
Teo Mrnjavac 6c6e4a1f88 Write reuseHome to GlobalStorage. 10 years ago
Teo Mrnjavac 8b0b4c73de Add Q_UNUSED where relevant. 10 years ago
Teo Mrnjavac d44a3d831b Warning fixes: avoid C-style casts. 10 years ago
Teo Mrnjavac 30ff216dea Warning fix: implicit cast. 10 years ago
Teo Mrnjavac 90c06bd733 Warning fixage (init list order, lossy cast, Q_UNUSED). 10 years ago
Teo Mrnjavac c1e535a8e8 Hide reuse checkbox on action selection change. 10 years ago
Teo Mrnjavac a17f369cee React to reuse home checkbox by setting /home mount point.
Rearranged Replace workflow a bit: onPartitionReplaceSelected is now
the on choice slot, which in turn calls doReplaceSelectedPartition.
onHomeCheckBoxStateChanged also calls doReplaceSelectedPartition if we
need to redo the Replace task with/without a separate home to keep.
m_reuseHomeCheckBox is hidden by default.
10 years ago
Teo Mrnjavac bc345b3ddc Add "reuse home" check box to .ui. 10 years ago
Teo Mrnjavac 45ed210192 Add OsproberHomePartitionPathRole to PartitionModel. 10 years ago
Teo Mrnjavac be3070ca48 Populate /home partition path, if any. 10 years ago
Teo Mrnjavac 1443b335d3 OsproberEntry.cpp be gone! 10 years ago
Teo Mrnjavac edecccfa46 Build it. 10 years ago
Teo Mrnjavac 5fe5b8a4f3 Add some guesswork to acquire a part node from a fstab entry for /home. 10 years ago
Teo Mrnjavac f2f5a18984 Reading a system's fstab lines into the osprober entries list. 10 years ago
Teo Mrnjavac 098aa5546c Add struct FstabEntry to OsproberEntry.h. 10 years ago
Teo Mrnjavac 2951c88990 Init filesystems asynchronously. 10 years ago
Teo Mrnjavac 45f6e6c55b Rearrange asynchronous scan in PartitionCoreModule a bit. 10 years ago
Teo Mrnjavac 2c68802446 Reapply the action choice instead. 10 years ago
Teo Mrnjavac b2b202d190 Do a full revert. 10 years ago
Teo Mrnjavac f1a29033a2 Revert PCM before applying Alongside operation. 10 years ago
Teo Mrnjavac 9d4a636a16 Revert "Improve debug output in PartitionBarsView."
This reverts commit 9e186190fc.
10 years ago
Teo Mrnjavac 59f0e9cc2d Revert "Improve debug output."
This reverts commit 3d5ccb2712.
10 years ago
Teo Mrnjavac e96c7f95ef Improve debug output. 10 years ago
Teo Mrnjavac 9888a4e5d3 Only make it dirty if something changes. 10 years ago
Teo Mrnjavac a96b7c1596 Reset previous spinBox value on resizer widget reset. 10 years ago
Teo Mrnjavac 1f664f1eec Keep track of previous spinbox value. 10 years ago
Teo Mrnjavac cd94768850 Revert "Try to work around spinbox dirty status change on apply issue."
This reverts commit 9c90d54eda.
10 years ago
Teo Mrnjavac 9c90d54eda Try to work around spinbox dirty status change on apply issue. 10 years ago
Teo Mrnjavac 5450a18c85 Copyright. 10 years ago
Teo Mrnjavac 2e173c183f Do not align partition boundaries unless explicitly requested. 10 years ago
Teo Mrnjavac 9d995f3625 Use length instead of calculating sectors count. 10 years ago
Teo Mrnjavac 4f41cf54a9 Hook up PartitionLabelsView to model. 10 years ago
Teo Mrnjavac 3940e2b09d Add config option for always showing partition labels. 10 years ago
Teo Mrnjavac 5520972e5a Add labels view to manual partitioning page. 10 years ago
Teo Mrnjavac 3d5ccb2712 Improve debug output. 10 years ago
Teo Mrnjavac 9e186190fc Improve debug output in PartitionBarsView. 10 years ago
Teo Mrnjavac d6676b2245 Retry mke2fs before giving up. 10 years ago
Teo Mrnjavac ce8ffb8e52 Bump KPMcore. 10 years ago
Teo Mrnjavac 49cb6d304d Add a controlled number of retries to fsck, 2sec apart. 10 years ago
Teo Mrnjavac e7c5a2b1a5 Try running fsck twice before giving up. 10 years ago
Teo Mrnjavac bea6b5f17e Stupid compilers are stupid. 10 years ago
Teo Mrnjavac 8ff943e5b5 Improve check for encryption status. 10 years ago
Teo Mrnjavac 7a03dc102d Update fields when the default filesystem is chosen. 10 years ago
Teo Mrnjavac fe107ac762 Obey default FS type setting in EditExistingPartitionDialog. 10 years ago
Teo Mrnjavac 395fb340b7 Make the Create Partition dialog obey the default FS type setting. 10 years ago
Teo Mrnjavac a00ebc01e7 Use EncryptWidget for relevant partition types in CreatePartitionDialog. 10 years ago
Teo Mrnjavac d75d5c76fe Add EncryptWidget to CreatePartitionDialog.ui. 10 years ago
Teo Mrnjavac 99e719882f Add setText/reset to EncryptWidget, and fix tooltip string. 10 years ago
Teo Mrnjavac 18742d2afd Ignore encrypt widget if the choice is Manual. 10 years ago
Teo Mrnjavac f5ff716369 Make everything obey the default filesystem type setting. 10 years ago
Teo Mrnjavac 6fa467715c Add default value to partition.conf. 10 years ago
Teo Mrnjavac 498af8deef Add defaultFileSystemType to settings. 10 years ago
Teo Mrnjavac 936e7fab7c Initial support for Alongside install with LUKS. 10 years ago
Teo Mrnjavac fd2d24d650 Always show encrypt widget for Replace. 10 years ago
Teo Mrnjavac 4113207e00 Fix next status handling in alongside and replace. 10 years ago
Teo Mrnjavac e84108e234 Add encryption support in PartitionActions::doReplacePartition. 10 years ago
Teo Mrnjavac 6cd1bf6b3d Initial work on having the Replace feature obey the encryption setting. 10 years ago
Teo Mrnjavac c9fac9bc5c Manage PCM loading with QtConcurrent. 10 years ago
Teo Mrnjavac 0666fb4977 Defer PartitionCoreModule initialization so it doesn't block startup. 10 years ago
Teo Mrnjavac a4ab8dad46 Hide encryption widget if not Erase. 10 years ago
Teo Mrnjavac 60dcba8735 Update next state slightly later. 10 years ago
Chantara Tith a25a0ffa2c Update PartitionPage.cpp
increase readability.
10 years ago
Teo Mrnjavac 2050ce97d7 Merge pull request #241 from tctara/master
Disk selections in partitioner are not sticky[CAL-361]
10 years ago
Teo Mrnjavac 4c2a327d21 Close crypto devices in ClearMountsJob. 10 years ago
Chantara Tith 625bbb6a4b Disk selections in partitioner are not sticky 10 years ago
Teo Mrnjavac a252f7ff32 Debug output. 10 years ago
Teo Mrnjavac 167b4fc0a2 Exclude zram from devices list. 10 years ago
Teo Mrnjavac 31106629cb Passphrase in storage. 10 years ago
Teo Mrnjavac 43ae4eac80 Get the mapper name, not the whole path. 10 years ago
Teo Mrnjavac beb16a77f0 use actual mapperName, not suggestedMapperName. 10 years ago
Teo Mrnjavac 0b9c9022dd Yeah, partition["isLuks"], how about no. 10 years ago
Teo Mrnjavac c83e67b421 Always declare whether a partition is LUKS in the map. 10 years ago
Teo Mrnjavac cd304b7a6f Get luksUuid instead of innerFs UUID. 10 years ago
Teo Mrnjavac b792ea0216 Rebuild autopartition proposal when encryption choice changes. 10 years ago
Teo Mrnjavac 126ad300ae Write mapperName for LUKS volumes in GlobalStorage. 10 years ago
Teo Mrnjavac 759ccae9f6 Tentative LUKS support for EraseAutopartition.
Partitioning only, install doesn't work yet.
10 years ago
Teo Mrnjavac 0cc9560a99 Hook up EncryptWidget in ChoicePage, plus improve next status handling. 10 years ago
Teo Mrnjavac 0dfe627d52 Add KPMHelpers::createNewEncryptedPartition. 10 years ago
Teo Mrnjavac 6e92a04320 Say hello to EncryptWidget. 10 years ago
Teo Mrnjavac e122600689 Make sure to add KPMcore to include directories. 10 years ago
Teo Mrnjavac dacb8f2a94 Make sure we don't hide actions based on osprober. 11 years ago
Chantara Tith fd8c131b26 implement free-space partition replace install 11 years ago
Teo Mrnjavac 4f5230fc63 Revert "Temporarily allow read-only devices."
This reverts commit fc4a8b8628.
11 years ago
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
11 years ago
Teo Mrnjavac 8e5eb02d7d Bump dependency. 11 years ago
Teo Mrnjavac 83d440f37e Add note. 11 years ago
Teo Mrnjavac a0055534a1 Disallow replace/resize on free space.
CAL-359 #close
11 years ago
Teo Mrnjavac 7d5795a6fd Empty path should yield nullptr Partition. 11 years ago
Teo Mrnjavac 24c1bf429e Don't fail when trying to replace unallocated space. 11 years ago
Teo Mrnjavac 055ff5533e Fixup strings. 11 years ago
Teo Mrnjavac fb5b48528b Move ESP check to onLeave(). 11 years ago
Teo Mrnjavac 0c7b7ed089 Warn the user if going ahead from manual partitioning without ESP. 11 years ago
Teo Mrnjavac 49eea234ed Hide bootloader chooser on EFI. 11 years ago
Teo Mrnjavac be9ec27350 Make findPartitionByMountPoint public. 11 years ago
Teo Mrnjavac 182ff03e04 Update createPartition call. 11 years ago
Teo Mrnjavac e9d2312002 PCM::createPartition now includes SetPartFlagsJob.
Also remove outstanding SetPartFlagsJobs when deleting a new partition.
11 years ago
Teo Mrnjavac 3fa7318a37 Do set flags after showing dialog. 11 years ago
Teo Mrnjavac 5a134eb708 Copyright headers. 11 years ago
Teo Mrnjavac ada0a080fc Add flags setting support when creating a partition. 11 years ago
Teo Mrnjavac b83e91b951 Add flags ui to edit partition dialog. 11 years ago
Teo Mrnjavac 97108d0beb No implementation in header. 11 years ago
Teo Mrnjavac cb9a984b11 setPartitionFlags in PartitionCoreModule. 11 years ago
Teo Mrnjavac c233fb3b2d Allow setting flags when creating a partition. 11 years ago
Teo Mrnjavac 4b185ddb16 New SetPartFlagsJob. 11 years ago
Teo Mrnjavac 7d8b8eb7a6 Improve debug output for device detection. 11 years ago
Teo Mrnjavac 06ebf69afe Initialize all members (fix Coverity defect 98200). 11 years ago
Teo Mrnjavac 7e89e67059 Initialize all members (fix Coverity defect 98206). 11 years ago
Teo Mrnjavac 749a740ffa Ensure the resizing items aren't null (fix Coverity defect 121862). 11 years ago
Teo Mrnjavac a0ac9d9f07 Don't dereference nullptr (fix Coverity defect 121863). 11 years ago
Teo Mrnjavac 53741f0d36 Initialize all members in ctor (fix Coverity defect 122658). 11 years ago
Teo Mrnjavac 1e3e1d22bb Fix build. 11 years ago
Teo Mrnjavac 3c8aee7b5e Add resizing state flag to Splitter items.
New iterator for Splitter items.
Use std::function instead of templates for type safety.
11 years ago
Teo Mrnjavac bafaa6a225 Keep Splitter items on the stack. 11 years ago
Teo Mrnjavac 7bf0fa2575 Get better debug information. 11 years ago
Teo Mrnjavac d6de5be8d0 Don't segfault on free space in Splitter widget. 11 years ago
Teo Mrnjavac 64498ea71b Keep the EFI system partitions model up to date with reverts. 11 years ago
Teo Mrnjavac e91d213872 Improve setting ESP. 11 years ago
Teo Mrnjavac e27b9fc295 Handle ESP selector visibility. 11 years ago