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