Commit Graph

8449 Commits

Author SHA1 Message Date
Adriaan de Groot
7987cc5727 [partition] Repair test of partition layout
There are asserts in KPMCore that are triggered when
creating a partition with no (table) parent.
2024-08-13 22:00:50 +02:00
Adriaan de Groot
237e3f7066
Merge pull request #2357 from AnInternetTroll/user/luca/xbps-log
packages: add debug logging to xbps
2024-08-12 23:14:30 +02:00
Luca Matei Pintilie
19430fac56
packages: add debug logging to xbps 2024-07-28 15:34:04 +02:00
Adriaan de Groot
5f9b7890c3 [partition] Add a summary message about swapfile 2024-07-24 23:20:43 +02:00
Adriaan de Groot
51c39cdbee [partition] Improve jobDescriptions()
- make the dox match what the function does
- reduce calls to job->description()
2024-07-23 22:37:29 +02:00
Adriaan de Groot
3e885cda19 [libcalamares] Looks like Qt 6.7 supports Interlingue 2024-07-20 23:35:38 +02:00
Adriaan de Groot
3a6f604232 [netinstall] Remove unnecessary $id from schema
The base-URI of the schema is already set; references
that are relative and contain only a fragment (e.g. start with `#`)
resolve against the base-URI, so that's within this document.
Since we already have `definitions` as a key, `#/definitions`
references that sub-schema. We don't need the `$id` settings in
each sub-schema, which messes up the base-URI; it should have been
an `$anchor`, maybe, but isn't necessary after all.
2024-07-20 23:29:00 +02:00
Adriaan de Groot
13ccb51010 [initcpiocfg] Repair schema file 2024-07-20 22:45:00 +02:00
Adriaan de Groot
ec5272ad65 [libcalamares] Prepare for ie (Interlingue) support in Qt 2024-07-20 22:32:46 +02:00
Adriaan de Groot
456bb1b3eb [libcalamares] Mark CommandLine as public, expand API a little 2024-07-07 00:00:11 +02:00
Adriaan de Groot
80ef430185 [shellprocess] Expand example and repair test
- Adding another example command broke the test which checks
  the number of entries in the example script.
- Add a second line of output to the example command, so it makes
  more sense to log it line-by-line.
2024-07-03 23:05:30 +02:00
Adriaan de Groot
e08bd744a8 [users] Repair test after switch to yescrypt 2024-07-03 23:02:37 +02:00
Tj
bee487653a Adjust last usable sector for GPT 2024-07-02 22:54:54 +01:00
Adriaan de Groot
9800edf94e [partition] Translate bootloader location combo box
If you switch languages, and then go to the partition
page, and pick "manual", the combo-box entries would
not be translated until **after** you do something
(e.g. edit a partition).

Now they are re-translated when the language changes.
2024-07-02 23:35:54 +02:00
Adriaan de Groot
8aec50d185 [partition] Ensure bootloader path is saved after manual edit 2024-07-02 23:30:43 +02:00
Adriaan de Groot
e52b220a69 [partition] Repair translation of labels
There was an accumulation of connected slots when the
current device changed (CALAMARES_RETRANSLATE **adds** one).
Instead, extract the translated messages and carry the
necessary information (number of entries, and if just one,
its name) in the ChoicePage object.

Although you can't effectively change the translation /
current language while looking at the ChoicePage, it is
best to be future-proof.
2024-07-02 23:27:11 +02:00
Adriaan de Groot
6ded13a917 [partition] Simplify selectedDevice() 2024-07-02 23:27:11 +02:00
Adriaan de Groot
bf466e0ea4 Changes: document shellprocess verbosity.
FIXES #2155
2024-06-30 23:37:00 +02:00
Adriaan de Groot
98f26d9380 Merge branch 'issue-2155' into calamares 2024-06-30 23:23:46 +02:00
Adriaan de Groot
bbe015e732 [libcalamares] Command verbosity was lost during expansion 2024-06-30 18:05:54 +02:00
Adriaan de Groot
265469c9cd explain-verbose-test 2024-06-30 17:34:44 +02:00
Adriaan de Groot
e6de798228 [libcalamares] Add a test for command-timeout 2024-06-30 16:08:52 +02:00
Adriaan de Groot
8bb6c63931 [libcalamares] Avoid stray space when logging command-output 2024-06-30 16:08:52 +02:00
Adriaan de Groot
091c00e4ef [libcalamares] use test to demonstrate verbose CommandLine 2024-06-30 16:08:52 +02:00
Adriaan de Groot
6969a5e01d [libcalamares] log-as-you-go for verbose commands 2024-06-30 16:08:45 +02:00
Adriaan de Groot
4815bf6963 [libcalamares] Expand runCommand() inline for CommandLine
Since we want to hook up more to the runner, the simplified API
in System::runCommand() is not sufficient.
2024-06-30 15:10:05 +02:00
Lorenzo "Palinuro" Faletra
d75648f326
[users] Use yescrypt instead of sha512
Use yescrypt instead of sha512 when CRYPT_GENSALT is not used and the salt is manually determined.

