abalfoort
9ca763127d
Fix issue 1963: label encrypted partitions
2022-06-07 17:20:56 +02:00
Adriaan de Groot
f302bd8854
Merge branch 'calamares' into work-3.3
2022-04-27 10:44:42 +02:00
Adriaan de Groot
5bff26e1e0
[partition] Display partition label and path if set
...
Setting labels (e.g. in manual partitioning) landed some time
ago, but the progress display still shows a raw device path.
Make it more expressive.
FIXES #449
FIXES #540
2022-04-25 16:06:24 +02:00
Adriaan de Groot
aedb55ea36
[partition] Require modern KPMCore
2022-03-21 23:44:20 +01:00
Adriaan de Groot
4fe55533d7
[partition] Log in more human-readable form
2022-03-01 14:37:52 +01:00
Adriaan de Groot
7e51731167
[partititon] Slightly better debug-logging for automount
2022-03-01 13:52:50 +01:00
Adriaan de Groot
cf913b87ff
[partition] Apply coding style
...
This applies the new(er) style to the whole module,
rather than just the files that recently changed.
2022-02-01 16:35:19 +01:00
Adriaan de Groot
5e4866c439
[partition] Simplify ClearTempMounts
...
- use the shared function for reading mtab entries
2022-01-18 13:22:20 +01:00
Adriaan de Groot
2aaaabe152
[partition] Set bigtime on XFS filesystems
...
FIXES #1874
2022-01-17 14:50:43 +01:00
Adriaan de Groot
07354a26a9
[partition] Simplify debug calls to executables
...
- Use the Calamares support-functions for running lsblk and mount
(these might need to have privilege support if Cala is not
running as root, so this is future-proofing)
2021-12-13 20:02:52 +01:00
Adriaan de Groot
fdf0f208f0
[partition] Use lvalue-overload of execute() convenience
...
- These jobs may take a long time, and report progress; we need
the operation around to be able to connect the signals and slots
2021-12-13 20:02:52 +01:00
Adriaan de Groot
6680584724
[partition] Use convenience function execute()
...
This job needs the lvalue-overload of execute() because it needs to
call a method on the operation after execute() finishes successfully.
2021-12-13 20:02:52 +01:00
Adriaan de Groot
b8ce21d572
[partition] Use convenience function for running operations
2021-12-13 20:02:52 +01:00
Adriaan de Groot
1356012fb4
[partition] With rvalue, code becomes even more compact
2021-12-13 20:02:52 +01:00
Adriaan de Groot
8bb2c5fc6b
[partition] Use convenience-method for running operation
2021-12-13 20:02:52 +01:00
Adriaan de Groot
149f3ff3fe
[partition] Reduce warnings about shadowed variables
2021-12-06 14:52:33 +01:00
Adriaan de Groot
d89553a777
[partition] Avoid problems with MessageAndPath in containers (drop const)
2021-12-06 14:46:26 +01:00
dalto
f5b882a075
[partition] Remove setState call to resolve compat issue with older kpmcore
2021-11-18 13:36:23 -06:00
Adriaan de Groot
ece1e338e0
Merge pull request #1822 from dalto8/zfs-wip
...
[zfs] Support for installing to root-on-ZFS
2021-11-17 12:20:34 +01:00
Adriaan de Groot
5a4e2b73ab
[libcalamares][partition] Give RedactedName a convert-to-QString
...
- use hex-trailer
- while here, convert DebugRow to use a copy rather than a reference,
to avoid dangling references when applied to temporaries
- convert *partition* module to use the RedactedNames
2021-11-16 15:22:04 +01:00
Adriaan de Groot
7cc84b89be
[partition] Clarify the meaning of the various UUIDs in debug-output
2021-11-16 14:15:00 +01:00
Adriaan de Groot
4db4e983e3
[partition] Don't format tables of attributes in source
2021-11-16 14:04:00 +01:00
dalto
24a376493b
[partition] Add support for manually creating a partition for zfs
2021-11-15 18:41:34 -06:00
Adriaan de Groot
cd0785164b
[partition] Fix compatibility with Qt 5.12
2021-11-09 15:57:20 +01:00
Adriaan de Groot
a0cb4b63a8
[partition] Fix build for old Qt
2021-11-03 11:14:22 +01:00
Adriaan de Groot
7b45793b60
[partition] Allow exceptions when closing /dev/mapper
...
- some names should not be closed, like "control"
- allow a list of names to be added which should not be closed
2021-11-02 15:26:25 +01:00
Adriaan de Groot
1410157356
[partition] Simplify and document ClearMounts
...
- note that the job indiscriminately closes all LUKS and LV
- don't hang on to lists we don't need
2021-11-02 11:55:13 +01:00
Adriaan de Groot
ca4a187d1a
[partition] Extract the get-PV-groups code to its own function
...
- get the list (once)
- move the lambda to a named function for readability
2021-11-02 11:18:14 +01:00
Adriaan de Groot
7fa02fd41c
[partition] Extract the get-LVM-volumes code to its own function
2021-11-02 11:10:09 +01:00
Adriaan de Groot
2a1ec84c87
[partition] Don't hang on to pointer longer than needed
2021-11-02 11:03:10 +01:00
Adriaan de Groot
04b119b051
[partition] Crypto device-list needn't be a member, either
2021-11-02 00:25:37 +01:00
Adriaan de Groot
f49389a408
[partition] Fix logic errors in stringification of MessageAndPath
2021-11-02 00:09:52 +01:00
Adriaan de Groot
c322eaa430
[partition] Fix translation issues
...
- Strings were being used as logical values, and then logged
(which should be in English) and also used in the UI (which
should be localized). Replace with a MessageAndPath class,
used only locally, that defers the translation until called-
upon explicitly.
- Replace some VG stuff with similar calls to apply().
2021-11-01 23:59:39 +01:00
Adriaan de Groot
e56158f5b4
[partition] Generate partition paths with /dev/
...
Returning partition full-paths instead of only the block-device-name
simplifies later code -- which would prepend /dev/ to the block-
device-name and umount that.
2021-11-01 20:54:48 +01:00
Adriaan de Groot
6c2b2b0daa
[partition] Factor out loops, document return values
...
- the tryX() functions weirdly return a string that is used for
debug-logging. Document that. The untranslated string is
later used for user-facing messages. Mark that as FIXME.
- factor out the loop-over-names-and-append to news, because that
makes the overall story of what is happening hard to read.
- all calls to tryCryptoClose() called tryUnmount() first, so
put that call inside tryCryptoClose(), so the interface is simpler.
2021-11-01 20:54:18 +01:00
Adriaan de Groot
0c84a87c67
[partition] Make internal methods static
2021-11-01 20:28:47 +01:00
Adriaan de Groot
105517fed7
[partition] Coding style
2021-11-01 20:24:47 +01:00
Adriaan de Groot
ac34cfadea
[partition] Factor out finding the swap-partitions
2021-11-01 20:23:49 +01:00
Adriaan de Groot
3e58639a68
[partition] Improve logging in ClearMountsJob
...
- mark internal bits as static
- explain what is being looked-for
SEE #1817
SEE #1564
2021-11-01 16:44:28 +01:00
dalto
13a2d25b24
Add separate functions for zfs
2021-10-29 16:54:09 -05:00
dalto
be47b5e59c
Fix for zfs partition deletion
2021-10-23 13:40:47 -05:00
Adriaan de Groot
56ecf01dea
Merge branch 'pr-1667' into calamares
...
Allow user-selection of FS type
FIXES #1667
2021-07-05 12:31:58 +02:00
Adriaan de Groot
6936915dd6
[partition] Fix logging (type of debug stream changed)
2021-06-18 17:41:22 +02:00
Adriaan de Groot
7deb6c0e9e
[partition] Improve logging in clearmounts job
2021-06-18 16:18:06 +02:00
Adriaan de Groot
66f96e339c
[libcalamares] Introduce cVerbose() convenience macro (like cDebug())
2021-06-18 16:01:04 +02:00
Adriaan de Groot
17cc0470da
[partition] Log names of partition flags, not just a number
2021-06-18 15:54:51 +02:00
Adriaan de Groot
bf7eed9342
[partition] Tidy debug output when creating table
2021-06-18 15:50:13 +02:00
Adriaan de Groot
d8a862ec82
[partition] Use Q_EMIT
2021-06-18 11:31:53 +02:00
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