Adriaan de Groot
0145f6fe7d
CMake: language stats
2021-12-18 00:38:58 +01:00
Calamares CI
cfeba736d5
i18n: [python] Automatic merge of Transifex translations
2021-12-18 00:38:13 +01:00
Calamares CI
be18e51bc9
i18n: [calamares] Automatic merge of Transifex translations
2021-12-18 00:38:06 +01:00
Adriaan de Groot
7fc2859f23
[luksopenswaphookcfg] Port to C++
...
Merge pull request #1845 from calamares/issue-1659
FIXES #1659
FIXES #1644
2021-12-17 20:31:05 +01:00
Adriaan de Groot
587a18a6fa
[partition] Use runCommand() for future-proofing
2021-12-14 12:50:27 +01:00
Adriaan de Groot
043619cd4b
Merge branch 'improve-partition-reporting' into calamares
...
This strips out the === from KPMCore reports so that they are
more readable when presented in the error dialog. Introduces
some code-conveniences, too, but that is all under-the-hood.
2021-12-13 20:03:38 +01:00
Adriaan de Groot
f04394d014
[partition] Improve rendering of KPMCore errors
2021-12-13 20:02:52 +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
c5573a1997
[partition] Add non-const lvalue overload for execute()
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
dc7a1e43b7
[partition] Add helper for running a KPMCore operation
...
Most *partition* module jobs run an operation and turn that into
a JobResult -- ok if it succeeds, and with the report text otherwise.
Factor it out into a separate method that can be used as shorthand.
2021-12-13 20:02:52 +01:00
Adriaan de Groot
53c90516b2
Merge branch 'issue-1851' into calamares
...
FIXES #1851
2021-12-13 16:58:59 +01:00
Adriaan de Groot
d3ed5663d0
[preservefiles] Add a schema-file
2021-12-13 16:56:07 +01:00
Adriaan de Groot
778c2855f4
[preservefiles] Introduce the notion of optionally-preserved files
2021-12-13 16:34:38 +01:00
Adriaan de Groot
445ed870cc
[preservefiles] Simplify code to help gcc warnings
2021-12-13 15:53:42 +01:00
Adriaan de Groot
3be52f8b37
[preservefiles] Expand tests with reading some existing config-items
2021-12-13 15:53:42 +01:00
Adriaan de Groot
a1b7ba0dc5
[preservefiles] Accessor for item-type (needed for tests)
2021-12-13 15:44:07 +01:00
Adriaan de Groot
8b5e49d980
[preservefiles] Add (stub) tests
2021-12-13 15:07:24 +01:00
Adriaan de Groot
90f6ea1fc8
[preservefiles] polish the documentation
2021-12-13 15:07:24 +01:00
Adriaan de Groot
238672ef78
[preservefiles] Split file-items into separate header
...
Put the Item class in a separate header; give it functionality
to create itself from Variants (e.g. from the configuration data)
and to run itself (do whatever the item is supposed to do).
This makes the polymorphic approach unnecessary: we just have
items that are sufficiently smart.
This moves do-a-thing to the Item, while the Job now has one
job: be a loop around creating Items and running items.
2021-12-13 15:05:05 +01:00
Adriaan de Groot
b1ecbb4151
[preservefiles] Start cleanup of structure, polymorphism
2021-12-13 15:05:05 +01:00
Adriaan de Groot
795b2c88e8
Merge pull request #1852 from killajoe/patch-1
...
[preservefiles] Fix typo in preservefiles.conf
2021-12-13 00:19:34 +01:00
Johannes Kamprad
becb1d5710
Update preservefiles.conf
2021-12-12 01:22:22 +01:00
arcolinuxz
5b225cf960
[preservefiles] Put the logs in /var/log
2021-12-11 23:58:23 +01:00
Adriaan de Groot
6261f8a5cb
Changes: post-release housekeeping
2021-12-11 15:33:22 +01:00
Adriaan de Groot
132ebd2c2d
[networkcfg] NetworkManager files are UTF-8 encoded
...
The filenames don't matter, but the contents of the file are also
UTF-8, and depending on the default encoding of the Python
interpreter, this can fail on non-ASCII characters in the
file. Set the encoding explicitly while reading and writing
the NetworkManager configuration files.
FIXES #1848
2021-12-11 15:12:51 +01:00
Adriaan de Groot
db86c24638
Changes: pre-hotfix-release housekeeping
2021-12-11 13:23:23 +01:00
Adriaan de Groot
03da766b39
[partition] Keep 64-bit integers for swap sizes
...
FIXES #1849
2021-12-11 13:19:08 +01:00
Adriaan de Groot
adaed52818
Changes: post-release housekeeping
2021-12-10 17:01:42 +01:00
Adriaan de Groot
7ac42b5f40
[umount] Tests don't like an empty config
...
- modules with no configuration should be marked 'noconfig',
but umount is special: it has no **useful** configuration
(maybe no **non-deprecated** configuration), but isn't
marked 'noconfig' **yet**.
2021-12-10 16:44:01 +01:00
Calamares CI
3cdb019de7
i18n: [calamares] Automatic merge of Transifex translations
2021-12-10 15:55:58 +01:00
Adriaan de Groot
b4afedc79e
Changes: pre-release housekeeping
2021-12-10 15:46:11 +01:00
Adriaan de Groot
3870851074
[luksopenswaphookcfg] Remove Python implementation
2021-12-08 14:35:52 +01:00
Adriaan de Groot
046a228d62
[luksopenswaphookcfg] Expand tests with lines more-closely tailored to the actual file-format
2021-12-08 14:25:03 +01:00
Adriaan de Groot
2c20a00cc3
[luksopenswaphookcfg] Read GS for finding LUKS config
2021-12-08 14:12:25 +01:00
Adriaan de Groot
45d6eb36fb
[luksopenswaphookcfg] Extend info with btrfs subvol
...
This is a C++-ification of e8936392
from dalto8 . Add a line
for options to the empty-file-fallback.
2021-12-08 14:12:25 +01:00
Adriaan de Groot
7ea21663ca
[luksopenswaphookcfg] Partial implementation in C++
...
- Futz a bit with the string replacements -- do not assume #
will introduce a comment half-way through a line.
2021-12-08 14:12:20 +01:00
Adriaan de Groot
5ca029df25
[luksopenswaphookcfg] Start a C++ port
...
- this module needs work to handle BTRFS special-cases *anyway*
- limited in scope, few options: port it while doing the
special-cases
So far, this is just a C++ stub.
SEE #1659 #1644
2021-12-08 14:12:20 +01:00
Adriaan de Groot
bc2713ccbb
[libcalamares] Add string functions for lstrip() and rstrip()-like
2021-12-08 14:08:37 +01:00
Adriaan de Groot
bb948c47dc
[fstab] Cut the example btrfs flags to 'defaults'
...
Testing shows that the flags can influence -- maybe cause -- data
corruption when noatime is set.
FIXES #1846
2021-12-08 13:06:53 +01:00
Adriaan de Groot
fa29ae2c5e
Merge branch 'reduce-warnings' into calamares
2021-12-08 01:02:32 +01:00
Adriaan de Groot
043bdc36d6
Changes: document contributors
2021-12-08 01:02:27 +01:00
Adriaan de Groot
f0eb7ffbda
[partition Untangle, Warnings--
...
The translations apply to labels and a tooltip, which depends on
the partition-table type. Move the strings together and make
the whole range of the switch explicitly.
2021-12-08 00:59:20 +01:00
Adriaan de Groot
e8ca298712
[partition] Reduce warnings
2021-12-08 00:15:01 +01:00
Adriaan de Groot
13700b18c8
[partition] Warnings--
...
- remove superfluous `break`
- massage types around partition sizes
2021-12-08 00:06:17 +01:00
Adriaan de Groot
1197d8c750
[interactiveterminal] Warnings-- with KF5 5.86-or-later
2021-12-07 18:19:32 +01:00