Adriaan de Groot
231fa815c1
[partition] Forgotten )
2021-04-19 16:10:29 +02:00
Adriaan de Groot
117418fe60
[partition] Fix partitioning summary
...
- the %4 is left-over from the feature-summary string,
- replace it with ""; don't change the source string
because that will break translations right now.
2021-04-19 15:47:55 +02:00
Adriaan de Groot
df1d7dea61
[partition] Warnings--
...
Avoid the extra indirection through the otherwise-unused
prettyGptType(const QString&), construct table of names
only on first call to avoid static-initialization order
(though that's not important here).
2021-03-29 11:03:37 +02:00
Adriaan de Groot
22dbe60bb9
[partition] Use operations-API (available in all supported KPMCore versions)
2021-03-28 18:07:32 +02:00
Adriaan de Groot
47c167c043
[partition] KPMCore removed some headers
2021-03-28 17:56:54 +02:00
Adriaan de Groot
e2113eda38
[partition] trust in AutoMoc
2021-03-28 17:52:44 +02:00
Adriaan de Groot
1eba562d07
[partition] Apply coding style
2021-03-27 15:43:32 +01:00
shainer
1007680931
Fix error handling in ChangeFilesystemLabelJob
2021-03-27 15:40:07 +01:00
shainer
c035029f38
Make sure we always set the filesystem label.
...
In particular, we need a separate Job class to set the label; this
is invoked after we formatted a partition, and when no other changes
to the partition have been requested in the Edit dialog.
2021-03-27 15:38:46 +01:00
Adriaan de Groot
559b79f920
[partition] Use (better documented) filesystem-use API
2021-03-23 12:09:06 +01:00
Adriaan de Groot
17f73b1294
[partition] Test automount job in a queue
2021-02-03 01:26:49 +01:00
Adriaan de Groot
38fa1d9567
[libcalamares] Distinguish logging raw, shared and unique pointers
...
- It shouldn't be necessary to explicitly .get() pointers for
logging, and it's convenient to know when a pointer is smart.
* no annotation means raw (e.g. @0x0)
* S means shared
* U means unique
2021-02-03 01:06:25 +01:00
Adriaan de Groot
c43a6ab866
[partition] Improve logging in automount test
...
- switch logging in job to VERBOSE because we don't want to be printing
pointers to the regular session log
- switch logging in test to VERBOSE to actually see the messages from the Job
- hook the test into the build
2021-02-03 00:46:34 +01:00
Adriaan de Groot
1704ad5977
[partition] Add a job to handle automount behavior
...
- while here, nudge CalamaresUtils automount API a little,
since it doesn't really need an rvalue-ref.
2021-02-02 19:18:19 +01:00
Adriaan de Groot
6978ce3cb4
[partition] Collect more kpmcore 4.2 code
2021-01-20 14:56:34 +01:00
Adriaan de Groot
520f08bbba
[partition] Fix build with legacy kpmcore
2021-01-20 14:54:12 +01:00
Adriaan de Groot
31bf38977e
[partition] Refactor partition-labeling
2021-01-20 14:48:44 +01:00
Gaël PORTAY
af5c57a713
[partition] Output filesystem features in overview
2021-01-08 08:57:03 -05:00
Gaël PORTAY
c045af1975
[partition] Output GPT entries in overview
2021-01-08 08:57:03 -05:00
Gaël PORTAY
e2b00bc517
[partition] Fix typo
2020-11-04 09:58:07 -05:00
Gaël PORTAY
6013ed52f8
[partition] Ignore unformatted filesystem
2020-11-02 09:01:23 -05:00
Adriaan de Groot
881661e94b
[partition] Migrate InstallChoice to the Config object
2020-10-02 12:08:42 +02:00
Adriaan de Groot
e37c7da60d
[partition] Introduce dummy argument to LVM jobs
...
- Give LVM jobs a dummy argument Device* so that they
fit the functionality of makeJob for partitioning.
For those jobs that already take an LVMDevice*, this should
be the self-same device, but that isn't checked.
2020-09-21 16:46:24 +02:00
Adriaan de Groot
1cd9b93a22
REUSE: Giant boilerplate cleanup
...
- point to main Calamares site in the 'part of' headers instead
of to github (this is the "this file is part of Calamares"
opening line for most files).
- remove boilerplate from all source files, CMake modules and completions,
this is the 3-paragraph summary of the GPL-3.0-or-later, which has
a meaning entirely covered by the SPDX tag.
2020-08-26 02:28:38 +02:00
Adriaan de Groot
30a85668b7
REUSE: (GPL-3.0-or-later) C++ modules
2020-08-26 02:22:49 +02:00
Adriaan de Groot
46ad704ede
[partition] Fix build for old KPMCore
...
SEE #1444
2020-07-03 22:33:00 +02:00
Adriaan de Groot
36a9088480
Merge pull request #1444 from gportay/add-parttype-partattrs-to-global-storage
...
[partition] Add the GPT type and attributes to global storage
2020-07-03 16:18:56 -04:00
Adriaan de Groot
e206eb086b
[partition] Missing includes for Qt-compatibility
2020-06-23 17:05:08 +02:00
Adriaan de Groot
192263cf9d
[libcalamares][modules] Use compatibility for QString::split()
...
- Use the compatibility value, which has an enum value suitable
for the Qt version in use.
2020-06-23 11:13:55 +02:00
Gaël PORTAY
9392473fec
[partition] Add the GPT type and attributes to global storage
2020-06-22 16:37:20 -04:00
Gaël PORTAY
3d2b9053b0
[partition] Add the GPT label and UUID to global storage
2020-05-15 16:12:19 -04:00
Adriaan de Groot
c0a3614f09
[partition] Chase Branding API change
2020-05-04 12:52:14 +02:00
Gaël PORTAY
77a31ac3b2
[partition] Update debug output
...
The mount-point is known as mountPoint in the global storage.
This commit updates the trace to reflect its real name.
2020-04-21 19:48:48 -04:00
Adriaan de Groot
0c6dd4e788
[partition] No "jobs/" needed in jobs includes
2020-04-07 11:46:03 +02:00
Adriaan de Groot
f85732ccb0
[partition] Coding style on Jobs
2020-04-07 11:44:26 +02:00
Adriaan de Groot
5248a37eb3
[libcalamares] Add FUNC_INFO into all debug messages
...
- This is needlessly verbose
- Chase CreatePartitionTableJob which needs to bind to a temporary
2020-03-03 17:00:57 +01:00
Adriaan de Groot
54a4644893
[partition] Store filesystem types
...
- Write a new GS key filesystems_use, which is a map of filesystems
in use on the target system.
2020-02-27 14:29:54 +01:00
Adriaan de Groot
d4b26bbaf0
[partition] Tighten up the types of internal methods
2020-02-27 13:49:02 +01:00
Adriaan de Groot
f818d4b446
[libcalamares] Log Q_FUNC_INFO as part of debug
...
- Warnings, errors, don't get funcinfo, but regular cDebug()
calls do. Other special-cases, like calling Logger::CDebug()
constructor explicitly, don't get funcinfo either.
FIXES #1328
2020-02-27 13:20:19 +01:00
Adriaan de Groot
6d0f5e4111
Merge branch 'kpmcore-manager'
2020-02-20 22:03:45 +01:00
Adriaan de Groot
5247c13f98
[partition] Follow 'claimed' settings for claiming swap
...
- By the time the GS is actually written, new (for partition state)
is always false. So "new" is the wrong thing to track. It should
have had a better name anyway,
- We store custom properties on the partition objects to indicate
what happens to them; use those properties (instead of state,
as done originally), call it "claimed" to indicate that the partition
is part of this installation.
For now, only new (as in, formatted, created-by-us) partitions are
claimed.
- The effect here is that only "new" swap will be added to the system,
so in erase-disk installations, or manual partitioning.
- Install-alongside and replace will now **not** claim the swap already
on the disk; I think we'll need another UI knob for that one.
FIXES #1316
2020-02-20 16:38:40 +01:00
Adriaan de Groot
35a2db064b
[partition] Make debug-logging match the functionality
...
- `createPartitionList()` is called for the summary widget (via
`prettyDescription()`), and from `exec()`. Only the latter
actually *writes* to Global Storage, so it's misleading to
think that the pretty-printed version ends up in GS.
- This makes the "new" key useless, since by the time `exec()` is called
the partitoons are no longer new.
2020-02-20 11:59:48 +01:00
Adriaan de Groot
158e11de1e
[partition] Indicate that a filesystem is new in GS
2020-02-18 10:44:54 +01:00
Adriaan de Groot
45a31a3022
[partition] Tidy includes
...
- sort includes a little
- remove superfluous includes
- update copyright
2020-02-13 13:54:04 +01:00
Adriaan de Groot
d931b146e3
[partition] Shuffle new conveniences into partition service
...
- the general stuff from KPMHelpers ends up in the partition
service; that only gets compiled when KPMCore is available anyway.
2020-02-13 13:48:12 +01:00
Adriaan de Groot
e72ecaafd3
Merge branch 'kpmcore-manager'
...
Introduces a "partitioning service" into libcalamares,
shuffles a bunch of things into it, tries to help out
with settling the system between partitioning actions.
2020-02-13 13:41:53 +01:00
Adriaan de Groot
57b608083e
[partition] Fix build - missing )
2020-02-13 13:24:09 +01:00
Adriaan de Groot
88cff387c3
[partition] Be explicit about user-visible FS names, FormatPartitionJob
2020-02-13 11:33:40 +01:00
Adriaan de Groot
bacca04695
[partition] Be explicit about what's user visible in SetPartitionFlagsJob
2020-02-13 11:29:45 +01:00
Adriaan de Groot
29894cec6a
[partition] Convenience userVisibleFS()
...
- Mark uses of filesystem-name where it's intentional that they
are user-visible, with a new convenience function.
2020-02-13 11:22:09 +01:00
Adriaan de Groot
dac5516b2c
[partition] Update copyright, coding style
2020-02-13 11:12:22 +01:00
Adriaan de Groot
a0449abab9
[partition] Do not translate filesystem names
...
- Move contents of FSName to KPMHelpers
- Use the new functions from FillGlobalStorage
Needs more use in the rest of the partition module.
2020-02-13 11:06:53 +01:00
Adriaan de Groot
c055e1da49
[partition] Use untranslated name of filesystem
...
- Patch from Gabriel Craciunescu
2020-02-13 09:32:06 +01:00
Adriaan de Groot
399919c49a
[partition] Swap the two implementations of getting partitions
2019-06-24 13:10:45 +02:00
Adriaan de Groot
ecdd09edcd
[partition] Refactor getting partitions from device
...
- Split out into own function
- Prepare for implementation that doesn't use external processes
2019-06-21 21:17:43 +02:00
Adriaan de Groot
5597215d58
[partition] Needs to settle the disks after all the changes
2019-06-20 17:14:14 +02:00
Adriaan de Groot
5a18a6cba9
[partition] Mark this use of "mount" as debugging-only
...
- This call doesn't need to be replaced by the mount helpers
in the partition service, since it's just debug output telling
what *is* mounted.
2019-06-20 17:01:57 +02:00
Adriaan de Groot
f6373561d3
[partition] One more job that uses KPMCore
2019-06-14 23:39:44 +02:00
Adriaan de Groot
9c85537659
[partition] The VG jobs also use KPMCore
...
- Give them a manager just like other KPMCore-based jobs,
so that the privileged helper can be shut off on time.
2019-06-14 23:32:34 +02:00
Adriaan de Groot
042cef0945
[partition] Make kpmcore includes consistent
2019-06-14 23:20:26 +02:00
Adriaan de Groot
c7da99d870
[partition] More includes fixes, "" instead of <>
2019-06-14 23:14:11 +02:00
Adriaan de Groot
e8408cb5b2
[partition] Fix include path type
...
- Don't use #include <> for files in the current source directory.
2019-06-14 22:59:40 +02:00
Adriaan de Groot
4df9bd8917
[partition] Use KPM manager in partitioning jobs
...
- This gives all the partition-changing jobs an easy way to
manage the lifetime of the privileged helper.
2019-06-14 22:51:35 +02:00
Adriaan de Groot
4202126f34
[fsresizer] [partition] Fix build with moved headers
...
- PartitionIterator has moved into libcalamares
- While here, sort and organize #include lines
- Add using to keep code impact small
2019-06-13 12:27:39 +02:00
Adriaan de Groot
54108d2bab
[partition] Fix up logging of jobs
...
- Logging `*it` was printing raw pointers, logging (plain) `it`
needs the specialized logging `operator<<` to DTRT with temporaries.
2019-05-14 05:29:19 -04:00
Adriaan de Groot
53230d73e2
[partition] Replace user-visible MB with MiB
2019-05-09 08:13:58 -04:00
Kevin Kofler
a01d4707e1
[partition] Do not unmount /dev/mapper/live-* in ClearMountsJob
...
src/modules/partition/jobs/ClearMountsJob.cpp
(ClearMountsJob::getCryptoDevices): Skip not only `/dev/mapper/control`,
but also `/dev/mapper/live-*`. Fedora live images use
`/dev/mapper/live-*` internally. We must not unmount those devices,
because they are used by the live image and because we need
`/dev/mapper/live-base` in the `unpackfs` module.
2019-05-06 15:08:10 +02:00
Adriaan de Groot
3533bb3c2d
Merge branch 'master' into issue-1061
2019-04-24 12:26:01 -04:00
Adriaan de Groot
520478847c
Make logging more consistent.
...
- Across all the C++ modules, use Logger::SubEntry for sub/continues
log lines, instead of somewhat-random indent strings.
2019-04-15 09:02:21 -04:00
Adriaan de Groot
df921606b9
[partition] Update copyright headers
...
- Files modified in 2019 by me
2019-04-01 07:55:14 -04:00
Adriaan de Groot
cd545e51b0
[partition] Reduce superfluous logging
2019-03-20 11:26:02 +01:00
Adriaan de Groot
723358e145
[partition] Reduce Transifex warnings
...
- Add a (superfluous, since they don't have their own signals or slots)
Q_OBJECT macro to the VG jobs, to silence a Transifex warning (this
does make sure that the tool knows about the context for the translated
messages)
2019-02-14 16:12:43 -05:00
Adriaan de Groot
0fdc737968
[partition] Fix logging output
...
- Using the assignment-operator just generates blank lines.
- Using QLog with a log-level avoids the cDebug()-style special
handling of warnings and errors (useless here, but may as well
fix code style).
2019-02-11 09:21:43 -05:00
Adriaan de Groot
bb586de056
[partition] Remove some slowdown methods when debugging is off
...
- Running lsblk and mount for debugging purposes can be
skipped when the debugging is going to be suppressed anyway.
This will speed things up just a little for regular users.
2018-10-05 09:41:37 -04:00
Adriaan de Groot
02a6b7dd12
[partition] Log the newly-created partition table
...
- Log individual partitions instead of printing QObject(<ptr>)
2018-10-05 09:41:37 -04:00
Adriaan de Groot
4757496c3d
[partition] Improve partition-UUID logging.
2018-10-05 09:41:37 -04:00
Adriaan de Groot
a33b0c4f24
[partition] Log the flags that are used to create a partition
2018-10-05 07:45:05 -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
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
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
3315df5df1
[modules] Use new convenience logging methods across the board
2018-02-13 11:07:12 +01: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
Andrius Štikonas
2027a5538e
Fix propagation of new partition table to global storage.
2017-12-27 14:11:11 +00:00
Philip
1cffa9fafc
[partition] Rename slots, to avoid recursion
...
- see also https://github.com/calamares/calamares/issues/880
- missed within 7ce52ecda7
2017-12-25 15:50:37 -05:00
Philip
8f32aad3fa
[partition] Rename slots, to avoid recursion
...
- see also https://github.com/calamares/calamares/issues/880
- missed within 7ce52ecda7
2017-12-25 15:48:55 -05:00
Adriaan de Groot
dc255e161e
[partition] Rename slots, to avoid recursion
2017-12-24 03:34:34 -05:00
Andrius Štikonas
806b84973a
Convert CreatePartitionTableJob to KPMcore operation.
2017-12-22 15:25:39 +00:00
Andrius Štikonas
1b3ce39ffb
Convert FormatPartitionJob to KPMcore's CreateFileSystemOperation.
2017-12-22 15:25:39 +00:00
Andrius Štikonas
638117efa0
Cleanup unnecessary kpmcore includes.
2017-12-22 15:25:39 +00:00
Adriaan de Groot
7ce52ecda7
[partition] Rename slots, to avoid recursion
2017-12-22 16:20:35 +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
cc15dd9ec7
Merge branch 'master' into kpmcore-3.2
...
- Pull in Master, merge README, to simplify merging this
branch into master (soon-ish, once kpmcore 3.3 becomes available
in builders)
2017-12-15 07:18:05 -05:00
Adriaan de Groot
55ed2ba4c0
[partition] Introduce convenience translation for progress.
2017-12-14 16:11:46 -05:00
Adriaan de Groot
5c4286eebf
[partition] Switch to convenience function for MiB
2017-12-14 16:11:46 -05:00
Adriaan de Groot
38688bab47
[partition] code style (minor followup to #872 )
2017-12-14 15:55:23 -05:00
Andrius Štikonas
139f5a9e86
Use KPMcore SetPartFlags operation.
2017-12-06 14:51:54 +00:00
Andrius Štikonas
652ffaedd5
Remove unnecessary kpmcore includes.
2017-11-11 21:34:10 +00:00
Andrius Štikonas
1620f6a668
Merge branch 'master' into lvm2
2017-11-11 21:30:49 +00:00