yescrypt is the default key derivation function in almost every modern distro and grants higher levels of security.

https://www.openwall.com/yescrypt/
2024-06-28 12:55:25 +00:00
Adriaan de Groot
3bbfdef1ce [mount] Split overly-long one-liner 2024-06-25 16:01:42 +02:00
Adriaan de Groot
408cc5a5cf
Merge pull request #2341 from vlinkz/luksswapmount
Fix mounting encrypted swap partition
2024-06-25 15:50:07 +02:00
Adriaan de Groot
ea90ca4118 [partition] Avoid "shadowing" of fields by constructor parameters
Although the standard is clear about what this means, Clang
warns about it, so change names to avoid the warning (and make
it slightly easier to read).
2024-06-24 22:32:19 +02:00
Adriaan de Groot
4bba7ed893 [partition] Remove unused variable (it is shadowed a few lines later) 2024-06-24 22:26:18 +02:00
Adriaan de Groot
a5a602c20e
Merge pull request #2345 from calamares/fix-precheck-encryption
[partition] Fix crash on filesystem changes when encryption is checked
2024-06-24 20:04:08 +02:00
dalto
dbad8704f5 [partition] Fix crash on filesystem changes when encryption is checked 2024-06-23 14:39:29 -05:00
Adriaan de Groot
2756eb2573 [partition] Improve documentation of partition types a little 2024-06-23 18:26:32 +02:00
Adriaan de Groot
ea744a0c0c [partition] On FreeBSD, don't expect the KPMCore test to work 2024-06-20 19:48:47 +02:00
Adriaan de Groot
991be792c0 [rawfs] Do not mark tests on FreeBSD as "must fail" 2024-06-20 19:43:50 +02:00
Adriaan de Groot
3d4b408c93 [rawfs] Read blkid stdout only once, be more clear when there isn't a uuid 2024-06-20 19:38:48 +02:00
Adriaan de Groot
2e825167a3 [rawfs] Don't bother updating mount if this is a test (bogus) run
This improves things when running tests on FreeBSD, which doesn't
have a /proc/mounts to read.
2024-06-20 19:34:27 +02:00
Adriaan de Groot
52cff12c38 [displaymanager] Repair test for gdm3
This was intended to check code for obvious logical
failures, but also stops tests because the gdm
paths don't exist. For testing purposes, create
bogus gdm3 executable in the "target" tempdir.
2024-06-20 19:21:07 +02:00
Adriaan de Groot
81c82ef343 [displaymanager] Look for variant gdm config files
FIXES #2335
2024-06-11 00:21:35 +02:00
Adriaan de Groot
f651fc9bff [initcpiocfg] Allow alternate source file
This is possibly only interesting for testing purposes.
2024-06-10 22:37:55 +02:00
Adriaan de Groot
19b0f28f16 [initcpiocfg] Support additional hooks-munging
FIXES #2200
2024-06-10 22:17:21 +02:00
Victor Fuentes
27b6a5d690
Fix mounting encrypted swap partition 2024-06-03 15:43:49 -04:00
Adriaan de Groot
0d63ebf14f [shellprocess] Apply verbosity from configuration file 2024-05-26 21:32:58 +02:00
Adriaan de Groot
b0614bb79c [libcalamares] Add verbosity to CommandLine
This is the data structure that stores a single
command for execution by the shell. There is no
back-end implementation for verbosity yet.
2024-05-26 21:32:58 +02:00
Adriaan de Groot
f9f888fade [shellprocess] Introduce configuration for verbosity 2024-05-25 22:27:47 +02:00
Adriaan de Groot
461f011521 [libcalamares] Avoid some undesirable overloads
Implicit int -> bool had a comment, which suggests it should just
be deleted from the overload set to avoid possible confusion.
2024-05-14 23:38:05 +02:00
Adriaan de Groot
8a14ddc97c [shellprocess] Allow gs[key] variables in commands 2024-05-14 23:38:05 +02:00
Adriaan de Groot
448633ab02 [contextualprocess] Refer documentation to shellprocess 2024-05-14 21:45:34 +02:00
Adriaan de Groot
5d19b875a1 [keyboard] Prefer layout "it" over "it2" for Italian
FIXES #2326
2024-05-14 21:31:12 +02:00
Adriaan de Groot
5a56188a51
Merge branch 'calamares' into non-ascii 2024-04-28 23:17:11 +02:00
Adriaan de Groot
616a97f60e
Merge pull request #2324 from parchlinux/persian-keyboard
Fixed the persian keyboard problem after installing.
2024-04-28 23:13:16 +02:00
Adriaan de Groot
da2ed4728a
Merge pull request #2314 from eugenesan/i2310
Refactor crypto_keyfile addition in fstab module and skip it when it's missing
2024-04-28 23:09:56 +02:00
Adriaan de Groot
e6e46f1ebd [partition] Polishing, formatting 2024-04-28 23:07:56 +02:00
dalto8
1c1ade6816
Merge pull request #2316 from SixK/calamares
[partition] add option for the encryption checkbox to be checked by default
2024-04-28 15:58:43 +00:00
Adriaan de Groot
1ead64bd5b
Merge pull request #2322 from calamares/fixalongsidecrash
[partition] Don't crash when going back without selecting a partition
2024-04-28 17:53:57 +02:00
Adriaan de Groot
4440bf3bfc [partition] Simplify collecting partition descriptions 2024-04-28 17:45:51 +02:00
Adriaan de Groot
4c8e91dc70 [libcalamares] Simplify collecting the maintainers info 2024-04-28 17:38:35 +02:00
Adriaan de Groot
d6c6b7c64b [libcalamares] Remove the commented-out sponsor info 2024-04-28 17:36:27 +02:00
Adriaan de Groot
bdbeadcd65 [partition] Move fstab-handling
This was declared in osprober, but implemented elsewhere.
Move it to the "right" source file, add tests.
While here, repair the listing of fstab entries
(invalid entries were not stripped).
2024-04-28 17:22:16 +02:00
Adriaan de Groot
93094948fa [partition] Actually remove invalid fstab entries 2024-04-28 17:01:07 +02:00
Adriaan de Groot
35990d9a6b [libcalamares] Massage size types to avoid conversion warning 2024-04-28 17:01:07 +02:00
Adriaan de Groot
6dc83fb277 [libcalamares] Deal with Qt5/6 differences in count() 2024-04-28 17:01:07 +02:00
Adriaan de Groot
8c66a558d5 [welcome] Use different color-name
The QColorConstants are deprecated, use other names instead
(this avoids a compile warning from clang against Qt5).
2024-04-28 14:38:14 +02:00
Adriaan de Groot
5a90e0bc6a [users] Remove stray ; 2024-04-28 14:37:19 +02:00
Ivan Borzenkov
f8c6d2c487 add layouts from xkb/ruses/base $nonlatin 2024-04-27 14:26:30 +03:00
Sohrab Behdani
246aa3e217 Fixed Persian Keyboard problem after installing 2024-04-27 13:29:03 +03:30
Sohrab Behdani
cae7b9e868 Added additional keyboard layout for Persian 2024-04-27 10:46:41 +03:30
dalto
cf9837f48c [partition] Don't crash is when going back without selecting a partition 2024-04-22 15:47:28 -05:00
Eugene San (eugenesan)
a7e86e8aff Make sure we do not use missing crypto_keyfile in fstab module
Replaces original commit with refactoring
Refactoring will have to wait
2024-04-17 19:55:20 -07:00
Adriaan de Groot
19aa96fe54 [packagechooser] Repair build
This was broken by clang-format, so mark this weird unformattable
block as don't format.
2024-04-17 11:08:39 +02:00
Adriaan de Groot
00ac9a6cee [welcome] Apply newer clang-formatting 2024-04-17 10:55:24 +02:00
Adriaan de Groot
92a5d07ed7 [partition] Apply newer clang-formatting 2024-04-17 10:55:21 +02:00
Adriaan de Groot
5bf787c1a5 [packagechooser] Apply newer clang-formatting 2024-04-17 10:55:20 +02:00
Adriaan de Groot
011483967d [machineid] Apply newer clang-formatting 2024-04-17 10:55:19 +02:00
Adriaan de Groot
5f293fb40b [locale] Apply newer clang-formatting 2024-04-17 10:55:18 +02:00
Adriaan de Groot
a6cfc79a92 [license] Apply newer clang-formatting 2024-04-17 10:55:18 +02:00
Adriaan de Groot
afd3ed86d9 [keyboard] Apply newer clang-formatting 2024-04-17 10:55:18 +02:00
Adriaan de Groot
9654f487ef [fsresizer] Apply newer clang-formatting 2024-04-17 10:55:17 +02:00
Adriaan de Groot
2100d273ce [finished] Apply newer clang-formatting 2024-04-17 10:55:16 +02:00
Adriaan de Groot
df09d7ae89 [calamares] Apply newer clang-formatting 2024-04-17 10:52:32 +02:00
Adriaan de Groot
8408a3284b [libcalamaresui] Apply newer clang-formatting 2024-04-17 10:51:25 +02:00
Adriaan de Groot
4625208ba2 [libcalamares] Apply newer clang-formatting 2024-04-17 10:50:38 +02:00
Adriaan de Groot
cca2cd3260 [libcalamares] Remove unnecessary QApplication 2024-04-17 10:11:40 +02:00
Penvern Vincent
8469fbd2e8 Fix Next button behviour for all combinations of
enableLuksAutomatedPartitioning and preCheckEncryption configure file
variables
2024-04-16 18:08:11 +02:00
Adriaan de Groot
2e96184406 [partition] Simplify logic, remove dead code 2024-04-16 15:46:09 +02:00
Adriaan de Groot
0a0e647be3 [hostinfo] Do not name unused parameter 2024-04-16 15:42:59 +02:00
Adriaan de Groot
370e75fc71 [libcalamares] Repair apidox for Job 2024-04-16 15:41:12 +02:00
Adriaan de Groot
8ff3849820 [calamares] Switch test-application to use JobQueue
For better realism, use JobQueue to run the jobs of a module,
rather than doing it by hand in a similar-kind-of-loop.
2024-04-16 15:07:58 +02:00
Adriaan de Groot
bf09dfc6af [libcalamares] Suppress sleep / suspend during installation 2024-04-16 15:07:58 +02:00
demmm
f8094bbbbb [localeq] tiny correction map-qt6.qml
api.geonames is not https ready
2024-04-16 12:28:30 +02:00
Penvern Vincent
5ac23cd3d6 Remove m_preCheckEncryption variable from ChoicePage 2024-04-15 22:44:42 +02:00
Penvern Vincent
cc835cee6f do not use Global Storage for variable PreCheckEncryption, other modules
don't have to know if this variable is set to true or false
2024-04-15 16:34:35 +02:00
Adriaan de Groot
30ca0bfa45 [locale] Fix TZ assignments for various locations
- Tehran (UTC+3.5)
- Muscat (UTC+4)
- Dubai (UTC+4)
2024-04-14 22:58:22 +02:00
Adriaan de Groot
51e05241fe [users] Use Calamares command-running API 2024-04-14 22:15:13 +02:00
Adriaan de Groot
dfe07a51a3 [users] Only run AD job if it is enabled (user choice) 2024-04-14 21:41:57 +02:00
Adriaan de Groot
0ef3842da6 [users] Factor out show/hide of AD controls
While here, expand documentation a little.
2024-04-14 21:33:39 +02:00
Adriaan de Groot
f674214741 [user] Rename members to emphasize these are *admin* credentials 2024-04-14 21:07:31 +02:00
Adriaan de Groot
c61399bc8a [users] Apply coding style to unrelated files 2024-04-14 09:53:56 +02:00
Adriaan de Groot
28a10cf8c3 [users] Use more structured data than QStringList
While here, apply coding style.
2024-04-14 09:53:27 +02:00