dalto
4fe5f1c06f
[umount] Add support for umount to be an emergency module
2021-12-31 08:06:13 -06:00
Adriaan de Groot
4e61f24960
[partition] Tidy up iso9660 detection
2021-12-25 18:27:13 +01:00
Adriaan de Groot
1c853941dc
Merge pull request #1863 from demmm/calamares
...
[luksopenswaphookcfg] set plugin name according to module name
2021-12-24 17:16:06 +01:00
demmm
7cfa654a68
[luksopenswaphookcfg] set plugin name according to module name
...
either this, or have all distros adjust settings.conf from luksopenswaphookcfg to luksopenswaphook
2021-12-22 22:17:13 +01:00
Adriaan de Groot
7864ab5cfa
Docs: link to GPLv3+
2021-12-21 01:02:13 +01:00
Adriaan de Groot
905f1241e3
Merge pull request #1861 from dalto8/readme-emergency
...
Update modules readme for Python emergency modules support
2021-12-19 23:53:35 +01:00
dalto
f0aba5db96
Update modules readme for Python emergency modules support
2021-12-19 15:29:42 -06:00
Adriaan de Groot
480fe56ae3
README, link to actual GPL 3.0 license
...
FIXES #1859
2021-12-19 14:03:21 +01:00
demmm
728315d3cc
README, link to actual GPL 3.0 license
...
fixing https://github.com/calamares/calamares/issues/1859
2021-12-19 12:54:39 +01:00
Adriaan de Groot
da72e815dc
[luksopenswaphookcfg] Fix build, missing include
2021-12-18 00:43:30 +01:00
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