Adriaan de Groot
814deec714
i18n: update translations
...
- Removed ro_RO (no translators, no strings, overlap with language ro)
- Removed bqi (no translators, no strings)
2025-08-03 16:50:37 +02:00
Calamares CI
690ac62227
i18n: [calamares] Automatic merge of Transifex translations
2025-08-03 16:05:05 +02:00
Adriaan de Groot
0949c7eb32
CMake: post-release housekeeping
2025-07-22 21:46:36 +02:00
Adriaan de Groot
8b0feb1852
Changes: introduce a new changelog file for 3.4
2025-07-22 00:06:11 +02:00
Adriaan de Groot
78d4208a03
CI: check GPG key availability early
2025-07-21 18:32:10 +02:00
Adriaan de Groot
cc2ee0fefa
users: repair test
...
In 6ff2ca450b , a new group was added to the example
configuration, but the test was not updated.
2025-07-21 17:51:28 +02:00
Adriaan de Groot
283b907668
CMake: stop treating CMakeLists.txt as a module subdirectory
...
Filter out some known non-a-directory files. This makes
CMake-time output more readable.
2025-07-21 17:45:35 +02:00
Adriaan de Groot
3eaf3a2eda
CMake: switch default build to Qt6
2025-07-21 17:19:30 +02:00
Calamares CI
fbfde8a120
i18n: [python] Automatic merge of Transifex translations
2025-07-21 17:12:50 +02:00
Calamares CI
7643dc12f6
i18n: [calamares] Automatic merge of Transifex translations
2025-07-21 17:12:50 +02:00
Adriaan de Groot
cd70293e27
CMake: pre-release housekeeping
...
Switch the minor number to 4, just as an indicator "this is from
Codeberg".
2025-07-21 17:09:11 +02:00
Adriaan de Groot
b19dad0e6c
AUTHORS: update authors list
2025-07-21 17:05:46 +02:00
Adriaan de Groot
3b9ef5254b
Merge pull request 'Update Readme' ( #2446 ) from nebras/calamares:readme into calamares
...
Reviewed-on: https://codeberg.org/Calamares/calamares/pulls/2446
2025-07-18 23:36:40 +02:00
Adriaan de Groot
4e744d0e91
Merge pull request 'Update modules/unpackfsc/UnsquashRunner' ( #2445 ) from kelmo/calamares:squashfs-unpackfsc into calamares
...
Reviewed-on: https://codeberg.org/Calamares/calamares/pulls/2445
2025-07-18 23:21:09 +02:00
Adriaan de Groot
5a936f69b2
Merge pull request 'Add erofs support to unpackfsc module.' ( #2444 ) from kelmo/calamares:erofs-unpackfsc into calamares
...
Reviewed-on: https://codeberg.org/Calamares/calamares/pulls/2444
Reviewed-by: Adriaan de Groot <groot@kde.org >
2025-07-18 23:10:06 +02:00
nebras
1f1e324a17
Update Readme
...
fixes broken links caused by migration, and change matrix link to matrix.to
2025-07-17 00:07:48 +02:00
Kel Modderman
3bb43aaf7f
Fix typo in variable name: s/updateUIEveryNLinex/updateUIEveryNLines/
...
Signed-off-by: Kel Modderman <kelvmod@gmail.com >
2025-07-14 09:32:50 +10:00
Kel Modderman
e3dce70aee
Fix typo in variable name: s/updateUIEveryNLinex/updateUIEveryNLines/
...
Signed-off-by: Kel Modderman <kelvmod@gmail.com >
2025-07-14 09:32:16 +10:00
kelmo
cd7aa1758a
Update modules/unpackfsc/UnsquashRunner
...
Co-locate and give the progress reporting variable names more descriptive names.
When inode stats cannot be obtained via unsquashfs -s, report the full command
including source file.
Signed-off-by: Kel Modderman <kelvmod@gmail.com >
2025-07-12 15:45:02 +10:00
kelmo
819ec9214c
Add verbose descriptions of EROFS and SquashFS to unpackfsc.conf.
...
Signed-off-by: kelmo <kelvmod@gmail.com >
2025-07-12 08:48:27 +10:00
kelmo
5f09d54050
Co-locate and give the progress reporting variable names more descriptive names.
...
Signed-off-by: kelmo <kelvmod@gmail.com >
2025-07-12 08:11:36 +10:00
kelmo
b5431f5466
When inode stats cannot be obtained via dump.erofs -s, report the full command including source file.
...
Signed-off-by: kelmo <kelvmod@gmail.com >
2025-07-12 07:42:14 +10:00
kelmo
f6b64e79fa
Update copyright text of ErofsRunner.{h,cpp} to correctly reflect contributer.
...
Signed-off-by: kelmo <kelvmod@gmail.com >
2025-07-12 07:34:57 +10:00
kelmo
ac93838ea7
Add erofs support to unpackfsc module.
...
Signed-off-by: kelmo <kelvmod@gmail.com >
2025-07-09 20:22:14 +10:00
dalto
274996f7c8
Merge pull request '[initcpiocfg] Remove crc32c_intel which is no longer needed' ( #2436 ) from remove-crc32c into calamares
...
Reviewed-on: https://codeberg.org/Calamares/calamares/pulls/2436
2025-05-28 17:26:43 +02:00
dalto
9e7be34703
[initcpiocfg] Remove crc32c_intel which is no longer needed
2025-04-30 07:42:18 -05:00
Adriaan de Groot
6ff2ca450b
[users] Add a configurable group for no-password login
2025-04-15 15:26:01 +02:00
Adriaan de Groot
824d04f4de
CI: enable a simple build.sh - build-defaults-simply script
2025-04-15 15:18:35 +02:00
Adriaan de Groot
40799f3c8d
Merge branch 'codeberg-migration' into calamares
2025-04-15 14:51:28 +02:00
Adriaan de Groot
f8f50cbb60
Documentation: update more references to the forge
2025-04-15 14:51:03 +02:00
Adriaan de Groot
8e5276b523
Merge pull request #2447 from Neixen911/calamares
...
[users] Add a choice to display autologin checkbox
2025-04-15 13:30:35 +02:00
Adriaan de Groot
fefbb28cc0
CMake: update URLs and domain information
2025-04-15 13:03:38 +02:00
Adriaan de Groot
124f6cd374
Documentation: update URLs
2025-04-15 13:01:03 +02:00
Adriaan de Groot
5704e780fe
CI: Update release-announcement instructions
...
I don't see a releases page on Codeberg, leave the
instructions generic for now.
2025-04-15 13:00:24 +02:00
Adriaan de Groot
bc22bf37ba
CI: remove AppImage script
...
This was a possibly-interesting development 5 years ago,
but it isn't used at all.
2025-04-15 12:53:23 +02:00
Neixen911
66ffc74df8
[users] Set displayAutologin to true by default
...
To match the existing behavior, the setting displayAutoLogin have to
be set to true bt default. This new setting is added to
users.schema.yaml too.
2025-04-09 09:53:55 +02:00
Adriaan de Groot
bd4165a280
*: update documentation links from wiki to site
2025-04-07 21:15:52 +02:00
Adriaan de Groot
32ed7c47ba
fixup-policykit
2025-04-07 21:10:08 +02:00
Neixen911
ebdcce11eb
[users] Add a setting to displayAutologin
...
To add this new setting optionnal, a variable has need to be created
in the file users.conf. This variable can be modified and it changes
directly if the autologin checkbox is show or not.
2025-04-04 10:11:16 +02:00
dalto8
8b27bb6cbd
Merge pull request #2448 from ptr1337/drop-orig
...
bootloader: Drop bootloader.orig file
2025-04-03 16:42:14 +00:00
Peter Jung
7e9af665b5
bootloader: Drop bootloader.orig file
...
Signed-off-by: Peter Jung <admin@ptr1337.dev >
2025-04-03 18:39:10 +02:00
Neixen911
eceee2ac7f
[users] Add a choice to display autologin checkbox
...
By default, the autologin checkbox is display to the user and he can
choose if he wants to enable it or not. By adding a variable to display
the checkbox or not, this checkbox can be not displaying to the user and
avoid him to change it.
2025-04-03 16:51:46 +02:00
Adriaan de Groot
296be440cc
Merge pull request #2445 from ArrayBolt3/arraybolt3/fix-grub-d
...
[grubcfg] Fix /etc/default/grub.d config file name
2025-03-23 22:01:18 +01:00
Adriaan de Groot
cad4f4476e
Merge pull request #2422 from ArrayBolt3/arraybolt3/multi-firmware-boot
...
Hybrid bootloader (BIOS+UEFI) installation support
2025-03-23 22:00:43 +01:00
Aaron Rainbolt
5a47a6fc8b
[grubcfg] Fix /etc/default/grub.d config file name
...
Under at least Debian, files under /etc/default/grub.d that don't carry
a file name extension of '.cfg' are ignored. Change the filename used
when grubcfg's prefer_grub_d option is set to 'true' to
00calamares.cfg, so that it is detected properly.
2025-03-23 14:56:32 -05:00
Aaron Rainbolt
4e09e1ff00
[partition] Add hybrid bootloader compatible partitioning mode
...
Some users may want to install their system in a way that it can be
booted with both BIOS and UEFI firmware. This requires installing both
BIOS and UEFI bootloaders. This commit adds the ability to
automatically partition a disk in a way that is compatible with this
setup.
2025-03-05 15:24:22 -06:00
Aaron Rainbolt
d29088e15d
[bootloader] Add hybrid GRUB installation support
...
Some users may want to install their system in a way that it can be
booted with both BIOS and UEFI firmware. This requires installing both
BIOS and UEFI bootloaders. This commit adds the ability to do this
with GRUB.
2025-03-05 15:22:01 -06:00
Adriaan de Groot
9a75e52404
[license] Repair explanatory URLs
...
The screenshot is no longer available, adapt KaOS
repository URL.
2025-03-04 10:20:15 +01:00
Adriaan de Groot
d9842f07e1
[man] Adjust URL and mention the session.log
2025-03-04 10:09:59 +01:00
Adriaan de Groot
107ba19dfe
[calamares] Update documentation and donation URLs
...
The ones in branding are just an example.
2025-03-04 09:54:08 +01:00
Adriaan de Groot
e524f48bbe
PolicyKit: Replace GH by Calamares' own domain
2025-03-04 09:47:44 +01:00
Adriaan de Groot
12289ef230
Changes: typo- and plurals-fixes all over
2025-03-01 19:56:00 +01:00
Adriaan de Groot
1093881da8
Changes: credits for keyboard feature
2025-02-25 22:45:51 +01:00
Adriaan de Groot
886c0c191c
[keyboard] Simplify construction of gsettings-command
...
- Factor out and document the sudo-arguments part
- Factor out the running-gsettings part up to setting keys
in the input-sources section
- Improve constness
- Add the key-value parts only at the point-of-call.
2025-02-25 22:42:06 +01:00
Adriaan de Groot
e357b216c9
[keyboard] Replace complicated list-values
...
- Every entry is only interested in a value for xkb, so
put the full strings of the xkb-values and drop the intermediate
state of a list-of-pairs.
- Square-bracket the list before use.
2025-02-25 22:23:42 +01:00
Adriaan de Groot
461322bba3
[keyboard] Use QStringList methods and convenience to build the "[list]"
2025-02-25 22:11:23 +01:00
Adriaan de Groot
bef9d6d143
[keyboard] Don't make unnecessary copies
2025-02-25 22:05:21 +01:00
Adriaan de Groot
8c51d35a2d
[keyboard] Simplify sudo arguments
...
- Don't use m_ for local variables
- GNU sudo understands numeric UIDs
- Calculate DBUS path only once
- Prefer const
2025-02-25 22:04:46 +01:00
Adriaan de Groot
700b725c3b
[keyboard] Apply code formatting
2025-02-25 21:37:50 +01:00
Adriaan de Groot
dfc5210bab
Merge pull request #2435 from SixK/calamares
...
Handle Keyboard on Ubuntu 24.10+ when using Wayland and Gnome.
2025-02-24 22:54:57 +01:00
vincent PENVERN
fb5af7d5da
Handle Keyboard on Ubuntu 24.10+ when using Wayland and Gnome.
2025-02-24 11:29:54 +01:00
Adriaan de Groot
547ed9e49e
[finishedq] Point to the Calamares domain rather than GH
2025-02-21 14:39:14 +01:00
Adriaan de Groot
459c383be0
Changes: post-release housekeeping
2025-02-20 20:49:10 +01:00
Adriaan de Groot
21ea803527
Changes: pre-release housekeeping
2025-02-20 20:06:14 +01:00
Adriaan de Groot
0661ae8768
Merge pull request #2431 from calamares/issue-2377
...
Add cancellation support to view-steps
2025-02-20 20:04:20 +01:00
Adriaan de Groot
0d2a56b1fc
Changes: document changes to keyboard, locale
2025-02-18 17:24:45 +01:00
Adriaan de Groot
24f732091d
[locale] Cancel live timezone changes if needed
2025-02-18 19:16:50 +03:00
Adriaan de Groot
b781e552ea
[locale] Add support for cancelling locale changes
...
This only has meaning if the live timezone is changed,
then change it back to the value it had on startup.
2025-02-18 19:14:07 +03:00
Adriaan de Groot
11184dbe24
[libcalamares] Convenience function for TZ formatting
2025-02-18 19:12:52 +03:00
Adriaan de Groot
1aeabcbd66
[libcalamaresui] Call cancel() on steps when cancelling the installation
2025-02-18 16:17:08 +01:00
Adriaan de Groot
6a84308797
[keyboard] Preserve original settings for cancel()
2025-02-18 15:49:26 +01:00
Adriaan de Groot
4de8f5c88d
[keyboard] Factor out settings and additional settings
...
Place settings in a struct and hand it off to a free function
for update, rather than using methods of the Config class.
2025-02-18 15:44:29 +01:00
Adriaan de Groot
695a972aaa
[keyboard,keyboardq] Call config's cancellation function
2025-02-18 15:00:23 +01:00
Adriaan de Groot
a43f960075
[keyboard] Add an (aspirational) cancel() function to keyboard-config
2025-02-18 14:59:52 +01:00
Adriaan de Groot
6c25a98793
[libcalamaresui] Add a cancel() function for view-steps
2025-02-18 14:59:18 +01:00
Adriaan de Groot
bcdc828b5c
Changes: pre-release housekeeping
2025-02-17 22:48:48 +01:00
Adriaan de Groot
bfc79a1e97
Merge pull request #2428 from calamares/2427-improve-mapper-exceptions
...
Improve exceptions to ClearMountsJob
2025-02-17 22:42:56 +01:00
Adriaan de Groot
fff1b44870
[partition] Rename to essentialMounts
2025-02-17 22:42:36 +01:00
Adriaan de Groot
0d943d57fd
[partition] Add example configuration
2025-02-13 22:00:56 +01:00
Adriaan de Groot
c70be7ed8b
[partition] Use the doNotClose setting
2025-02-13 21:54:22 +01:00
Adriaan de Groot
d3db2ba7b3
[partition] Add a doNotClose setting to the configuration
2025-02-13 21:46:05 +01:00
Adriaan de Groot
c7d4a22c2f
[partition] Credits for new code, chase coding-style
2025-02-13 21:32:32 +01:00
Adriaan de Groot
fcef966105
Merge pull request #2427 from JustTNE/patch-unmount-special
...
[parition] Do not unmount /dev/mapper/ventoy
2025-02-13 21:23:55 +01:00
dalto8
61ce816891
[partition] Fix Qstring typo
2025-02-13 02:23:27 +00:00
Adriaan de Groot
f2d1a09685
Changes: update changelog before 3.3.14
2025-02-11 16:54:15 +01:00
Adriaan de Groot
1cef8fcc8d
[partition] Rename passphrase key, document it and add credits
2025-02-11 16:50:01 +01:00
Adriaan de Groot
7c1ae55505
[partition] Code-conventions for LUKS-passphrase
2025-02-11 16:50:01 +01:00
Adriaan de Groot
9e369c55fd
Merge pull request #2423 from calamares/issue-2420
...
Re-organize Python implementations and fix memory issues
2025-02-11 16:49:08 +01:00
TNE
3994c8801b
[parition] Do not unmount /dev/mapper/ventoy
...
Ventoy uses /dev/mapper/ventoy to provide the ISO.
Unmounting /dev/mapper/ventoy is not desired since certain ISOs may have mounts that rely on it existing for the unpackfs step
2025-02-04 13:36:49 +01:00
Adriaan de Groot
830f3f874f
Merge pull request #2424 from SixK/calamares
...
Save obfuscated luks passphrase in calamares globals variables
2025-02-04 10:27:57 +01:00
vincent PENVERN
d2ff867c6b
Save obfuscated luks passphrase in calamares globals variables
2025-01-27 14:49:40 +01:00
Adriaan de Groot
056a79628b
[libcalamares] Avoid data-corruption in Boost::Python
...
Lock the description variable properly, so that while
it is being accessed from another thread (to read the
string for progress reporting) it doesn't get corrupted
by updates from the Python thread.
2025-01-25 23:41:00 +01:00
Adriaan de Groot
ffc12c636e
[dummycpp] Behave more like the dummypython job
...
- run a target command
- emit lots and lots of progress signals
2025-01-25 23:01:15 +01:00
Adriaan de Groot
1ba857e128
[calamares] Resolve memory leaks in test application
2025-01-25 22:54:17 +01:00
Adriaan de Groot
a4e132e927
[users] Repair build with sanitizers
2025-01-25 22:23:00 +01:00
Adriaan de Groot
92fe9aa3b2
[libcalamares] Improve visibility flags
...
Unrelated, destructor = default is simpler than empty.
2025-01-25 22:08:22 +01:00
Adriaan de Groot
257b2c4cb9
CMake: flag to switch on sanitizers during build
2025-01-25 21:54:35 +01:00
Adriaan de Groot
4135472fc6
[libcalamares] Improve documentation of target_env_call()
2025-01-21 00:43:40 +01:00
Adriaan de Groot
73fa5ba7d2
[libcalamares] Add overload of target_env_call to pybind11
...
Python code that would run with Boost::Python, calling
target_env_call() with a single string parameter, would
fail in pybind11. Add the missing overload.
2025-01-21 00:42:46 +01:00
Adriaan de Groot
3fc2fca9cf
[dummypython] Demonstrate ways to call target_env_call
2025-01-21 00:12:25 +01:00
Adriaan de Groot
babaddffc3
Changes: post-release housekeeping
2024-12-31 22:06:31 +01:00
Adriaan de Groot
f594bfb5e3
Changes: pre-release housekeeping
2024-12-31 21:44:40 +01:00
Adriaan de Groot
7a9e773caf
[libcalamares] Factor out shared Python API
...
The logging functions and some other trivia can be
implemented the same way regardless of the backing
Python implementation.
2024-12-31 12:34:29 +01:00
Adriaan de Groot
ecc7d03575
[libcalamares] Make include guards consistent
2024-12-31 11:28:19 +01:00
Adriaan de Groot
f142d6c33b
[libcalamares] Use generic(-ish) variant code
...
The implementations can call the generic code
for wrangling QVariant into Python types.
2024-12-30 23:57:23 +01:00
Adriaan de Groot
7f173de361
[libcalamares] Add generic(-ish) variant-to-python code
...
This is code duplicated between the two implementation
directories (to be taken out shortly). It isn't generic
in a template-sense, but it does use the types and
support functions defined in the implementation-specific
PythonTypes header.
2024-12-30 23:38:45 +01:00
Adriaan de Groot
67f382bb3f
[libcalamares] Sort out the Python implementations
...
- pybind11 stuff in pybind11/ rather than python/
- Boost::Python stuff in pyboost/ rather than in libcalamares/
Adapt consumers, too (which are few).
2024-12-30 23:35:28 +01:00
Adriaan de Groot
fc423f257a
[libcalamares] Expand Python types definitions
...
Provide type aliases for more types, and a factory
function for None, in both implementations.
2024-12-30 23:04:14 +01:00
Adriaan de Groot
83bdb259b3
[libcalamares] Split Boost::Python types into separate header
2024-12-29 21:57:52 +01:00
Adriaan de Groot
eed60c6e74
[libcalamares] Remove unnecessary header for pybind11
2024-12-29 21:57:52 +01:00
Adriaan de Groot
f57170f825
[libcalamares] Split pybind11 types into separate header
2024-12-29 21:57:38 +01:00
Adriaan de Groot
015544a101
Merge pull request #2419 from SoulPrudya/v.prudius@fix_uk_lang
...
i18n: [calamares] Fix Ukrainian localization
2024-12-26 17:05:51 +01:00
Calamares CI
da0e16cfb2
i18n: [python] Automatic merge of Transifex translations
2024-12-26 17:04:21 +01:00
Calamares CI
e804457bd1
i18n: [calamares] Automatic merge of Transifex translations
2024-12-26 17:04:20 +01:00
Vladyslav Prudius
b955654032
i18n: [calamares] Fix Ukrainian localization
2024-12-26 01:36:24 +02:00
Adriaan de Groot
9892856046
Merge pull request #2400 from ArrayBolt3/arraybolt3/restrict-fs
...
Allow restricting the filesystem's usable in manual partitioning
2024-12-25 16:59:25 +01:00
Aaron Rainbolt
d83373e892
Fix uninitialized bool for DirFSRestrictEntry
2024-12-24 22:02:59 -06:00
Aaron Rainbolt
6166b35273
Add attribution for DirFSRestrictLayout.*
2024-12-24 21:58:36 -06:00
Adriaan de Groot
935a93535a
Merge pull request #2413 from calamares/lvm-options
...
Allow hiding LVM buttons
2024-12-24 22:29:11 +01:00
Adriaan de Groot
191f7112f1
Merge pull request #2414 from phoepsilonix/patch
...
If you selected "Manual Partitioning", Scan for partition information.
2024-12-22 21:58:49 +01:00
Adriaan de Groot
d4847ce802
Merge pull request #2415 from phoepsilonix/patch2
...
[libcalamares] Use Qt helper macros for compiler warnings
2024-12-22 21:49:47 +01:00
Adriaan de Groot
850ac483cb
[libcalamares] Missing include for Qt macros
2024-12-22 21:46:35 +01:00
Masato TOYOSHIMA
186d44e51b
[libcalamares] Use Qt helper macros for compiler warnings
2024-12-22 12:51:50 +09:00
Adriaan de Groot
e6fa229b18
CMake: suppress install-path warnings with newer CMake
...
None of the edge cases that the policy is for are applicable.
2024-12-21 14:43:40 +01:00
Masato TOYOSHIMA
3e9eabe9df
If you selected "Manual Partitioning", Scan for partition information.
2024-12-21 22:25:09 +09:00
Adriaan de Groot
c251be3ef3
[plasmalnf] Be quiet at find_package() for Plasma
...
If the requirements are not met, the module will be listed in
the skipped-modules overview.
2024-12-21 14:18:01 +01:00
Adriaan de Groot
59985eaf4e
Merge pull request #2410 from lubuntu-team/tsimonq2/2409
...
Allow for optional items in unpackfs (Fixes : #2409 )
2024-12-21 10:45:36 +01:00
Adriaan de Groot
af71522292
[libcalamares] Add missing ;
...
This was a missing ; in code for older Qt versions, which
wasn't being reached in any of my (FreeBSD, openSUSE) builds.
CLOSES #2411
2024-12-21 10:38:11 +01:00
Adriaan de Groot
419bedf661
[libcalamares] Use Qt helper macros for compiler warnings
2024-12-21 10:32:33 +01:00
Adriaan de Groot
b6b09d0bc2
[libcalamares] Use Qt helper macros for compiler warnings
2024-12-21 10:04:22 +01:00
Adriaan de Groot
c335c7e594
[partition] Use same KPMcore helper function for msdos everywhere
2024-12-21 09:53:18 +01:00
Adriaan de Groot
77c195c0b5
[partition] Read config-value to determine LVM presence
2024-12-20 14:06:46 +01:00
Adriaan de Groot
6fa0575c48
[partition] Add config-value and act on it when creating page
2024-12-20 14:06:46 +01:00
Adriaan de Groot
98f47ee407
[partition] Handle KPMcore deprecations
2024-12-20 14:06:46 +01:00
Adriaan de Groot
e4b198d13b
[partition] Give Config object to manual-partition page
2024-12-20 14:06:46 +01:00
Adriaan de Groot
d47abaf6ea
[partition] Improve naming of UI component
...
Add a widget (panel) to help in managing these buttons.
2024-12-20 14:06:43 +01:00
Adriaan de Groot
b865a99151
[partition] Initialize m_isEfi just once
...
Initialize once, instead of initializing to a default
value and then assigning something a moment later.
2024-12-20 12:38:47 +01:00
Adriaan de Groot
a192673704
[partition] Add an option to show/hide LVM buttons.
2024-12-20 12:30:33 +01:00
demmm
ed92ad65c4
Merge pull request #2412 from phoepsilonix/patch
...
[Partition] Fixed message for Replace destination partition
2024-12-15 12:23:05 +01:00
Masato TOYOSHIMA
6964a4f5d9
[Partition] Fixed message for Replace destination partition
...
use shortVersionedName as first argument.
choicepage.cpp has 1 instances where %1 is not defined.
2024-12-15 18:26:15 +09:00
Simon Quigley
560ad70aeb
Allow for optional items in unpackfs
2024-12-11 02:24:17 -06:00
Adriaan de Groot
714a085556
Merge pull request #2404 from jpetso/work/jpetso/fix-2384
...
[libcalamares] Block sleep with systemd/CK login manager if present
2024-12-07 22:27:31 +01:00
Jakob Petsovits
37179801eb
[libcalamares] Block sleep with systemd/CK login manager if present
...
Calamares running as root is not always conducive to successfully
communicating with the fd.o PowerManagement interface on the user
session bus.
The login manager interface has long provided a similarly capable
sleep inhibition functionality, which at this point would be present
on the vast majority of distributions. Use it if systemd-logind
or ConsoleKit2 have registered this service on the system bus.
Regardless of running as root or user, Calamares shouldn't have
an issue contacting this interface.
Fixes #2384
2024-12-07 12:39:24 -05:00
Adriaan de Groot
b5533caece
[partition] Deal with deprecations in QCheckBox
2024-12-03 14:26:26 +01:00
Adriaan de Groot
20e6d1d66c
[libcalamares] Deal with deprecations in QComboBox
2024-12-02 22:58:04 +01:00
Adriaan de Groot
a067e4fc4f
[finished] Handle Qt 6.7 deprecations in checkbox
2024-12-02 22:58:04 +01:00
Adriaan de Groot
a87487020a
[libcalamares] Repair tests that use deprecated QLocale functions
2024-12-02 22:57:49 +01:00
Adriaan de Groot
03c5e366ed
[libcalamares] Deal with deprecations in XML QDomDocument
...
Introduce some Calamares helpers in the compat/ headers
space to help Xml-wrangling (i18n support tools, GeoIP)
avoid compiler warnings about deprecated API.
It's cleaner this way anyway, with a nice value returned
from setting a document's contents, rather than a bunch
of pointer arguments.
2024-12-02 22:57:49 +01:00
Adriaan de Groot
9106dd9337
[welcome] Follow deprecations in QLocale
2024-12-02 13:23:43 +01:00
Adriaan de Groot
2fcc008d7b
[libcalamares] Follow deprecations in QLocale
...
Prefer territory() over country() in Qt 6.6 and later.
2024-12-02 13:15:43 +01:00
Adriaan de Groot
196f85fa2c
C++: prefer std::as_const over Qt solution
...
In Qt 6.6, qAsConst is deprecated; since Calamares is C++17
we have had a standard solution always.
2024-12-02 13:15:42 +01:00
Aaron Rainbolt
0bbbdae835
Allow restricting the filesystem's usable in manual partitioning
2024-11-30 22:18:44 -06:00
Adriaan de Groot
ba96a39ca0
[welcome] Use UTF-8 ellipses for text
2024-11-29 15:40:41 +01:00
Adriaan de Groot
05019b2cad
Merge pull request #2398 from necrosisy/patch-1
...
Update calamares_zh_CN.ts
2024-11-29 14:00:37 +01:00
Adriaan de Groot
36d48fc624
i18n: update source translations
2024-11-29 13:57:49 +01:00
Adriaan de Groot
0259662b67
[unpackfsc] Add missing Q_OBJECT for things that use translation
2024-11-29 13:55:04 +01:00
Calamares CI
d4f1cba7a1
i18n: [python] Automatic merge of Transifex translations
2024-11-29 13:49:55 +01:00
Calamares CI
2d656c4565
i18n: [calamares] Automatic merge of Transifex translations
2024-11-29 13:49:55 +01:00
Adriaan de Groot
fc19b17fc7
CI: be a little more chatty with the language lists
2024-11-29 13:31:02 +01:00
Adriaan de Groot
6176fb4d12
Merge pull request #2401 from lubuntu-team/tsimonq2/dracut-options
...
[dracut] Add an options setting for additional Dracut parameters
2024-11-29 13:17:30 +01:00
Simon Quigley
3151eb7c82
[dracut] Stylistic update for conf file list
2024-11-22 19:47:15 -06:00
Simon Quigley
8ea29c271f
[dracut] Ensure the user can remove -f but it stays as the default
2024-11-22 19:46:32 -06:00
Simon Quigley
119f3fb4bd
[dracut] Add an options setting for additional Dracut parameters
2024-11-22 16:37:41 -06:00
Adriaan de Groot
9cc4cb356f
CMake: repair KPMcore helper for KF5 (legacy) case
2024-11-21 23:42:39 +01:00
Adriaan de Groot
c83aa1da70
Changes: pre-release housekeeping
2024-11-21 22:53:17 +01:00
Adriaan de Groot
6a31e30cbf
CMake: repair KDE Frameworks 6 dependencies
...
Be a little more chatty and look for the correct KDE Frameworks
for consumers of Calamares (e.g. calamares-extensions).
2024-11-21 22:50:44 +01:00
Ching Hsü
0e88cb6c28
Update calamares_zh_CN.ts
...
Corrected zh_CN typo
2024-11-12 17:35:43 +08:00
Adriaan de Groot
3614fd003d
[users] Ensure UMASK= gets a leading 0 if needed
2024-11-11 00:34:53 +01:00
Adriaan de Groot
a93dc7740c
[users] Expand test coverage with numeric value
2024-11-08 22:28:45 +01:00
Adriaan de Groot
f6e39aac52
Changes: post-release housekeeping
2024-11-07 23:09:21 +01:00
Adriaan de Groot
5ec934d331
Changes: pre-release housekeeping
2024-11-05 15:53:24 +01:00
Adriaan de Groot
3008260bb2
[unpackfsc] Import unpackfsc module from Calamares-extensions
...
This does some of the same things that unpackfs does, but
with nicer progress reporting, possibly it is faster.
It does not use rsync, so it might not be a drop-in replacement
for unpackfs.
Instead of having one configuration file with multiple items,
each unpackfsc instance unpacks just one thing.
2024-11-05 15:53:24 +01:00
Adriaan de Groot
c6f429e310
[libcalamares] re-add Runner to the public API
2024-11-05 15:53:24 +01:00
Adriaan de Groot
f6b4d6db43
[contextualprocess] Use GS method for dotted lookup
2024-11-05 15:53:24 +01:00
Adriaan de Groot
05bc0cbb09
[libcalamares] Make other tests more resilient
...
Use the full path to the test file, rather than assuming the test
is run from the build-directory. Repair check that looked at
the number of keys in the test-file, now that a new key has been added.
2024-11-05 15:53:00 +01:00
Adriaan de Groot
8a095504c4
[libcalamares] Add nested (dotted) key lookup for GS
2024-11-05 14:50:20 +01:00
Adriaan de Groot
3f4d2c8040
Changes: credits for recent fixes
2024-11-05 13:41:21 +01:00
Adriaan de Groot
2bde5af133
[unpackfs] Rename 'include' to 'condition'
...
Avoids ambiguity with 'exclude' which is passed to rsync.
2024-11-05 13:38:29 +01:00
Adriaan de Groot
6c33240ad0
Merge pull request #2390 from lubuntu-team/lubuntu/conditional-unpackfs
...
Add include keyword for unpackfs
2024-11-05 13:11:35 +01:00
dalto8
72e3945d09
Merge pull request #2392 from jpetso/work/jpetso/fix-2367
...
[partition] Use the same last sector for root vs. swap partitions
2024-11-04 14:30:55 +00:00
Adriaan de Groot
709e6c64b1
Merge pull request #2391 from lubuntu-team/lubuntu/presentation-qml-fixes
...
Fix a syntax error in Presentation.qml which prevents the slideshow from displaying
2024-11-04 00:32:02 +01:00
Jakob Petsovits
51c773c3f9
[partition] Use the same last sector for root vs. swap partitions
...
If we have already determined that `lastSectorForRoot` should be
a lower value for GPT tables, the calculation of swap partition
boundaries shouldn't keep using `dev->totalLogical()` for its
own size.
Fixes #2367
2024-11-01 21:08:11 -04:00
Simon Quigley
93f1090204
Fix a syntax error in Presentation.qml which prevents the slideshow from displaying
2024-10-30 22:08:21 -05:00
Simon Quigley
80841b1a29
Add include keyword for unpackfs
2024-10-30 22:06:14 -05:00
Adriaan de Groot
4cd1f0f402
Changes: post-release housekeeping
2024-10-22 21:53:35 +02:00
Adriaan de Groot
16cb360a69
[libcalamares] Don't write out pragmas by hand, use Qt helpers
2024-10-22 21:24:23 +02:00
Adriaan de Groot
f4d62f0f41
[locale] Repair tests
...
It is unclear how this could have worked previously:
the only code path through currentLocationStatus()
checks the pointer, also.
2024-10-22 21:14:38 +02:00
Adriaan de Groot
35aa975a74
Changes: mention new possibilities in users module
2024-10-22 17:41:57 +02:00
Adriaan de Groot
c68c3632cc
[users] Expand tests and repair newly-acceptable cases
2024-10-22 17:41:57 +02:00
Adriaan de Groot
4ac0529d1c
[users] Explain new permissions possibilities in config
2024-10-22 17:41:57 +02:00
Adriaan de Groot
c9e9043e9d
[users] Expand configuration-parsing for home-permissions
2024-10-22 17:40:08 +02:00
Adriaan de Groot
206dfce409
[libcalamares] Add an "rwx" mode for permissions (and tests)
2024-10-22 17:35:13 +02:00
Adriaan de Groot
d1dece4473
[libcalamares] Expand file-permissions to allow leading 'o'
2024-10-22 17:31:30 +02:00
Adriaan de Groot
7842d03ef6
[libcalamares] Add an "integer-like" predicate for variants
2024-10-22 17:31:30 +02:00
Adriaan de Groot
69e3e493de
[users] Avoid compiler warning on FreeBSD (where umask is unused)
2024-10-22 17:31:30 +02:00
Adriaan de Groot
b485bfea07
Changes: pre-release housekeeping
2024-10-21 21:36:09 +02:00
Adriaan de Groot
1814b7fd41
Merge pull request #2376 from ArrayBolt3/calamares
...
Partition module fixes for encryption checkbox
2024-10-21 21:34:11 +02:00
Calamares CI
08f34835d5
i18n: [calamares] Automatic merge of Transifex translations
2024-10-21 21:28:29 +02:00
Calamares CI
97cc2413ff
i18n: [python] Automatic merge of Transifex translations
2024-10-21 21:03:14 +02:00
Calamares CI
8ee1da93ce
i18n: [calamares] Automatic merge of Transifex translations
2024-10-21 21:03:13 +02:00
Aaron Rainbolt
fe124b0e1e
[partition] Only apply preCheckEncryption to the encrypt widget once
2024-10-02 11:17:34 -05:00
Aaron Rainbolt
cc96e65787
[partition] Always update EncryptWidget's m_state when updateState is called
2024-09-25 18:02:16 -05:00
Adriaan de Groot
cbe39e1324
[users] Repair example configuration
2024-09-23 23:42:27 +02:00
Adriaan de Groot
09a3f58800
[users] Add unit-test for new parsing and configuration options
2024-09-23 21:53:50 +02:00
Adriaan de Groot
e80437c9b9
[libcalamares] Make permissions-parsing public API
2024-09-23 21:53:50 +02:00
Adriaan de Groot
ad4064456b
Changes: mention new users setting
2024-09-23 21:53:50 +02:00
Adriaan de Groot
8c8bb7a3df
[users] Pass the home permissions to useradd
2024-09-23 21:53:50 +02:00
Adriaan de Groot
aa938285a4
[users] Read home_permissions setting from config
2024-09-23 21:53:50 +02:00
Adriaan de Groot
f5c425345b
[users] Add a *permissions* setting for overriding useradd
2024-09-11 18:01:31 +02:00
Adriaan de Groot
e57aab2008
[libcalamares] Split out file-mode parsing to a separate function
2024-09-11 18:01:26 +02:00
Adriaan de Groot
d398d6568e
Changes: mention styling improvements
2024-09-11 15:37:27 +02:00
Adriaan de Groot
032fca834e
[libcalamaresui] Adjust waiting widget to style
...
This follows Dark / Light mode, but also adjusts the spinner
when the style is changed while Calamares is running.
2024-09-08 10:33:38 -04:00
Adriaan de Groot
b0fc0a0a4d
i18n: handle plurals in English for the welcome page
2024-09-08 08:50:49 -04:00
Adriaan de Groot
ff23fabfe0
[welcome] Use system theme color instead of hard-coded black
2024-09-08 08:38:29 -04:00
Adriaan de Groot
7f49b21c49
CI: add tools for schema-validation to EndeavourOS build
2024-09-08 07:06:39 -04:00
Adriaan de Groot
9a9acf0b93
Changes: credit for umount fix
2024-09-08 06:56:02 -04:00
Adriaan de Groot
c14ffa08e2
[umount] Minor tweaks in wording and code
2024-09-08 06:52:56 -04:00
Adriaan de Groot
bfe2f7993f
Merge pull request #2369 from calamares/fix-umount
...
[umount] Also unmount the root filesystem
2024-09-08 06:02:44 -04:00
dalto
f38502d5ad
[umount] Also unmount the root filesystem
2024-09-07 12:02:13 -05:00
Adriaan de Groot
5fc2b2753a
Changes: note keyboard fixes
...
Neal Gompa suggested running KWin with the --locale1 flag, which
makes it listen to locale1 changes. For systems that don't support
that, there is now a different approach that rudely writes the
config file -- which you should probably then copy into the
target system later with a *preservefiles* module.
FIXES #2264
2024-09-07 11:26:17 -04:00
Adriaan de Groot
cde6acd224
[keyboard] Send DBus signal to KWin for new keyboard layout
2024-09-07 11:20:33 -04:00
Adriaan de Groot
6498f9e0d1
[keyboard] Rewrite KWin config file
2024-09-07 10:50:35 -04:00
Adriaan de Groot
5414e51245
[keyboard] Add kwin-specific configuration flag
...
Running `kwin_wayland --locale1` makes KWin listen to locale1
for keyboard updates, but not everybody has that. Introduce a
KWin-specific configuration flag that will (re)write the
KWin configuration.
2024-09-07 09:25:45 -04:00
Adriaan de Groot
4fea2920d7
[keyboard] Rename functions, simplify logic
...
The timer can be connected to one slot, which just
checks what kinds of configuration are enabled.
Then update all the ones that make sense in a live system.
2024-09-07 06:57:07 -04:00
Adriaan de Groot
783881edaa
[keyboard] Rename confusing overloaded function
2024-09-07 06:41:15 -04:00
Adriaan de Groot
dc3c08a012
[keyboard] Remove unnecessary inline
2024-09-07 06:41:15 -04:00
Adriaan de Groot
e6e10bdcec
Changes: document message changes
...
This has effects on translations, so we will need to wait a bit
and then pull in new translations from Transifex before release.
FIXES #2364
2024-09-06 08:40:39 -04:00
Adriaan de Groot
543ae5ae01
i18n: update English sources
2024-09-06 14:36:50 +02:00
Adriaan de Groot
f0c8e02901
[keyboard] Remove misplaced <br/> from user-visible message
2024-09-06 14:32:20 +02:00
Adriaan de Groot
d72df37333
[locale] Fully replace message of timezone.
...
Since we need to break translations anyway (it was missing a "."),
do the right thing with the zone-name.
2024-09-06 14:24:15 +02:00
Adriaan de Groot
0ad97beed5
[locale] Use human-readable naming for messages
2024-09-06 13:57:15 +02:00
Adriaan de Groot
c51fa0e2f1
[libcalamares] Document the methods of TimeZone
2024-09-06 13:46:09 +02:00
Adriaan de Groot
e945af0aa3
Changes: post-release housekeeping
2024-08-13 23:06:48 +02:00
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
2042b338a7
Docs: add a note about updating / uploading translations
2024-08-13 15:49:05 +02:00
Adriaan de Groot
0fa28b88ae
Merge pull request #2359 from ContractISover/patch-1
...
Update calamares_ar.ts
2024-08-13 15:26:06 +02:00
Calamares CI
c52d3d3dab
i18n: [python] Automatic merge of Transifex translations
2024-08-12 23:27:20 +02:00
Calamares CI
870e41e7ed
i18n: [calamares] Automatic merge of Transifex translations
2024-08-12 23:27:20 +02:00
Adriaan de Groot
9b3fbe1e33
Changes: pre-release housekeeping
2024-08-12 23:18:17 +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
ContractISover
96cdfd2a41
Update calamares_ar.ts
...
finally
2024-08-08 00:22:42 +03:00
Adriaan de Groot
a9044661ae
Merge pull request #2358 from calamares/issue-2320
...
Mention swapfile in summary
2024-08-05 22:38:37 +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
e4d2b27138
Changes: show what this branch will do
...
While here, adjust the format for changelog entries a little.
Use "given name" instead of "first name", since "first / middle / last"
doesn't make sense in a lot of contexts. Mention issue numbers
and names for individual entries where possible.
2024-07-23 22:37:29 +02:00
Adriaan de Groot
8f9c26edb6
CMake: remove unnecessary spaces
...
CMake-coding-style isn't C++-coding-style.
2024-07-22 23:21:51 +02:00
Adriaan de Groot
d6184e5cff
CMake: make finding-python-version a little more flexible
...
My development machine has Python 3.11 installed, with all the
development tools, and 3.12 with only the interpreter. I can't
get find_package(Python3) to find 3.11 unless specifying EXACT,
since it always ends up preferring 3.12 which doesn't have the
required components.
2024-07-22 23:11:49 +02:00
Adriaan de Groot
002b313e0c
CMake: remove unnecessary old-cmake-version compatibility
2024-07-22 22:44:53 +02:00
Adriaan de Groot
8006f2c678
Merge pull request #2354 from calamares/fix-settings-fstab
...
[settings.conf] Move fstab after luksbootkeyfile
2024-07-21 22:46:24 +02:00
dalto8
9cd0b6bf64
[Changelog] CHANGES-3.3 to add module order note
2024-07-21 19:39:01 +00: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
c34d401cc3
CI: run tests in the weekly build
2024-07-20 22:25:28 +02:00
dalto8
232a78bc08
[settings.conf] Move fstab after luksbootkeyfile
...
fstab is checking for the existence of luks keyfile. Because of this, the luks keyfile job needs to run before fstab.
2024-07-14 19:04:34 +00: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
6119153af3
CI: change base of ABI stability check
...
3.3.0 wasn't a good choice and we **know** we're
not stable relative to that. Later release 3.3.3
introduced better visibility controls to reduce
the size of the interface that needs to be considered.
2024-07-06 01:06:58 +02:00
Adriaan de Groot
ffc37872c3
CI: allow environment to select Qt version for release and ABI
2024-07-06 00:55:28 +02:00
Adriaan de Groot
389429cd10
CI: be more verbose during ABI check build
2024-07-06 00:40:10 +02:00
Adriaan de Groot
6b3a3e2c25
CMake: upgrade build to Qt6 automatically if needed
2024-07-06 00:37:02 +02:00
Adriaan de Groot
acfe97aff3
Changes: post-release housekeeping
2024-07-03 23:32:55 +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
Adriaan de Groot
6988e093b3
i18n: Update English sources
2024-07-03 22:49:43 +02:00
Calamares CI
dcf8aab6e6
i18n: [python] Automatic merge of Transifex translations
2024-07-03 22:44:01 +02:00
Calamares CI
5d32d921f4
i18n: [calamares] Automatic merge of Transifex translations
2024-07-03 22:44:01 +02:00
Adriaan de Groot
d43135d9a0
Changes: update credits
2024-07-03 00:12:25 +02:00
Adriaan de Groot
2023298764
Merge pull request #2351 from iam-TJ/fix-gpt-partition-sectors
...
Adjust last usable sector for GPT
2024-07-03 00:07:14 +02:00
Tj
bee487653a
Adjust last usable sector for GPT
2024-07-02 22:54:54 +01:00
Adriaan de Groot
8720a68849
Changes: pre-release housekeeping
2024-07-02 23:44:48 +02:00
Adriaan de Groot
0da919951c
Changes: describe partitioning bug
...
FIXES #2318
2024-07-02 23:43:30 +02: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
Adriaan de Groot
9e6e3da01c
Changes: update credits and notes
2024-06-30 14:59:23 +02:00
Adriaan de Groot
dcea48a5e1
Merge pull request #2348 from PalinuroSec/patch-2
...
[users] Use yescrypt instead of sha512
2024-06-30 00:24:08 +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
b49fd32cfb
Changes: update credits
2024-06-25 16:04:19 +02: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
6048a134e2
CI: fix typo in EndeavourOS script
2024-06-25 14:00:29 +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
ea4364b8a8
Changes: post-release housekeeping
2024-06-21 22:49:27 +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
84d1599845
Changes: pre-release housekeeping
2024-06-20 17:08:55 +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
ad28ae08b6
Changes: document existence of new initcpiocfg settings
2024-06-10 22:47:42 +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
48554cf310
Changes: document new shellprocess possibilities
2024-05-14 23:38:05 +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
eb1e5a201f
i18n: update English sources
2024-05-01 00:10:49 +02:00
Calamares CI
1caaac565b
i18n: [python] Automatic merge of Transifex translations
2024-05-01 00:08:23 +02:00
Calamares CI
fb6f3a5f39
i18n: [calamares] Automatic merge of Transifex translations
2024-05-01 00:08:23 +02:00
Adriaan de Groot
66e028862f
Changes: update contributors
2024-04-28 23:20:36 +02:00
Adriaan de Groot
17821c6ea1
Merge pull request #2325 from ivan1986/non-ascii
...
add layouts from xkb/ruses/base $nonlatin
2024-04-28 23:17:29 +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
d6897d6c36
Changes: update contributors
2024-04-28 23:11:52 +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
Adriaan de Groot
fd37beae8b
Changes: update contributors
2024-04-28 20:42:24 +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
366552f743
Changes: update contributors
...
See #2323 ; Vladislav pointed out the incompatibility
but I implemented something different from the PR.
2024-04-28 17:52:39 +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
09dae0437e
CI: prefer newer clang-format over older
2024-04-17 10:48:04 +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
c8c0e783c3
Changes: post-release housekeeping
2024-04-16 15:56:48 +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
bcf27aa311
Changes: pre-release housekeeping
2024-04-16 15:31:51 +02:00
Adriaan de Groot
0095e30843
Changes: document sleep / suspend
2024-04-16 15:09:32 +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
685e9db3f7
Changes: credits
2024-04-14 22:16:40 +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
Adriaan de Groot
2127129227
[users] Use API to get file-paths in target
2024-04-14 09:25:03 +02:00
Adriaan de Groot
d0420ea3ee
[users] Add translation context to AD job
2024-04-14 00:20:57 +02:00
Adriaan de Groot
fe68b45fc5
[libcalamares] Explain updating-status-text mechanism
2024-04-13 23:37:49 +02:00
Adriaan de Groot
fb83ad326b
[libcalamares] Document recommended translation contexts
...
Jobs have specific contexts for their different strings.
Many jobs (now) misuse prettyName() as a status message,
although the existing fallback mechanism means that the
name gets used as if it is a status message when the job
does not define a description or status.
2024-04-13 23:30:57 +02:00
Adriaan de Groot
219befacbf
Merge pull request #2300 from lubuntu-team/calamares
...
Active Directory Support
2024-04-13 22:11:29 +02:00
Penvern Vincent
70a59d6cd1
add possibility to pre check encryption checkox
2024-04-13 02:09:09 +02:00
Adriaan de Groot
131b2eded1
Changes: update credits
2024-04-12 22:10:39 +02:00
Adriaan de Groot
f6cd82f9a4
[bootloader] Group local variables
...
Put the constants -- do we use systemd, what are the partitions --
together, and put the things-set-by-the-loop together.
2024-04-12 22:08:54 +02:00
Adriaan de Groot
6d242b67f9
[bootloader] Start building kernel parameters earlier
...
- drop unnecessary variable
- build "quiet splash rw" first
2024-04-12 22:05:47 +02:00
Adriaan de Groot
b4edf52198
[bootloader] Avoid indirection through shell
...
There's no need to run the shell to take apart the arguments to grep.
2024-04-12 21:55:26 +02:00
Adriaan de Groot
b8049daa45
[bootloader] Factor out running "which" in target
...
which is an actual program, drop the round-about via shell
2024-04-12 21:42:49 +02:00
Adriaan de Groot
d9fceac06e
Merge pull request #2315 from eugenesan/i2311
...
Mirror GRUB's splash screen functionality for non-grub booloaders
2024-04-12 21:36:37 +02:00
Eugene San (eugenesan)
51d6dd23ea
Mirror GRUB's splash screen functionality for non-grub booloaders
2024-04-12 12:08:47 -07:00
Adriaan de Groot
1645874973
Changes: post-release housekeeping
2024-04-09 15:57:30 +02:00
Adriaan de Groot
b78721d4b9
Changes: update credits
2024-04-09 15:56:03 +02:00
Adriaan de Groot
134b2c8d83
Merge pull request #2305 from ptr1337/plymouthcfg-fix
...
plymouthcfg: Use plymouth-set-default-theme instead of sed
2024-04-09 15:50:01 +02:00
Adriaan de Groot
4406a879bc
CI: use python-yaml instead of yq if needed (fedora)
2024-04-06 23:38:20 +02:00
Adriaan de Groot
2c52adc8e8
CI: expand functionality of build.sh
...
Make it easier to "just do the nightly build" in a Docker
setting by passing the name of the workflow to the script.
2024-04-06 23:11:32 +02:00
Adriaan de Groot
17b72b0fd8
CI: appstream-qt6 for opensuse builds
2024-04-06 23:08:02 +02:00
Adriaan de Groot
922b8aaaec
CI: install opensuse-qt6 deps before building with qt6
2024-04-06 22:34:27 +02:00
Adriaan de Groot
b950f0f6d4
[users] Remove duplicated constant (a regexp)
2024-04-02 23:33:21 +02:00
Adriaan de Groot
fbde737802
[partition] Don't redundantly specify value binding in lambda
2024-04-02 23:33:21 +02:00
Adriaan de Groot
14c8893b03
[libcalamares] Turn off Clang 17 warning for MOC
...
The build produces a zillion warnings about unsafe buffer usage
in the code that wrangles metaobjects and slot names. That is
generated code and we can't fix it.
2024-04-02 23:33:21 +02:00
Adriaan de Groot
b396f70d12
[partition] Fix typo's in example config
2024-04-02 23:33:21 +02:00
Adriaan de Groot
36485c8571
[partition] Simplify logic for checking for unencrypted /boot
2024-04-02 23:33:21 +02:00
demmm
f0c2295606
[localeq]Map-qt6 needed changes for Qt6 & Wayland
...
dragging & zooming now needs QML entries
osm is the only qtlocation provided map plugin, preferred thus useless now
no solution yet for warning (API key required), upstream bug reports offer no fix,
example https://bugreports.qt.io/browse/QTBUG-115742
2024-03-30 20:11:48 +01:00
Peter Jung
2fd98c913a
plymouthcfg: Use plymouth-set-default-theme instead of sed
...
Currently we are running into an issue, when setting the default theme via "sed", since the "[DAEMON]" entry in /etc/plymouth/plymouthd.conf is commented, which results into that the theme is not correctly applied.
Signed-off-by: Peter Jung <admin@ptr1337.dev >
2024-03-29 20:05:41 +01:00
Adriaan de Groot
8440a6a5dd
CI: switch openSUSE build to Qt6
2024-03-29 02:09:51 +04:00
Adriaan de Groot
ec0316806f
[locale] Fix build with DEBUG_TIMEZONES
2024-03-29 02:09:18 +04:00
Adriaan de Groot
6b2c996d06
Merge pull request #2303 from calamares/mount_efi_fix
...
[mount] Ensure efi partition gets correct options
2024-03-26 16:32:19 +01:00
demmm
36f57463ef
Merge pull request #2304 from manchicken/patch-1
...
Update Presentation.qml
2024-03-25 11:04:53 +01:00
Mike Stemle
a659db1f9c
Update Presentation.qml
...
The `padding` property is present in the qt5 version, but not the qt6 version. I notice a syntax error as a result of this missing propertly.
2024-03-24 13:27:44 -04:00
dalto
bdd059ffa8
[displaymanager] Fix sddm config file writing to the wrong location
2024-03-23 09:43:15 -05:00
dalto
e8726111f8
[mount] Ensure efi partition gets correct options
2024-03-17 19:03:02 -05:00
dalto8
2204c58b44
Merge pull request #2299 from ptr1337/initcpiocfg-microcode
...
initcpiocfg: Add microcode module
2024-03-13 17:57:59 +00:00
Adriaan de Groot
e06ea94664
Merge pull request #2301 from hsitter/work/sitter/pic
...
on Qt6 we need to build with position independent code
2024-03-10 10:38:31 +01:00
Harald Sitter
d33d9e8dae
on Qt6 we need to build with position independent code
...
otherwise linking may fail with
> copy relocation against non-copyable protected symbol `qt_resourceFeatureZstd@@Qt_6'
2024-03-10 01:33:52 +01:00
Simon Quigley
408ee0338a
Active Directory Support
2024-03-07 15:26:32 -06:00
Peter Jung
60c5f3fd5a
initcpiocfg: Add microcode module
...
Signed-off-by: Peter Jung <admin@ptr1337.dev >
2024-03-04 19:44:03 +01:00
Adriaan de Groot
10acebff46
[displaymanager] repair tests by removing extra /
2024-03-03 23:11:55 +01:00
Adriaan de Groot
21842e20c7
Changes: pre-release housekeeping
2024-03-03 22:33:32 +01:00
Calamares CI
38a2d6a353
i18n: [python] Automatic merge of Transifex translations
2024-03-03 22:32:58 +01:00
Calamares CI
311a125e36
i18n: [calamares] Automatic merge of Transifex translations
2024-03-03 22:32:58 +01:00
Adriaan de Groot
58bbfac910
Changes: document recent things
2024-03-03 21:17:44 +01:00
Adriaan de Groot
1ca9c7516b
[displaymanager] Use (optional) configuration value
...
FIXES #1757
2024-03-03 21:16:21 +01:00
Adriaan de Groot
25ab3f7f03
[displaymanager] Add SDDM config-file setting
2024-03-03 21:12:37 +01:00
Adriaan de Groot
012138c1f2
[libcalamares] Start with 3.5 TODOs, improve naming
2024-03-03 21:01:01 +01:00
Adriaan de Groot
904ebe1c7e
CI: Fedora image needs git
2024-03-03 20:51:11 +01:00
Adriaan de Groot
6cb4b25788
CI: switch around images for CI builds
...
- KDE neon user mixes KF5 and KF6 and I can't get the dependencies to install
- KDE neon unstable was not actually used
- Fedora seems more stable for CI purposes.
2024-03-03 20:42:42 +01:00
Adriaan de Groot
082a1c342a
CI: repair name of fedora-with-boost
2024-03-03 20:39:24 +01:00
Adriaan de Groot
da4a3161a2
Changes: document new things
2024-03-03 15:09:56 +01:00
Adriaan de Groot
56cdf33b15
Merge pull request #2298 from calamares/logversion
...
[calamares] Add Qt version to debug log
2024-03-03 12:32:45 +01:00
dalto
9992cf2507
[calamares] Fir preprocessor directives
2024-03-02 15:04:44 -06:00
dalto
7fd9d48a20
[calamares] Add python integration type and build type to log
2024-03-02 14:52:16 -06:00
dalto
74ccb4d28b
[calamares] Add Qt version to debug log
2024-03-02 14:21:58 -06:00
Adriaan de Groot
098bbd520e
[calamares] do not treat strings as lists
...
In Qt5, a QVariant created from a QString doesn't convert to a
QVariantList. In Qt6, it does. It is unclear if that is because it would
take two conversions (QString -> QStringList -> QVariantList) or
something else.
Exclude QStrings from being considered list-like; this works in both Qt5
and Qt6, and fixes weirdness in the Debug window.
2024-02-29 00:35:12 +01:00
Adriaan de Groot
49afa16b1c
[calamares] factor out variant-type-checking in debug window
2024-02-29 00:33:08 +01:00
Adriaan de Groot
5568d22549
[networkcfg] fix python crash
...
open(path, "w") returns a TextIOWrapper,
open(path, "wb") returns a BufferedWriter,
.. neither of which is one of the types that os.chmod()
consumes. Use fileno(), an integer file-descriptor.
FIXES #2294
2024-02-27 22:16:14 +01:00
Adriaan de Groot
1f3ebad92d
Changes: post-release housekeeping
2024-02-27 11:25:32 +01:00
Adriaan de Groot
91454a71d0
[calamares] missing include
...
Include for getpid() is needed on FreeBSD.
2024-02-27 00:52:21 +01:00
Adriaan de Groot
6658708576
Changes: pre-release housekeeping
2024-02-27 00:33:06 +01:00
Adriaan de Groot
c4e0456acc
[locale] avoid crash when there are no good locales
...
If the running locale doesn't match any locale in the list,
nothing is selected. Avoid a crash when referring to
first() of an empty list.
2024-02-27 00:28:36 +01:00
Adriaan de Groot
9925d6666f
[calamares] Improve "crash self" functionality
...
Instead of UB, use POSIX signals and terminate the Calamares
process with a recognizable signal number (TRAP, which is
highly unusual).
2024-02-27 00:08:41 +01:00
Adriaan de Groot
2555b5baf4
[calamares] avoid double-quit message
...
In Qt5, QApplication::quit() was sufficient.
In Qt6, QApplication::quit() sends close events to top-level
windows, so we get a duplicate prompt for quit.
See https://blog.broulik.de/2023/11/on-the-road-to-plasma-6-vol-4/
2024-02-27 00:02:03 +01:00
Adriaan de Groot
f57ee158b7
Merge branch 'issue-2212' into calamares
2024-02-26 22:38:28 +01:00
Adriaan de Groot
028e9e68f9
[libcalamares] Add ${LANG} to process expansions
2024-02-26 22:37:20 +01:00
Adriaan de Groot
0f2bceb72f
Docs: process jobmodules now expand variables
2024-02-26 21:58:40 +01:00
Adriaan de Groot
5eac7a021c
Changes: document contributions
2024-02-26 21:42:06 +01:00
Adriaan de Groot
ab3612d18d
[partition] tidy up constructor - use initializer-list
2024-02-26 21:39:37 +01:00
Adriaan de Groot
2fce6a3c44
Merge pull request #2292 from vlinkz/calamares
...
[partition] Make default partition entry have `partNoEncrypt` be false
2024-02-26 21:32:10 +01:00
Victor Fuentes
01cbe07641
Make default partition entry have partNoEncrypt be false
2024-02-26 01:55:26 -05:00
Adriaan de Groot
2697c35fc7
[libcalamares] Run ProcessJobs with CommandLine
...
This makes the behavior of process jobs and shellcommands the same.
2024-02-25 23:22:19 +01:00
Adriaan de Groot
4329b824d4
[libcalamares] Test command-expansion with environment
2024-02-25 23:22:19 +01:00
Adriaan de Groot
0ced01ddc3
[libcalamares] Test environment-setting for CommandLine
2024-02-25 23:22:19 +01:00
Adriaan de Groot
d5555eba32
[libcalamares] Add environment-setting to CommandLine
...
This class is shared -- used by shellprocess and contextualprocess --
to collect the command settings for a single shell invocation.
2024-02-25 23:22:19 +01:00
Adriaan de Groot
6770f781e3
[libcalamares] Tests for new CommandLine constructors
2024-02-25 23:22:19 +01:00
Adriaan de Groot
ae3e609024
[libcalamares] Get default timeout from CommandList
2024-02-25 23:22:19 +01:00
Adriaan de Groot
4aa2c4988c
[libcalamares] Replace factory method with constructor
2024-02-25 23:22:19 +01:00
Adriaan de Groot
0d9d2ac59a
[libcalamares] Extend CommandLine
...
- rename fields so they are meaningful (this is a leftover
from it inheriting std::pair)
- add environment list member
- add constructor that consumes a QVariantMap
2024-02-25 23:22:19 +01:00
Adriaan de Groot
15c514326c
[shellprocess] Improve config docs
2024-02-25 23:22:19 +01:00
Adriaan de Groot
b795fd82bb
[contextualprocess] Improve config docs
2024-02-25 23:22:19 +01:00
Adriaan de Groot
dc91255ff5
Changes: document process changes
...
FIXES #2212
2024-02-25 23:22:19 +01:00
Adriaan de Groot
7379e7f28d
Merge pull request #2288 from calamares/issue-2145
...
[packages] Add a DNF5 PM backend
2024-02-25 20:24:23 +01:00
Adriaan de Groot
633d6bda0d
[libcalamaresui] Be more careful about which bindings are in use
2024-02-24 21:47:24 +01:00
Adriaan de Groot
dbddeaba68
CMake: be more noisy about python technologies
...
- log enabled and disabled features
- enabled python gets logged twice, that's fine
2024-02-24 21:27:45 +01:00
Adriaan de Groot
809d6cdda0
CMake: do not put PYBIND11 on the command-line
...
This is already stored in CalamaresConfig.hfor ABI purposes.
2024-02-24 18:54:33 +01:00
Adriaan de Groot
b37cf66acb
CI: add a fedora-boost CI job, for better coverage
...
All other CI jobs use pybind11.
2024-02-24 13:46:16 +01:00
Adriaan de Groot
be5ce2e60f
[libcalamares] repair boost / pybind split
...
The difference wasn't being recorded in the ABI-parts of
the CalamaresConfig.h header file, and it was unclear if
the two builds were "clean", e.g. no pybind11 stuff in a
boost build and vice-versa.
Tidy that up by writing more ABI info to the header and
double-checking defines when including Python-related
Calamares headers.
2024-02-24 13:27:44 +01:00
Adriaan de Groot
34888edae1
[libcalamares] repair visibility also for Boost::Python modules
2024-02-24 12:45:20 +01:00
Adriaan de Groot
7a3bff5117
[libcalamares] repair visibility also for Boost::Python modules
2024-02-24 12:28:36 +01:00
Adriaan de Groot
b7e34abeaa
Changes: post-release housekeeping
2024-02-24 00:27:17 +01:00
Calamares CI
8741c7ec1a
i18n: [python] Automatic merge of Transifex translations
2024-02-23 23:44:31 +01:00
Calamares CI
ae47c4a64a
i18n: [calamares] Automatic merge of Transifex translations
2024-02-23 23:44:30 +01:00
Adriaan de Groot
d230a28a7a
Changes: pre-release housekeeping
2024-02-23 23:42:34 +01:00
Adriaan de Groot
727c3e95eb
Merge pull request #2291 from demmm/calamares
...
[welcomeq] add Markdown example
2024-02-23 23:39:02 +01:00
demmm
283c1f92bb
[welcomeq] add Markdown example
...
use the release_notes.qml example, move from Richtext to Markdown
2024-02-23 17:09:56 +01:00
Adriaan de Groot
903fed07a9
[partition] Modernize signal-slot connection
2024-02-22 20:43:05 +01:00
Adriaan de Groot
9d1fec3668
[partition] Use a "real" slot for UniqueConnection
2024-02-22 20:37:01 +01:00
Adriaan de Groot
c69e229be0
[calamares] Use a "real" slot for UniqueConnection
...
Multiple reports of the following fatal error:
WARNING (Qt): QObject::connect(QItemSelectionModel, PartitionPage):
unique connections require a pointer to member function of a QObject subclass
suggest to replace the unique lambda by a "real" slot.
2024-02-22 20:26:56 +01:00
Adriaan de Groot
7d63227014
Docs: remind self how to re-connect to a Docker container
2024-02-22 20:21:33 +01:00
Adriaan de Groot
49f13c30a5
CI: expand documentation of build.sh a bit, extra sanity checks
2024-02-22 20:10:56 +01:00
Adriaan de Groot
36dfedfea5
Merge pull request #2290 from demmm/calamares
...
[plasmalnf] CMake correction
2024-02-22 13:44:34 +01:00
demmm
281f4c64bc
[plasmalnf] CMake correction
...
libplasma is not required, if not found just skip the module, like in kf5
2024-02-22 11:50:02 +01:00
Adriaan de Groot
7b2cf57222
Merge pull request #2287 from demmm/calamares
...
[interactivetermianl] enable konsole for Qt6 builds too
2024-02-20 14:02:12 +01:00
Adriaan de Groot
8a5876410e
[packages] Add a DNF5 PM backend
...
I just made this up, checked that the `dnf5` command
in Fedora 39 exists and can run the command-lines
created by this PM backend. (I did install dnf5 into
that Fedora 39 system first)
2024-02-20 13:54:45 +01:00
demmm
b2ef6f9a28
[interactivetermianl] enable konsole for Qt6 builds too
...
4 lines of code duplicated to avoid even more ifdefs
2024-02-20 13:32:33 +01:00
Adriaan de Groot
54265f87b1
[libcalamaresui] Make symbols visible as needed
2024-02-20 12:07:57 +01:00
Adriaan de Groot
dc39791766
[libcalamares] Default symbols to hidden
2024-02-20 11:23:12 +01:00
Adriaan de Groot
dd8af028f7
Changes: new stuff for 3.3.3 so far
2024-02-20 11:17:54 +01:00
Adriaan de Groot
ecf55cb65b
Merge pull request #2286 from demmm/calamares
...
[plasmalnf] enabled Plasma 6 build
2024-02-20 11:00:00 +01:00
Adriaan de Groot
a6591fcaf3
[libcalamares] Make symbols visible as needed
2024-02-20 00:44:48 +01:00
Adriaan de Groot
84b0262f31
[libcalamares] Default symbols to hidden
...
This restores the purpose of DLLEXPORT and helps keep the ABI
small-and-stable.
2024-02-19 23:23:03 +01:00
Adriaan de Groot
54250887e1
[locale] Adapt to changed RegionZonePair
...
- add method that takes a pair directly
- don't act like a pair is a std::pair
2024-02-19 23:04:37 +01:00
Adriaan de Groot
c09953e15e
[libcalamares] Adapt tests to changed RegionZonePair
...
Don't access the pair like it is a std::pair
2024-02-19 23:04:37 +01:00
Adriaan de Groot
d131f51468
[libcalamares] don't inherit RegionZonePair from std::pair
...
There is no reason to stick with std::pair, make this
a regular value type with accessors with meaningful names.
2024-02-19 23:04:37 +01:00
Adriaan de Groot
5a1428154c
[libcalamares] don't inherit CommandLine from std::pair
...
There's no reason not to write out the two data fields,
and we do not use anything else that std::pair offers.
2024-02-19 23:04:22 +01:00
Adriaan de Groot
0c9b3b2f16
[libcalamares] don't inherit InstanceKey from std::pair
...
While tempting, none of the STL containers are intended
for inheritance, and there's risks of slicing when used
as value types. Make InstanceKey a regular value type
data class and add the few operators that we actually
used from std::pair by hand.
2024-02-19 22:18:17 +01:00
Adriaan de Groot
c945cca93a
[libcalamares] untangle GeoIP implementation details
...
Some implementation details should just be compiled
multiple times, rather than wrestling with visibility.
2024-02-19 21:40:10 +01:00
Adriaan de Groot
86f47acf32
Changes: post-release housekeeping
2024-02-19 20:19:38 +01:00
Adriaan de Groot
e87b4457af
Changes: pre-release housekeeping
2024-02-19 19:23:21 +01:00
Adriaan de Groot
1444d9d73a
[libcalamares] Repair misleading comment
...
The class used to be a `using Descriptor =` but that was changed without
updating the comment. Make it class documentation.
2024-02-19 19:22:08 +01:00
demmm
61126b424b
[plasmalnf] enabled Plasma 6 build
...
plasma-framework has been renamed to libplasma and moved away from frameworks
now part of plasma (6 only)
2024-02-19 19:11:55 +01:00
Adriaan de Groot
38d78404b1
[locale*] Modernize setting compile definitions
2024-02-19 00:13:26 +01:00
Adriaan de Groot
a5dbe793d9
[packagechooser*] Modernize linking with dependencies
2024-02-19 00:06:45 +01:00
Adriaan de Groot
87be4c4a81
CMake: provide a convenient external name for modules
...
The target name for a module is annoyingly long and hard-to-read. Set a
parent-scope variable with a nicer name to the full target name.
2024-02-18 23:30:50 +01:00
Adriaan de Groot
cefb437324
[libcalamares] Improve CMake bits
...
- use modern CMake commands, target-based
- make DLLEXPORT_PRO local to the build of libcalamares
- improve locality of includes
2024-02-18 23:19:43 +01:00
Adriaan de Groot
4eba859236
[libcalamares] Simplify symbol-visibility
...
Do not rely on Q_DECL_EXPORT and the like. Since we support basically
only gcc and clang for the kinds of Linux targets Calamares gets used
on, use visibility-specifiers that those compilers understand.
2024-02-18 23:10:35 +01:00
Adriaan de Groot
d7bbfd055c
Merge branch 'issue-2283' into calamares
2024-02-18 22:45:29 +01:00
Adriaan de Groot
1e59092bf5
[partition] Clear jobs and reset intent
...
Start from a clean slate of intentions when applying changes
in the edit dialog. While here, shuffle debugging around so
that we get more useful information at once.
2024-02-18 22:38:03 +01:00
Adriaan de Groot
d640f17ddf
[partition] When format is selected, clear out existing jobs
...
When editing a partition multiple times, do not leave
jobs from previous edits around. Apply fresh jobs each time.
2024-02-17 23:49:13 +01:00
Adriaan de Groot
2ea5a2b5d5
[partition] Set radio buttons conistently
...
Put the setChecked() calls together so that it is obvious
that only one is checked. *Keep* button is the inverse of
*Format* now. Previously, it used only the not-ZFS value,
and so would override the value obtained from the partition's
*format* setting.
2024-02-17 22:47:19 +01:00
Adriaan de Groot
9cea2ca7ed
CI: add pylint to the weekly mix
2024-02-17 18:32:38 +01:00
Adriaan de Groot
e4b9d754df
CI: improve abi-checking script
...
- less frightening warnings
- fewer subshells and `pwd -P` things
- clean up on uccess
2024-02-17 18:20:17 +01:00
Adriaan de Groot
3881737bbd
[partition] Set intent while creating FS-labeling job
2024-02-17 17:55:34 +01:00
Adriaan de Groot
23d203b00b
[partition] Set label intentions for filesystems
...
FIXES #1992
2024-02-17 17:37:02 +01:00
Adriaan de Groot
fc2bb1ede0
[partition] Add a helper for intended FS labels
...
The KPMCore partition label returns what **is**, not
what is intended. While here, fix some typo's in comments.
2024-02-17 17:37:02 +01:00
Adriaan de Groot
d5f32be5e3
[partition] Repair enable/disable status of FS label
...
The entry field was always enabled, but the label of the
FS-label entry field depended on the format button.
2024-02-17 17:03:27 +01:00
Adriaan de Groot
14e9da251a
[libcalamaresui] Avoid Qt warning
...
16:23:24 [2]: WARNING (Qt): QThread::setPriority: Cannot set priority, thread is not running
Start the log widget's thread with a specific priority. This is
ignored on Linux anyway, but we'll avoid the setPriority() warning.
2024-02-17 16:52:06 +01:00
Adriaan de Groot
f23b4ff267
[partition] Preserve the will-it-be-formatted flag of the partition
2024-02-17 16:17:46 +01:00
Adriaan de Groot
918e3c83e6
CI: update ABI-stability base
...
Use the 3.3.0 tag's hash as the beginning of ABI-stability.
2024-02-17 16:05:35 +01:00
Adriaan de Groot
0348af22d9
CMake: fix typo in option description
2024-02-17 15:46:58 +01:00
Adriaan de Groot
ecd8839ac9
[partition] Set up label checkbox later
...
If the update-fs-label checkbox and drop-down depend on the
state of the format button, then set that up only once we're
done deciding on the format button.
2024-02-17 14:26:39 +01:00
Adriaan de Groot
a2b21ee087
[partition] Improve readability in edit-existing-partition
...
Pick out the condition and give it a name. The logic is the
same -- and is made worse because of the if() which looks
redundant at this point.
2024-02-17 14:18:24 +01:00
Adriaan de Groot
0dc3c5bf4a
Changes: mention the NetPlan thing
2024-02-17 14:02:12 +01:00
Adriaan de Groot
54dc2f00f5
AUTHORS: update list of contributors
...
- fixed alphabetization
- added contributors since last update (may 2022)
- removed some duplicates / aliases
2024-02-17 12:14:22 +01:00
Adriaan de Groot
a84555209e
CONTRIBUTING: discuss commit messages and CHANGES file
2024-02-17 12:12:30 +01:00
Adriaan de Groot
283668cb01
[libcalamares] Update sponsor / maintainer information
2024-02-17 11:25:40 +01:00
Adriaan de Groot
22d4bcabc7
Changes: update credits
2024-02-16 22:16:09 +01:00
Adriaan de Groot
4f43e8d303
Merge pull request #2284 from slyon/netplan
...
[RFC] networkcfg: Configure NetworkManager to be the default Netplan renderer
2024-02-13 20:11:10 +01:00
Lukas Märdian
562cae387c
networkcfg: Configure NetworkManager to be the default renderer
...
When Netplan is installed in the target system:
In case NM is not yet set to be the default Netplan renderer (e.g. through a
/usr/lib/netplan/00-network-manager-all.yaml file shipped by an installed
package), create the /etc/netplan/01-network-manager-all.yaml configuration
and copy over all other Netplan configuration from the installer system.
2024-02-13 16:13:31 +01:00
Adriaan de Groot
932b9a5af7
i18n: update translation sources
2024-02-12 21:39:36 +01:00
Adriaan de Groot
f5e09cd676
[partition] Write out translation context
...
lupdate isn't smart enough to pick up `context` when it's
a variable, and then the whole string is not found for
translation.
2024-02-12 21:30:52 +01:00
Adriaan de Groot
f8448e3c97
[partition] Clarify documentation of static functions
2024-02-12 21:28:15 +01:00
Adriaan de Groot
bb53d0cd5d
Changes: update contributors
2024-02-12 21:15:55 +01:00
dalto8
11522fa44e
Merge pull request #2280 from ArrayBolt3/calamares
...
[partition] Allow specifying unencrypted partitions when encryption is used
2024-02-08 19:58:52 +00:00
dalto8
60989290e0
Merge pull request #2282 from iam-TJ/issue2281_crypto_keyfile
...
fstab: do not overwrite partition["mountPoint"]
2024-02-08 19:58:15 +00:00
Tj
1d996d1f9a
fstab: do not overwrite partition["mountPoint"]
...
When using BTRFS multiple subvolumes exist and whilst iterating them the
partition["mountPoint"] is inadvertently changed due to taking a
reference rather than a copy.
Closes: issue #2281
2024-02-07 16:21:24 +00:00
Aaron Rainbolt
22763ae970
Merge branch 'calamares:calamares' into calamares
2024-02-06 18:09:31 -06:00
Adriaan de Groot
84c9fd457f
i18n: update languages lists
2024-02-06 16:55:47 +01:00
Calamares CI
0923b54d54
i18n: [python] Automatic merge of Transifex translations
2024-02-06 16:52:40 +01:00
Calamares CI
b95392a59e
i18n: [calamares] Automatic merge of Transifex translations
2024-02-06 16:52:40 +01:00
Aaron Rainbolt
546bedef11
[partition] Allow specifying unencrypted partitions when encryption is used
2024-02-05 19:24:05 -06:00
Adriaan de Groot
46eaf6f450
CI: warn earlier about weird lupdate strings
2024-02-04 23:01:38 +01:00
Calamares CI
7773e0bfc8
i18n: [python] Automatic merge of Transifex translations
2024-02-04 22:50:31 +01:00
Calamares CI
12892ccfe4
i18n: [calamares] Automatic merge of Transifex translations
2024-02-04 22:50:30 +01:00
Adriaan de Groot
4e065b1ba9
[qml] Tidy up cmake bits, credit to contributor
2024-02-04 22:26:03 +01:00
Adriaan de Groot
25f9eaf523
[libcalamares*] Prefer < comparisons in Qt version
2024-02-04 22:06:55 +01:00
Adriaan de Groot
7d7a4597c1
[libcalamaresui] prefer < comparison of Qt versions
2024-02-04 22:06:55 +01:00
Adriaan de Groot
fd2610c739
[*] Remove pre-Qt-5.15 compatibility ifdefs
2024-02-04 22:06:51 +01:00
Adriaan de Groot
2ea4d365f9
Merge pull request #2277 from calamares/slideshow-qt6
...
port slideshow to Qt 6
2024-02-04 21:20:57 +01:00
Jonathan Esk-Riddell
7b13d0b62f
rename directory
2024-01-26 14:50:42 +00:00
Jonathan Esk-Riddell
c9685168e0
fix selection logic
2024-01-26 14:49:21 +00:00
Adriaan de Groot
e5781d9f89
Merge pull request #2274 from demmm/calamares
...
KaOS has moved to Qt6/kf6 only for Calamares
2024-01-25 21:04:50 +01:00
Jonathan Esk-Riddell
ed540673d9
port slideshow to Qt 6
2024-01-25 15:42:19 +00:00
demmm
9899bf8cd0
KaOS has moved to Qt6/kf6 only for Calamares
...
adjust deps-kaos.sh accordingly
2024-01-23 11:25:11 +01:00
Adriaan de Groot
627465a734
CI: do not use GitLab syntax in GitHub
2024-01-22 21:31:46 +01:00
Adriaan de Groot
34776bb0ea
CI: weekly with Debian instead
2024-01-22 21:28:21 +01:00
Adriaan de Groot
64bb924062
CI: repair name of weekly job
2024-01-22 19:57:29 +01:00
Adriaan de Groot
762bd0eab1
CI: repair supported cron syntax
2024-01-22 19:56:16 +01:00
Adriaan de Groot
2dfd3688ca
CI: try a weekly build of core and extensions
2024-01-22 19:47:09 +01:00
Adriaan de Groot
d38f93c6ed
CMake: post-release housekeeping
2024-01-15 23:46:49 +01:00
Adriaan de Groot
ba2ef08bfa
Changes: pre-release housekeeping
2024-01-15 19:54:01 +01:00
Adriaan de Groot
881347b9c2
[locale,packagechooser] (Auto-)Tests should not require GUI
2024-01-15 00:14:56 +01:00
Adriaan de Groot
94cb026ad8
i18n: update English source texts
2024-01-14 21:35:17 +01:00
Adriaan de Groot
f8245ebb6e
CMake: add missing includes
...
-extensions won't build unless the CMake modules are (somewhat) self-contained.
2024-01-12 23:15:01 +01:00
Adriaan de Groot
1b655c26ef
[libcalamares] Remove TMP-related environment variables
...
When running a command in the chroot, don't set TMP (and similar)
variables because those directories might nog make sense in the
target (yet).
FIXES #2269
2024-01-12 23:04:26 +01:00
Adriaan de Groot
5583c15291
CI: ubuntu needs to explicitly install Ninja
2024-01-09 22:53:48 +01:00
Adriaan de Groot
437a30fdcf
Merge pull request #2267 from udeved/headers-install-fix
...
libcalamares: add compat and packages headers to be installed;
2024-01-02 23:07:10 +01:00
78eeb963a3
libcalamares: add compat and packages headers to be installed;
...
Use case would be customization of default modules, eg packagechooser requires compat/Variant.h and packages/Globals.h to compile in the calamares-extension repo
Signed-off-by: artoo <artoo@artixlinux.org >
2024-01-02 22:57:08 +01:00
Adriaan de Groot
db4730107d
Changes: document recent contributions
2024-01-02 22:40:10 +01:00
Adriaan de Groot
58117de3e3
CI: enable AppStream for those CIs that have it in their deps
2024-01-02 22:40:10 +01:00
Adriaan de Groot
d38a48e900
[packagechooser] Make AppData and AppStream optional default OFF
...
If set to *ON*, then the dependencies for these two are required
(e.g. QtXml and/or AppStreamQt).
2024-01-02 22:40:10 +01:00
Adriaan de Groot
2798dee036
Merge pull request #2266 from lubuntu-team/calamares
...
Add an Ubuntu devel CI
2024-01-02 21:02:15 +01:00
Simon Quigley
76a0b00550
Add an Ubuntu devel CI.
2024-01-02 11:52:22 -06:00
Adriaan de Groot
062171a2f0
[packagechooser] Use the found-directory for AppStream headers
2024-01-01 21:45:48 +01:00
Adriaan de Groot
94bc244965
CMake: also help find where the AppStream headers are
2024-01-01 21:45:34 +01:00
Adriaan de Groot
8a199aaaf9
[packagechooser] Split out helper for AppStreamQt
...
- add a CMake helper for finding variations of AppStreamQt
- adapt packagechooser and packagechooserq
- adopt a slightly more modern CMake style here
2023-12-31 01:07:08 +01:00
Adriaan de Groot
02aa49d442
CMake: drop "view" alias for module type
...
Allowing aliases and not using a canonical name for
them (e.g. mapping "view" to "viewmodule") is annoying
since the target name depends on which alias is passed
in to the function. Drop one of the two aliases.
2023-12-31 01:07:08 +01:00
Adriaan de Groot
f847f90842
Changes: document some recent updates and contributions
2023-12-30 20:55:16 +01:00
Adriaan de Groot
fa2b96e9cc
[partition] Fix build
2023-12-30 20:55:04 +01:00
Adriaan de Groot
7971bff2da
Merge pull request #2106 from Sunderland93/gtkgreet-css-config
...
greetd: Add custom CSS file path to gtkgreet
2023-12-30 20:45:40 +01:00
Adriaan de Groot
6cbed0f458
[partition] Remove extra-extra context string
2023-12-30 19:27:16 +01:00
Adriaan de Groot
e326758900
[partition] Massage types of job messages
2023-12-30 19:23:52 +01:00
Adriaan de Groot
ee09fd6613
[partition] Tidy up strings in flag job messages
...
- the prettyName() function returns names, labels. Use @title context.
- the prettyDescription() is for the summary page. Use @info context.
- the prettyStatus() is for status during installation. Use @status context.
While here, tighten up the wording some.
2023-12-30 17:42:16 +01:00
Adriaan de Groot
a48a16646b
Merge pull request #2260 from bitigchi/strings
...
Improve context
2023-12-30 12:35:32 +01:00
Emir SARI
1401f4ff21
Improve context
2023-12-28 00:07:31 +03:00
Adriaan de Groot
6ef7d23168
i18n: try to avoid re-introducing weird markers
2023-12-27 20:50:10 +01:00
Adriaan de Groot
3be99a9ac7
i18n: update source texts
2023-12-27 20:49:53 +01:00
Adriaan de Groot
040f424931
[locale] Tweak string to avoid lupdate inserting {1?}
2023-12-27 00:53:26 +01:00
Adriaan de Groot
93ce2daff0
[machineid] Drop namespace to avoid lupdate warnings
2023-12-27 00:41:03 +01:00
Adriaan de Groot
0ac170c3de
[summary] Split out classes to help lupdate
...
One QObject-based class per source file helps lupdate
figure out what goes where, avoids warning about unknown
class / namespace ::Config.
2023-12-27 00:28:26 +01:00
Adriaan de Groot
115f00f5cd
[libcalamares] Rename tr() functions to avoid confusing lupdate
2023-12-25 14:24:06 +01:00
Adriaan de Groot
e73f5fb9fe
[libcalamaresui] update percentage indicator on language change
...
Otherwise starting in one language will never change the
formatting of percentages when the language changes
later (example: Turkish writes %30, while Dutch writes 30%).
FIXES #2258
2023-12-25 00:06:00 +01:00
Adriaan de Groot
cd0a381a35
CI: make the openSUSE docker (Qt5) container more comfortable
2023-12-24 23:37:36 +01:00
Adriaan de Groot
709296940c
i18n: suppress duplicated languages
...
The list of translations from Transifex contains "en", and we
add it explicitly a second time -- instead of fixing those and
needing to ensure that the source language is returned, or optionally
adding "en" if it isn't in the list already, just de-duplicate.
FIXES #2257
2023-12-24 23:01:37 +01:00
Adriaan de Groot
00821945c5
Changes: post-release housekeeping
2023-12-15 15:59:58 +01:00
Adriaan de Groot
1d8a197242
[partition] Repair test
...
Was picking up settings stored from a previous test,
leading to a spurious failure.
2023-12-12 00:04:06 +01:00
Adriaan de Groot
8e5fbef390
[users] Repair test of now-removed "nonempty" option
2023-12-11 22:55:36 +01:00
Adriaan de Groot
15710ef814
Changes: pre-release housekeeping
2023-12-11 22:53:48 +01:00
Calamares CI
1554424e1b
i18n: [python] Automatic merge of Transifex translations
2023-12-11 22:20:33 +01:00
Calamares CI
8818a0381a
i18n: [calamares] Automatic merge of Transifex translations
2023-12-11 22:20:28 +01:00
Adriaan de Groot
558f045b65
Merge pull request #2252 from calamares/issue-2225
...
Add support for systemd-machine-id variations
2023-12-11 22:18:03 +01:00
Adriaan de Groot
dd848142ad
Merge pull request #2253 from Conan-Kudo/fix-mount-defaults
...
Fix mount defaults
2023-12-10 20:17:54 +01:00
Neal Gompa
5f897468ef
[mount] Set btrfs compression default to zstd:1 to match comment default
...
The comment and examples above the mountOptions already indicate
zstd:1 for compression. Empirically, this has proven out to be a
reasonable default choice and should be actually used in the default
configuration.
2023-12-09 17:45:55 -05:00
Neal Gompa
84e66f8512
[mount] Drop noatime for baseline and btrfs defaults
...
The usage of noatime has subtle negative impacts on the system,
including breaking various utilities that rely on that information.
If a user or distribution explicitly chooses this, then they
acknowledge this problem and account for it, but it should not be
an uninformed default.
It's left in place for swap because it does not matter there and
likely reduces thrashing for swap files.
2023-12-09 17:45:40 -05:00
Adriaan de Groot
6b0d52ca5b
Changes: add credits
2023-12-09 01:01:50 +01:00
Adriaan de Groot
acd0875f1d
[users] Use more-modern CMake constructs
2023-12-09 00:59:26 +01:00
Adriaan de Groot
b2d9b20edc
Merge pull request #2248 from EbonJaeger/add-crypt-gensalt-support
...
users: Add support for crypt_gensalt for user passwords
2023-12-09 00:25:43 +01:00
Adriaan de Groot
1b37eb1262
[machineid] Read systemd-style from config
2023-12-09 00:08:38 +01:00
Adriaan de Groot
89348910c3
[machineid] Document aliases (not visible in schema)
2023-12-09 00:08:19 +01:00
Adriaan de Groot
2f740564c6
[machineid] Run systemd-machine-id in host, telling it to modify target
2023-12-08 23:37:48 +01:00
Adriaan de Groot
e04e0260c9
[machineid] Apply coding style
2023-12-08 23:15:32 +01:00
Adriaan de Groot
e5ee28329d
[machineid] Handle different settings of systemd-style
2023-12-08 22:43:00 +01:00
Adriaan de Groot
0eb387d6de
[machineid] Default to running systemd-machine-id
2023-12-08 22:26:32 +01:00
Adriaan de Groot
0d11de4525
[libcalamares] Add missing parameter name
2023-12-08 22:04:46 +01:00
dalto8
82fd10408c
Merge pull request #2234 from ArrayBolt3/calamares
...
[grubcfg] Don't silently ignore missing grub configuration items
2023-12-02 21:19:14 +00:00
Adriaan de Groot
e2899ffa1d
CI: ensure the right ECM
2023-12-02 00:28:54 +01:00
Aaron Rainbolt
7e6ac140c4
[grubcfg] Write config keys even if they don't already exist
2023-12-01 15:46:36 -06:00
Adriaan de Groot
d2214b8d2e
[users] Document retirement of 'nonempty'
2023-12-01 18:15:00 +01:00
Adriaan de Groot
4e3de90cd0
[users] Document password settings
2023-12-01 18:01:58 +01:00
Adriaan de Groot
4262d9f051
[users] Expand documentation of the settings
2023-11-29 21:55:20 +01:00
Adriaan de Groot
a73266dc4c
Merge pull request #2250 from fhdk/patch-1
...
Update CHANGES-3.3
2023-11-28 23:44:45 +01:00
dalto8
e8d0fa140a
Merge pull request #2249 from EbonJaeger/add-clr-boot-manager-support
...
bootloader: Add clr-boot-manager support
2023-11-28 18:51:21 +00:00
Frede H
7fb31de183
Update CHANGES-3.3
2023-11-28 10:03:44 +01:00
Evan Maddock
1b07de6fa7
Apply suggestions from code review
...
Co-authored-by: Adriaan de Groot <groot@kde.org >
2023-11-27 19:02:50 -05:00
dalto8
63ce03680b
Merge pull request #2246 from fhdk/initcpiocfg-bash-array-update
...
[initcpiocfg] use f-string - use new style bash array (issue #2243 )
2023-11-27 18:22:38 +00:00
Frede H
d5f8fa11d9
Update CHANGES-3.3
2023-11-27 18:57:50 +01:00
Evan Maddock
7a4d03e2c1
bootloader: Write all kernel params to the kernel cmdline file for CBM
...
Signed-off-by: Evan Maddock <maddock.evan@vivaldi.net >
2023-11-27 10:47:51 -05:00
Evan Maddock
e13dbc621a
bootloader: Add clr-boot-manager support
...
This adds support for Clear Boot Manager to handle the bootloader installation and configuration.
When this option is selected in the bootloader.conf, clr-boot-manager will be used to install the bootloader (systemd-boot on EFI systems). If the system is non-EFI, Grub must be installed first, because clr-boot-manager doesn't do that, despite it running grub_mkconfig after.
Signed-off-by: Evan Maddock <maddock.evan@vivaldi.net >
2023-11-26 17:27:57 -05:00
Evan Maddock
559d19018c
users: Add support for crypt_gensalt for user passwords
...
This attempts to locate the presense of the crypt_gensalt function in the crypto library in use. Many distributions have switched to libxcrypt, which provides this function. This means that Calamares can use the native library implementation instead of generating password salts itself, which, depending on the distro's configuration, may be more secure.
If the function can not be found, fallback to the current method of generating password salts.
Signed-off-by: Evan Maddock <maddock.evan@vivaldi.net >
2023-11-26 16:54:07 -05:00
Adriaan de Groot
7a9a50d702
[libcalamares] AutoMount / kded6 has been tested by KaOS
2023-11-26 21:53:04 +01:00
Frede Hundewadt
98d534d5dd
[initcpiocfg] use f-string - use new style bash array (issue #2243 )
2023-11-26 14:57:19 +01:00
Adriaan de Groot
26236fe63a
Changes: post-release, add some credits
2023-11-23 21:08:05 +01:00
Adriaan de Groot
a3d06e6d77
Merge pull request #2242 from krop/calamares
...
Update openSUSE repositories
2023-11-23 21:06:09 +01:00
Christophe Marin
b37afd4269
Update openSUSE repositories
...
Also make sure refresh is enabled.
2023-11-22 18:31:46 +01:00
Adriaan de Groot
01e7cf44c2
[libcalamares] Placeholder for KF6 automount DBus calls
2023-11-21 15:22:09 +01:00
Adriaan de Groot
5809b32c98
CI: expand fedora dependencies
2023-11-21 15:11:59 +01:00
Adriaan de Groot
8748a52c68
[keyboard] Add explanatory translation comment
2023-11-20 20:31:58 +01:00
Adriaan de Groot
65f93168f2
Merge pull request #2240 from demmm/calamares
...
[CMake] use KPMCore version to select Qt6
2023-11-19 20:57:45 +01:00
demmm
0e2fa42b60
[CMake] use KPMCore version to select Qt6
...
with 2588d1e796
KPMCore is Qt6 only, so any version from 24.01.75 on is Qt6, no need to check for Qt version this way
add missing NO_CONFIG to summaryq
2023-11-19 15:40:29 +01:00
Adriaan de Groot
5f06b321b2
CMake: correct copy-paste-o for destination of config files
2023-11-16 23:23:58 +01:00
Adriaan de Groot
146f549552
[libcalamares] Return None for empty GS keys
...
All unknown-variants return None, but this only
happens in practice with an empty variant (e.g.
a configuration key that is empty in the YAML).
FIXES #2237
2023-11-16 23:17:33 +01:00
Adriaan de Groot
8305b6cb1a
[dummypython] Demonstrator for #2237
2023-11-16 23:10:53 +01:00
Adriaan de Groot
51a1d06c51
Changes: pre-release housekeeping
2023-11-16 22:54:17 +01:00
Adriaan de Groot
63211c86de
Merge pull request #2236 from demmm/calamares
...
[partition] make the tests also build with Qt6
2023-11-16 22:51:13 +01:00
demmm
de85a02f74
[partition] make the tests also build with Qt6
2023-11-15 14:19:15 +01:00
Adriaan de Groot
8868ae956a
[partition] Repair comparison
2023-11-14 13:50:08 +01:00
Adriaan de Groot
65e0740c49
Changes: post-release housekeeping
2023-11-13 21:57:45 +01:00
Adriaan de Groot
12413ad9e8
[partition] Add test demonstrating size edge-case
2023-11-13 21:32:05 +01:00
Adriaan de Groot
5c0b20d06a
[partition] Enforce minimum <= recommended.
2023-11-13 21:28:10 +01:00
Adriaan de Groot
2ab0041180
[localeq] Repair translation-related typo
...
This would lead to a runtime error when loading the QML.
2023-11-13 20:10:52 +01:00
Calamares CI
ab6b7102e0
i18n: [python] Automatic merge of Transifex translations
2023-11-13 19:51:20 +01:00
Calamares CI
849ece4bb0
i18n: [calamares] Automatic merge of Transifex translations
2023-11-13 19:51:20 +01:00
Adriaan de Groot
2cf2665b84
Changes: pre-release housekeeping
2023-11-13 19:48:10 +01:00
Adriaan de Groot
6b1226d5ea
Merge pull request #2206 from geckolinux/patch-1
...
Correct the comment description of the "Replace" partition behavior
2023-11-13 19:18:00 +01:00
Adriaan de Groot
eb77b208f8
Merge pull request #2226 from bitigchi/strings
...
Improve string formatting and context
2023-11-13 19:17:12 +01:00
Adriaan de Groot
1e1e12fad2
Merge branch 'issue-2018' into calamares
...
FIXES #2018
2023-11-13 00:47:31 +01:00
Adriaan de Groot
196dd55784
[partition] Test mixed-with-overlap settings
2023-11-13 00:40:58 +01:00
Adriaan de Groot
3e758d2d5c
[partition] Extend test, fix bug indicated by test
...
Copy-paste-o, was using wrong string value for minimum size,
found by failing unit test.
2023-11-13 00:37:03 +01:00
Adriaan de Groot
45c11135b8
[partition] Extend tests with more config examples
2023-11-13 00:31:18 +01:00
Adriaan de Groot
d9aeb88275
[libcalamares] Add a clear() to GlobalStorage
...
While this isn't useful in production, it makes tests a lot
simpler to write since you don't have to wrestle with
creating new GS objects in order to start fresh.
2023-11-12 22:41:02 +01:00
Adriaan de Groot
f07e31de29
[partition] Test for basic legacy configuration
2023-11-12 22:28:27 +01:00
Adriaan de Groot
13acdace42
[partition] Start of tests for config
2023-11-11 23:46:00 +01:00
Emir SARI
37178b2273
Improve context
2023-11-10 13:34:01 +03:00
Adriaan de Groot
85350e63ef
[partition] Put EFI settings in a sub-map
2023-11-09 23:31:17 +01:00
Adriaan de Groot
eb08c3facd
[partition] Use API for consistent EFI-size GS key
...
While here, remove the textual entry in GS, which was unused.
2023-11-09 22:29:33 +01:00
Adriaan de Groot
449fba03be
[partition] Factor out GS keys for EFI-size sharing
2023-11-09 22:17:51 +01:00
Adriaan de Groot
b06afd9074
[partition] Read minimum EFI size from GS
2023-11-09 22:06:12 +01:00
Adriaan de Groot
b72508546c
[partition] Simplify variables for error messages
2023-11-09 21:57:55 +01:00
Adriaan de Groot
2b0c41609d
CMake: restore INSTALL_CONFIG
2023-11-09 21:52:12 +01:00
Adriaan de Groot
1e12ad344f
Changes: notes on some modifications
2023-11-09 00:34:05 +01:00
Adriaan de Groot
94caa9338a
Merge pull request #2230 from Conan-Kudo/ci-fedora-40
...
CI: Switch Fedora Qt 6 builds to Fedora Linux 40
2023-11-09 00:26:03 +01:00
Neal Gompa
2bd4c19a7d
CI: Switch Fedora Qt 6 builds to Fedora Linux 40
...
Fedora Linux 40 has the necessary components as part of upgrading
to KDE Plasma 6.
2023-11-08 06:42:16 -05:00
Adriaan de Groot
6e9dac3417
libcalamares: apply coding style
2023-11-07 23:43:09 +01:00
Adriaan de Groot
c506808d72
partition: factor out 32_MiB constant
2023-11-07 23:41:10 +01:00
Adriaan de Groot
d0ae922439
partition: introduce accessor for minimum-size EFI
2023-11-07 23:37:31 +01:00
Adriaan de Groot
45529ebdc1
partition: rename API to emphasize recommended and strict-minimum
2023-11-07 23:30:56 +01:00
Adriaan de Groot
bc45f57b48
partition: introduce more settings for EFI size
2023-11-07 22:46:39 +01:00
Adriaan de Groot
ac265e6ff7
Changes: add contributor names
2023-11-07 21:56:49 +01:00
Adriaan de Groot
1051033324
libcalamares: create Python module libcalamares by hand
...
From inside Calamares, register libcalamares to the
interpreter by hand; from external Python processes
the regular extension library hooks are called.
Tested by running ./build/localmodule dummypython
(which means that the shared library is not present
in the current directory, so then `import libcalamares`
fails if the module is not already registered --
a test scenario that previous attempt at module
import missed).
2023-11-07 21:42:05 +01:00
Adriaan de Groot
a629e2650a
libcalamares: importing the embedded python module can fail
2023-11-07 13:40:10 +01:00
Adriaan de Groot
5346008b7a
libcalamares: repair names for recent translations
...
bqi is one possible name of Luri / Lhur language,
as far as I can tell -- there is also Northern Luri,
which is supported by Qt and has code lrc.
ie is Interlingue, which Qt maps to C locale.
Work around that by mapping it to interlingua.
2023-11-07 13:25:37 +01:00
Adriaan de Groot
cb42b3af6a
i18n: update language list
2023-11-07 13:13:26 +01:00
Calamares CI
bcd753c28b
i18n: [python] Automatic merge of Transifex translations
2023-11-07 13:13:26 +01:00
Calamares CI
637084511e
i18n: [calamares] Automatic merge of Transifex translations
2023-11-07 13:13:26 +01:00
Adriaan de Groot
32f8a3cbac
i18n: adapt txstats to newer Transifex API
...
The language list hasn't updated in a long time, and the API
changed underneath. Update the getter -- while at it, this
changes the "completion" criterium to count only the strings
in Calamares itself, not the fdo + python bits too.
2023-11-07 12:57:39 +01:00
Adriaan de Groot
d2c3f7a326
libcalamares: improve formatting of Qt error messages
...
These come through without function information, but we
can format them in one line by mis-using function info.
2023-11-07 00:53:10 +01:00
Adriaan de Groot
b57db97412
libcalamares: massage logging
...
Make the log-to-file always follow columns (with time
at the start of each line) so that stdout and the
log file look more alike.
2023-11-07 00:53:10 +01:00
Adriaan de Groot
cdd50681cd
calamares: log settings and logfile paths again
...
When setting up the application, output goes to stdout,
so do it again once the logfile is configured, so that
these specific settings are in the log file as well.
2023-11-07 00:53:10 +01:00
Adriaan de Groot
18689074a8
libcalamares: add accessor for settings path
2023-11-07 00:53:10 +01:00
Adriaan de Groot
cfadf8f95a
CI: add a -deps shell script for EndeavourOS
2023-11-07 00:53:10 +01:00
dalto8
ce1ecdba32
Merge pull request #2227 from jpwhiting/work/whiting/dontmountemptysubvolume
...
If a mountPoint has subvolume: "" don't try to mount the subvolume with a wrong "subvol=," argument.
2023-11-05 18:55:23 +00:00
Adriaan de Groot
848137390e
Merge pull request #2228 from jpwhiting/work/whiting/sparsersync
...
Use rsync option -S
2023-11-04 22:41:17 +01:00
Gaël PORTAY
194ebeba94
Use rsync option -S
...
The filesystems may contains huge sparse files (for example the docker
data file at path /var/lib/docker/devicemapper/devicemapper/data that is
100G big).
These files causes rsync to fail if the target file-system is too small
to copy them.
The option --sparse tells rsync to turn sequences of nulls into sparse
blocks.
--sparse, -S
Try to handle sparse files efficiently so they take up less
space on the destination. If combined with --inplace the file
created might not end up with sparse blocks with some
combinations of kernel version and/or filesystem type. If
--whole-file is in effect (e.g. for a local copy) then it will
always work because rsync truncates the file prior to writing
out the updated version.
Note that versions of rsync older than 3.1.3 will reject the
combination of --sparse and --inplace.
This adds the rsync short option -S to let rsync handle sparse files.
Fixes:
18:03:36 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
Running "env" ("sync")
.. Finished. Exit code: 0
.. Target cmd: ("sync") output:
rsync: [receiver] write failed on "/tmp/calamares-root-81qie5d1/var/lib/docker/devicemapper/devicemapper/data": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(378) [receiver=v3.2.3]
Signed-off-by: Jeremy Whiting <jpwhiting@kde.org >
2023-11-03 09:59:06 -06:00
Jeremy Whiting
deb35d8b49
If a mountPoint has subvolume: "" don't use subvol= arguments.
...
When testing with a / mountPoint set to subvolume: "" it tried and
failed to mount the subvolume:
.. Running ("mount", "-t", "btrfs", "-o", "subvol=,", "/dev/sda3", "/tmp/calamares-root-ylvhpxys/")
.. Target cmd: ("mount", "-t", "btrfs", "-o", "subvol=,", "/dev/sda3", "/tmp/calamares-root-ylvhpxys/") Exit code: 32 output:
mount: /tmp/calamares-root-ylvhpxys: wrong fs type, bad option, bad superblock on /dev/sda3, missing codepage or helper program, or other error.
This fix makes the following config in mount.conf let us drop out of any
subvolume handling:
btrfsSubvolumes:
- mountPoint: /
subvolume: ""
2023-11-03 08:27:36 -06:00
Adriaan de Groot
44d12379bd
machineid: pass around enum for style
2023-11-02 21:22:35 +01:00
Adriaan de Groot
97da73b170
CI: don't fail the deps-installation scripts
...
Let CMake detect missing dependencies, one stage later in CI
2023-10-31 16:29:54 +01:00
Adriaan de Groot
083b0fb1e5
machineid: add configuration option for machine-id
...
SEE #2225
2023-10-30 23:25:21 +01:00
Adriaan de Groot
d3a767bad8
Merge branch 'issue-2018' into calamares
...
FIXES #2018
2023-10-30 22:40:34 +01:00
Adriaan de Groot
f6d1d81b01
partition: re-jig the EFI partition messages
2023-10-30 22:40:13 +01:00
Adriaan de Groot
026d1cb5e4
partition: add checks for absolute minimum size of EFI
2023-10-30 21:24:24 +01:00
Adriaan de Groot
f55161c06a
Merge branch 'issue-2202' into calamares
...
FIXES #2202
2023-10-30 20:08:52 +01:00
Adriaan de Groot
757f8a8f9e
packagechooser: handle differences in AppStreamQt API
2023-10-30 20:08:19 +01:00
Adriaan de Groot
a6dd49ac07
packagechooser: rename #define for AppStreamQt
...
Make explicit that it is set to a version (if it is defined at all).
2023-10-30 00:37:38 +01:00
Adriaan de Groot
b7545fded3
dummypython: add a ton of calls to setprogress()
...
Stress testing for #1912
2023-10-29 22:03:28 +01:00
Adriaan de Groot
8688285a25
CI: enable schema checks in the openSUSE nightly
2023-10-29 21:47:03 +01:00
Adriaan de Groot
741fe03969
netinstall: repair schema
...
The URIs were now being resolved (to the calamares.io domain) rather
than looked up locally. Make them local by prepending #/ in $ref s
2023-10-29 21:41:33 +01:00
Adriaan de Groot
82b5d50c34
CI: adapt schema tool to recent releases of pyyaml
...
Don't import a specific draft validator (it isn't used anyway,
and the validator is picked up from the schema's version)
2023-10-29 21:40:31 +01:00
Adriaan de Groot
350be92cd1
Merge branch 'work/adridg/pybind-fix' into calamares
...
FIXES #2223
2023-10-29 00:38:22 +02:00
Adriaan de Groot
fe45d32ef9
luksbootkeyfile: repair schema (add missing enum value)
2023-10-29 00:34:57 +02:00
Adriaan de Groot
db02ae0ce7
bootloader: repair schema (add missing properties)
2023-10-29 00:30:57 +02:00
Adriaan de Groot
ee90fee7bb
CMake: be more chatty around results of validation-dependency check
2023-10-28 22:32:11 +02:00
Adriaan de Groot
627cb6b90a
CMake: adapt to deprecations in CMake 3.28
2023-10-28 22:31:12 +02:00
demmm
27934ddaac
Merge pull request #2224 from demonkillerr/calamares
...
Fix small typo in module config documentation
2023-10-26 11:02:48 +02:00
DemonKiller
8f82dc8668
fix small typo in docs
2023-10-26 13:17:50 +05:30
Adriaan de Groot
5f011e5d19
CI: bump fedora to latest
2023-10-25 23:58:05 +02:00
Adriaan de Groot
e68f7b0bf3
dummypython: log things more sensibly
2023-10-25 00:35:50 +02:00
Adriaan de Groot
c5139e62bc
libcalamares: one more round with module
...
Tested with:
- python -c 'import libcalamares ; print(libcalamares.VERSION);'
- loadmodule dummypython
- full install of KaOS
2023-10-24 23:46:58 +02:00
Adriaan de Groot
1c0559affa
libcalamares: don't bind to temporaries
...
Clang warns about range-for-loop binding a reference
to temporaries, and these are pybind11 handles anyway
so are cheap to copy.
2023-10-24 22:18:10 +02:00
Adriaan de Groot
d435ddd955
libcalamares: don't name unused parameters
2023-10-24 22:15:10 +02:00
Adriaan de Groot
5d1b94a708
libcalamares: don't name unused parameters
2023-10-24 22:14:26 +02:00
Adriaan de Groot
f24df7ccc9
libcalamares: use Pybind11Helpers consistently
...
This header includes all of the needed pybind11 headers,
but also wrangles defines and warnings in one spot.
2023-10-24 22:13:06 +02:00
Adriaan de Groot
019450132e
libcalamares: add missing parent constructor call to PythonJob
2023-10-24 22:06:25 +02:00
Adriaan de Groot
1c2480a308
packagechooser: suppres signedness warning
2023-10-24 21:55:03 +02:00
Adriaan de Groot
d0bb6134ae
keyboard: remove unused variable
2023-10-24 21:48:58 +02:00
Adriaan de Groot
dac6931e81
libcalamares: switch Python to an embedded module
...
This breaks python scripts that `import libcalamares` running
outside of the framework (e.g. outside of a Calamares job).
2023-10-24 15:33:26 +02:00
Adriaan de Groot
8bea736651
libcalamares: make VERSION in Python modules the full-version
2023-10-24 15:31:09 +02:00
Adriaan de Groot
da0ce1d3d6
libcalamares: move Python module-definitions to the Job
2023-10-24 15:29:07 +02:00
Adriaan de Groot
3ffa4f5bf6
libcalamares: mount() is part of the Python API
2023-10-24 15:24:12 +02:00
Adriaan de Groot
0d3519fe79
libcalamares: tidy up API documentation
...
The __attribute__ on the namespace confuses clang-tidy, which is
why this one namespace is indented.
2023-10-24 15:14:08 +02:00
Adriaan de Groot
ede1c29a0e
libcalamares: embed the pybind11 API differently
2023-10-24 15:04:08 +02:00
Adriaan de Groot
f496570df4
CI: accept more clang-format versions
2023-10-24 14:55:24 +02:00
Adriaan de Groot
367c434754
Merge branch 'work/adridg/nam-thread' into calamares
2023-10-24 14:10:02 +02:00
Adriaan de Groot
4f585b6f2e
CI: improve KaOS dependencies installation
2023-10-24 11:32:14 +02:00
Adriaan de Groot
7790d52a4d
CI: improve KaOS deps installation
2023-10-24 02:15:34 +02:00
Adriaan de Groot
6ba8d9fd7d
modules: adapt to changes in network manager
2023-10-24 02:01:19 +02:00
Adriaan de Groot
8ebba4fcff
libcalamares*: adapt consumers of network manager
2023-10-24 02:01:19 +02:00
Adriaan de Groot
35998066c2
libcalamares: re-do singleton-ness of NetworkAccessManager
...
The Calamares Manager should not be a singleton; it is needed
in multiple threads (e.g. from QML). It can have a singleton
Private manager that caches and shares things, though.
2023-10-24 02:01:19 +02:00
Adriaan de Groot
cfc5b03264
contextualprocess: repair typo from string-fix
2023-10-24 00:01:06 +02:00
Adriaan de Groot
01564695a6
CI: add a deps-kaos for convenience in building there
2023-10-24 00:00:21 +02:00
Adriaan de Groot
7141450e37
Changes: credit for openSUSE CI updates
2023-10-23 23:07:31 +02:00
Adriaan de Groot
8edb5f4290
Merge pull request #2222 from bitigchi/strings
...
Improve string formatting and context
2023-10-23 23:06:23 +02:00
Adriaan de Groot
0e9d7bc446
CI: fix up opensuse depends, find Python
2023-10-23 22:45:06 +02:00
Adriaan de Groot
f0d13fc9c4
libcalamares: repair build for Qt6
2023-10-23 22:20:02 +02:00
Adriaan de Groot
594bc5b169
Merge pull request #2221 from krop/calamares
...
Improve the openSUSE CI files
2023-10-23 21:54:37 +02:00
Emir SARI
682cbe6951
Improve string formatting and context
2023-10-23 13:39:26 +03:00
Christophe Marin
107def4594
CI: openSUSE: prefer CMake provides over package name
...
Even if the package name changes, installation will still work.
2023-10-23 09:41:13 +02:00
Christophe Marin
aee0786c22
CI: change the openSUSE Qt6 repository
...
home:krop:Qt6 is only used to prepare new releases and disabled afterwards.
Use KDE:Qt6 instead.
2023-10-23 09:16:39 +02:00
Adriaan de Groot
8bd2d684b9
libcalamares: catch Python errors in more places
...
- (syntax) errors in the pre-script or the module's script
should not trigger a fatal error in Calamares (i.e. terminate
called because of uncaught Python exception).
- Log more clearly where the error is being caught.
2023-10-23 01:18:45 +02:00
Adriaan de Groot
e5c2066d28
libcalamares: fix build
2023-10-22 14:38:25 +02:00
Adriaan de Groot
f81383901d
Changes: document translation updates
2023-10-22 13:52:21 +02:00
Adriaan de Groot
4297a00537
Merge pull request #2210 from bitigchi/strings
...
Improve string formatting and context
2023-10-22 13:50:38 +02:00
Adriaan de Groot
ff760d84a3
libcalamares: implement mount() for Python
2023-10-22 13:32:22 +02:00
Adriaan de Groot
af9b41e1a9
libcalamares: provide pybind11 constructor for GS
...
This constructor (of the proxy object) is used only by
test-code (see also comment in the Boost implementation)
but needs to be made explicit now.
2023-10-22 13:20:29 +02:00
Adriaan de Groot
b2337c82a7
libcalamares: repair submodule utils
2023-10-21 16:34:07 +02:00
Adriaan de Groot
945180e1d3
CI: accept clang-format-16 as well
2023-10-21 16:22:37 +02:00
Adriaan de Groot
71d27eee8e
hostinfo: ditch flaky test
2023-10-21 15:47:10 +02:00
Adriaan de Groot
5846ea384a
machineid: ditch flaky test
2023-10-21 15:43:19 +02:00
Adriaan de Groot
a649b67880
machineid: document flaky test
2023-10-17 22:54:08 +02:00
Adriaan de Groot
aaa82386d8
libcalamaresui: always use KOSRelease
...
The places where KOSRelease was ifdeffed always set the ifdef in
the surrounding CMake code, so make it unconditional.
2023-10-17 22:46:11 +02:00
Adriaan de Groot
63b0589382
CI: apply style tool across the entire codebase
2023-10-17 22:24:46 +02:00
Adriaan de Groot
e1747af296
CI: use clang-format to add braces
2023-10-17 22:17:01 +02:00
Adriaan de Groot
183f88a846
CI: Document changed coding style
2023-10-17 21:44:33 +02:00
Adriaan de Groot
dcce7d8a57
Merge branch 'work/adridg/remove-boost' into calamares
2023-10-16 20:08:06 +02:00
Adriaan de Groot
3594a64bd1
Python: add the processing-output functions, too
2023-10-16 20:07:39 +02:00
Adriaan de Groot
42172826ca
loadmodule: extend test-module-loader application
...
- Introduce -S to load settings beforehand, allows testing
in dont-chroot and debug and OEM modes.
2023-10-16 20:07:39 +02:00
Adriaan de Groot
d0dd4b765c
Python: add checked and stdout-returning API
2023-10-16 20:07:39 +02:00
Adriaan de Groot
995f6c8ce3
Python: add target_env_call API
2023-10-16 20:07:39 +02:00
Adriaan de Groot
89ede4bcce
Python: add the API to the public header again
...
- add libcalamares.job
- add libcalamares.globalstorage
2023-10-16 20:07:39 +02:00
Adriaan de Groot
ec5a4cb423
Python: support injected pre-script (for testing)
2023-10-16 20:07:39 +02:00
Adriaan de Groot
24de6b69c4
Python: deal with Qt5 compatibility
...
QDebug can't log std::string in Qt5, it seems
2023-10-16 20:07:39 +02:00
Adriaan de Groot
0468ff400b
Python: add top-level descriptive variables
2023-10-16 20:07:39 +02:00
Adriaan de Groot
30e677a762
Python: call the module's run() function
2023-10-16 20:07:39 +02:00
Adriaan de Groot
bfb23b3b84
Python: get pretty_name from Python module
...
Add a convenience method for logging pybind11 objects.
2023-10-16 20:07:39 +02:00
Adriaan de Groot
dd2da734ba
Python: load a module
...
- add enough API so that the dummypython module does load
- interpreter only imports the module, does not run any part of it
2023-10-16 20:07:39 +02:00
Adriaan de Groot
4411c54ba2
Python: do preliminary script-checks
2023-10-16 20:07:39 +02:00
Adriaan de Groot
61f0100cd9
Python: add new Python job implementation
...
The implementation is quite incomplete: it does not
actually run any Python code.
2023-10-16 20:07:39 +02:00
Adriaan de Groot
1eba9c828c
Python: mini-API implementation
...
Just some string-related functions for a very basic module.
2023-10-16 20:07:39 +02:00
Adriaan de Groot
5cad467a49
Python: use the vendored pybind11
...
Add a target that resembles what you would get from "normal"
use of pybind11 when following the examples. Link with it.
Drop Boost:Python sources from libcalamares.
2023-10-16 20:07:39 +02:00
Adriaan de Groot
35ae45e3ec
Docs: mention Boost::Python retired
2023-10-15 22:23:27 +02:00
Emir SARI
125a58f7c0
Process more messages
2023-10-15 14:39:17 +03:00
Emir SARI
814f5f0ccc
Improve formatting
2023-10-15 14:19:57 +03:00
Adriaan de Groot
546a4d0bbb
CI: switch opensuse-qt6 away from boost
2023-10-15 00:58:56 +02:00
Adriaan de Groot
3a04d27455
3rdparty: import pybind11 v2.11.1
...
This is a stripped-down version, with the LICENSE and the
C++ headers intact.
2023-10-15 00:58:56 +02:00
Adriaan de Groot
74edf6aef4
Changes: mention Qt6-QML fix
2023-10-14 23:58:51 +02:00
Adriaan de Groot
2a314bd06e
Merge pull request #2215 from demmm/calamares
...
[QML modules] add Qt6 needed files
2023-10-14 23:57:37 +02:00
Adriaan de Groot
7e456d5a8c
Changes: post-release housekeeping
2023-10-14 23:39:39 +02:00
demmm
2d2436f9a5
[QML modules] add Qt6 needed files
...
use alias for all -qt6.qrc QML files, so no change is needed for Qml.cpp searchQML files
most QMl does not need QtGraphicalEffects
keyboardq duplicate all .xml files too
2023-10-14 19:56:53 +02:00
Adriaan de Groot
7abbcd685e
users: repair broken tests
...
Applying the styling tool breaks the string literals.
2023-10-14 00:33:04 +02:00
Adriaan de Groot
d8415cfd53
shellprocess: repair broken tests
...
Applying calamaresstyle to this file re-formats the
raw-string-literals, which breaks the tests. Restore
the previous string formatting.
2023-10-14 00:27:44 +02:00
Adriaan de Groot
9bd600cab6
CMake: repair ca9006a1bc
...
Misplaced $, and looking for translation sources in the
wrong directory, led to a test-case failure before release.
2023-10-14 00:15:05 +02:00
Adriaan de Groot
d196dde23f
Changes: pre-release housekeeping
2023-10-13 23:49:06 +02:00
Calamares CI
6ed627f7b7
i18n: [python] Automatic merge of Transifex translations
2023-10-13 23:44:46 +02:00
Calamares CI
7a17df6bcd
i18n: [calamares] Automatic merge of Transifex translations
2023-10-13 23:44:46 +02:00
Adriaan de Groot
19473f8b5d
Docs: mention that you can use any Matrix account, not just a KDE one
2023-10-12 23:01:50 +02:00
Adriaan de Groot
0ed3dd4af9
Changes: document more contributors
2023-10-12 22:51:03 +02:00
Adriaan de Groot
7f594b0069
Changes: document Qt6-QML compatibility
2023-10-12 22:49:58 +02:00
Adriaan de Groot
2b147a2998
welcomeq: have Qt5 and Qt6 versions of the QML as an example
2023-10-12 22:35:32 +02:00
Adriaan de Groot
4a5e7af9a4
libcalamaresui: support Qt6 QMLViewStep
2023-10-10 23:51:52 +02:00
Adriaan de Groot
628c98becb
libcalamaresui: apply coding style (include order)
2023-10-10 23:51:52 +02:00
Emir SARI
e60d981e07
Improve string formatting and context
2023-10-10 12:55:31 +03:00
Adriaan de Groot
cf9f283a8e
Merge pull request #2209 from lubuntu-team/lubuntu/netplan-configs
...
Quick vendor patch to add support for Netplan-based configs
2023-10-09 22:31:34 +02:00
Adriaan de Groot
367c5097e0
Merge pull request #2208 from bitigchi/strings
...
Improve string formatting and context
2023-10-09 22:30:19 +02:00
Simon Quigley
e5db326a7e
Quick vendor patch to add support for Netplan-based configs
2023-10-08 21:37:26 -05:00
Adriaan de Groot
d4b0513993
CI: neon use ninja for install step
2023-10-07 10:37:12 +02:00
Adriaan de Groot
ca76392d28
CI: missing tools for debian build
2023-10-07 10:37:12 +02:00
Emir SARI
108b6759f7
Improve string formatting and context
...
Improves some strings according to the KDE HIG, and specifies
whether they are titles, buttons, or tooltips.
2023-10-06 07:05:42 +03:00
Adriaan de Groot
215b0790fd
CI: add fedora to the mix
2023-10-03 16:18:06 +02:00
Adriaan de Groot
ed1f4876aa
CI: switch example & CI builds to ninja
2023-10-03 15:04:33 +02:00
Adriaan de Groot
6b61197402
Docs: repair CONTRIBUTING, mention neon-unstable
2023-10-03 15:04:33 +02:00
Adriaan de Groot
125f54d830
CI: add a nightly neon-unstable
2023-10-03 13:56:58 +02:00
Adriaan de Groot
54d0e7dc53
CI: repair permissions on Debian deps
2023-10-03 13:53:30 +02:00
Adriaan de Groot
d940675445
Docs: repair CONTRIBUTING
...
The docker images are ok, but the install-the-dependencies scripts have
moved away from GitHub-specific.
2023-10-03 13:43:13 +02:00
GeckoLinux
d4accae21b
Correct the comment description of the "Replace" partition behavior
...
The described behavior of the "Replace" option was incorrect, it does not keep the same filesystem type that the partition already had, rather it uses the `defaultFileSystemType` value. See:
https://github.com/calamares/calamares/issues/1970
2023-10-01 19:23:35 -05:00
Adriaan de Groot
309fa9718e
users: repair build on openSUSE Qt6
...
Build failure looks like
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld:
src/modules/users/CMakeFiles/users_internal.dir/users_internal_autogen/mocs_compilation.cpp.o:
relocation R_X86_64_32 against symbol `_ZN6Config16staticMetaObjectE' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: failed to set dynamic section sizes: bad value
This was the original reason for starting to change the library type.
2023-10-02 00:37:59 +02:00
Adriaan de Groot
fb9b20e234
CI: need newer Qt6 for now on openSUSE
2023-10-02 00:27:50 +02:00
Adriaan de Groot
1fb9af4823
CI: fix up Debian scripts
2023-10-01 16:38:03 +02:00
Calamares CI
add7ed3731
i18n: [python] Automatic merge of Transifex translations
2023-09-28 22:41:46 +02:00
Calamares CI
4eef62a481
i18n: [calamares] Automatic merge of Transifex translations
2023-09-28 22:41:45 +02:00
Adriaan de Groot
ed2a5a7973
CMake: pre-release housekeeping
2023-09-28 22:34:54 +02:00
Adriaan de Groot
7c475e1198
CI: remove appstreamqt5 from deps-neon
...
Package doesn't exist. See #2202 .
2023-09-28 22:25:58 +02:00
Adriaan de Groot
445f1c0f56
CI: script-tidying
2023-09-28 22:22:43 +02:00
Adriaan de Groot
74a5d76145
CI: switch Debian to ci/ scripts
2023-09-28 22:21:25 +02:00
Adriaan de Groot
4499d7590d
CI: switch opensuse workflows to simple script
2023-09-28 22:14:31 +02:00
Adriaan de Groot
7b5a2ad68c
CI: switch push workflow to simple script
2023-09-28 22:13:23 +02:00
Adriaan de Groot
0eb84acc4b
CI: migrate push workflow to ci/ scripts
2023-09-28 22:05:07 +02:00
Adriaan de Groot
675d17fe59
CI: migrate opensuse CI to ci/ scripts
2023-09-28 22:04:07 +02:00
Adriaan de Groot
aef757cc20
fixup-prev
2023-09-28 21:56:56 +02:00
Adriaan de Groot
6f346d635e
CI: move the dependency-scripts to non-GH locations
2023-09-28 21:55:17 +02:00
Adriaan de Groot
3637914aea
CI: remove pullrequest workflow, the GH widget does that
2023-09-28 21:52:11 +02:00
Adriaan de Groot
889d78deed
CI: bump checkout action to latest version
2023-09-28 21:50:35 +02:00
Adriaan de Groot
7ece6f9d2c
CI: install the right flavor of appstreamqt
...
Needs "qt5" for the Qt5 version, and no suffix for Qt6. Now we can
at least spot the build error in neon-nightly.
SEE #2202
2023-09-28 21:40:05 +02:00
Adriaan de Groot
0cc8842c42
CI: chase GitHub actions updates
2023-09-28 21:34:52 +02:00
Adriaan de Groot
364e940a9a
CMake: don't default to SHARED libraries, require explicit
2023-09-28 20:56:09 +02:00
Adriaan de Groot
77d489b5e5
users: repair previous "fix"
...
The build failure on openSUSE is real, but the "fix" switched
the internal library accidentally to SHARED, without installing it.
It shouldn't be a library at all, really (if STATIC won't do).
FIXES #2203
2023-09-28 20:55:39 +02:00
Adriaan de Groot
44d26beb95
CI: install appstream in KDE neon
...
Let this run overnight so we can see the appstream-api-change locally.
See #2202
2023-09-19 23:47:41 +02:00
Adriaan de Groot
4cb8962668
CI: need to install git in opensuse before checkout
2023-09-12 10:09:26 +02:00
Adriaan de Groot
440f704930
Docs: update list of requirements, mention 3.2 is different
2023-09-12 10:05:28 +02:00
Adriaan de Groot
6e8e8a3d1b
Changes: document Qt6 and CalamaresUtils
2023-09-11 21:05:43 +02:00
Adriaan de Groot
a62f060fdd
CI: fix broken path, swap push to use shell script for dependencies
2023-09-11 20:46:55 +02:00
Adriaan de Groot
1efb12e332
libcalamares: rename CalamaresUtilsSystem and Gui
2023-09-11 20:40:10 +02:00
Adriaan de Groot
eb840d4117
libcalamares: ditch namespace CalamaresUtils
...
- Most CalamaresUtils things go to Calamares
- YAML support to Calamares::YAML and then remove redundant "yaml"
from the function names.
2023-09-11 20:34:01 +02:00
Adriaan de Groot
f4e3964ee5
libcalamares: use namespace Calamares::Partition consistently
2023-09-11 00:09:31 +02:00
Adriaan de Groot
641e186b7c
libcalamares: use namespace Calamares::Packages consistently
2023-09-10 23:55:48 +02:00
Adriaan de Groot
a9ef587705
libcalamares: use namespace Calamares::Network consistently
2023-09-10 22:32:49 +02:00
Adriaan de Groot
d199288034
libcalamares: use namespace Calamares::GeoIP consistently
2023-09-10 22:26:32 +02:00
Adriaan de Groot
47cbcbd348
libcalamares: move all locale-related things into namespace Calamares::Locale
...
The locale bits were spread over Calamares::Locale and CalamaresUtils::Locale.
2023-09-10 22:26:32 +02:00
Adriaan de Groot
766c28ca82
interactiveterminal: prepare for Qt6
...
- Try to build with KF6
- Bodge out the actual loading-of-konsole-part
2023-09-10 22:26:32 +02:00
Adriaan de Groot
f4a80c1a01
Docs: deal with variations between Docker images
2023-09-10 22:26:32 +02:00
Adriaan de Groot
15b476bb80
CI: expand coverage of Qt6/KF6 dependencies
2023-09-10 22:26:32 +02:00
Adriaan de Groot
2b495a3781
Docs: update required versions
2023-09-10 21:40:37 +02:00
Adriaan de Groot
f2f1052da3
Docs: add a using-Docker section for builds
2023-09-10 21:35:39 +02:00
Adriaan de Groot
d04f17bb72
CMake: re-jig required/optional reporting again
...
- Don't use the ${kfname} package itself, use it as a prefix for
specific components of that package (e.g. ${kfname}CoreAddons)
- Use TYPE to indicate required packages, rather than using
REQUIRED in the find_package call, to more-helpfully collect
missing requirements.
2023-09-10 21:34:15 +02:00
Adriaan de Groot
8925c34ff7
CMake: massage finding-of-things to be less demanding
...
1- Need to be careful switching dependencies from REQUIRED to OPTIONAL
2- Don't do ECM REQUIRED all over the place
3- Workaround neon CI not having KCrash (which translated to KF5 not
found, which translated to a missing REQUIRED dependency, see 1).
2023-09-10 21:10:02 +02:00
Adriaan de Groot
63b7ecb97e
CI: massage neon to use an in-repo shell script as well
2023-09-10 21:10:02 +02:00
Adriaan de Groot
472c07008e
keyboardq: don't bother re-finding required Qt components
2023-09-10 20:23:19 +02:00
Adriaan de Groot
1b9d8b1f91
CI: tweak opensuse-qt6 nightly build
...
Split the install-dependencies off into a shell script instead of
being part of the workflow, so that it can be run manually or
by other means than the GH workflow.
2023-09-10 20:23:06 +02:00
dalto
f3f5bd8a5d
[initcpiocfg] Revert addition of setfont
2023-09-10 12:53:31 -05:00
dalto
09ccdb4ecb
[initcpiocfg] Fix typo in initcpiocfg.conf
2023-09-09 10:10:02 -05:00
dalto
23c4aa0aa4
[bootloader] Fix error in condition with uses_sd_encrypt
2023-09-09 10:09:30 -05:00
Adriaan de Groot
0a0edfada0
CMake: do REQUIRED searches at beginning, avoid toggle of KF5 status
2023-09-09 11:59:02 +02:00
Adriaan de Groot
0500eb54da
users: workaround build failure
...
x86_64-suse-linux/bin/ld: libusers_internal.a(mocs_compilation.cpp.o):
relocation R_X86_64_32 against symbol `_ZN6Config16staticMetaObjectE'
can not be used when making a shared object; recompile with -fPIC
x86_64-suse-linux/bin/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status
2023-09-09 01:27:13 +02:00
Adriaan de Groot
60df29d734
Merge pull request #2164 from ivan1986/add-keyboard-group
...
add keyboard layout switch selector
2023-09-08 21:45:36 +02:00
Adriaan de Groot
c2064124b9
libcalamares: needs to link in QtNetwork
2023-09-08 21:41:31 +02:00
Adriaan de Groot
c2e4ba324f
CI: try to work around KF5 staying 'required' at the end
...
The find_package() in the plasmalnf module seems to mark KF5 as not-found,
because one component is not found right then -- after that, CMake-time
fails because KF5 is still-required and not-found.
2023-09-08 21:34:50 +02:00
Adriaan de Groot
7f51aac81b
CI: replace KDE neon by openSUSE
2023-09-07 23:47:39 +02:00
Adriaan de Groot
57746be66e
kpmcore: factor out sometimes-needed dependencies
2023-09-07 23:45:57 +02:00
Adriaan de Groot
0d1adc0692
CMake: drop KDE-neon weirdness for KF6
2023-09-07 23:41:26 +02:00
Adriaan de Groot
7dffabef43
netinstall, tracking: KF6 use
2023-09-07 23:39:39 +02:00
Ivan Borzenkov
4d00eef822
fixes
2023-09-07 23:31:48 +03:00
Ivan Borzenkov
ea725da79b
keyboard switch to same line
2023-09-07 21:57:58 +03:00
Ivan Borzenkov
1ac3459afa
add keyboard layout switch selector
2023-09-07 21:57:58 +03:00
Adriaan de Groot
1b235e56a3
Merge pull request #2199 from demmm/calamares
...
[users] CheckPWQuality.cpp Qt6 correction
2023-09-07 20:03:32 +02:00
demmm
b8dd4ef20a
[partition] Qt6 conversion completed
...
adjust QMouseEvents, update CHANGES
2023-09-07 18:10:21 +02:00
demmm
07e5a3a113
[partition] start Qt6 work
...
make kpmcorehelper usable for both kf5 & 6, though no section added yet dealing with set to NOT for Qt6
adjust CalamaresConfig to not be hardcoded to kf5
one more var needed in Variant.h, used in PartitionInfo.cpp
adjust QVariant & QtConcurrent use
2023-09-07 13:03:16 +02:00
dalto8
7c55529072
[initcpiocfg] Remove noconfig since a config file was added
2023-09-06 22:20:53 +00:00
demmm
14419ac26f
[users] CheckPWQuality.cpp Qt6 correction
...
2 additional QVariant replacements
2023-09-06 18:33:24 +02:00
Adriaan de Groot
d4a06b4477
Changes: document Qt6-compatibility
2023-09-06 00:07:03 +02:00
Adriaan de Groot
bf7983dac8
Merge branch 'work/qt6-i18n' into calamares
2023-09-05 23:55:14 +02:00
Adriaan de Groot
1a865fd2fb
CMake: reduce required KF5 version to support Debian
2023-09-05 23:54:44 +02:00
Adriaan de Groot
e1bb6f1eb3
CMake: remove Qt6 handholding of modules
2023-09-05 23:54:44 +02:00
Adriaan de Groot
ead610b429
zfs: adapt to Qt6
2023-09-05 23:54:44 +02:00
Adriaan de Groot
9d324bcccd
users: adapt to Qt6
2023-09-05 23:54:36 +02:00
Adriaan de Groot
680d4f8dc2
preservefiles: adapt to Qt6
2023-09-05 23:54:36 +02:00
Adriaan de Groot
2eff5f74a5
plasmalnf: not compatible with Qt6
2023-09-05 23:54:36 +02:00
Adriaan de Groot
d7df1a8eca
packagechooser: Adapt to Qt6
...
While here, deal with the WITH_ -> BUILD_ change of options.
2023-09-05 23:54:36 +02:00
Adriaan de Groot
90fefa9382
CI: repair name of Qt6 nightly
2023-09-05 16:01:06 +02:00
Adriaan de Groot
7b36dfb351
Merge pull request #2196 from AsahiLinux/keyboard-init-order
...
keyboard: Do the autodetection stuff after setConfigurationMap
2023-09-05 15:54:15 +02:00
Adriaan de Groot
1ca6b27afe
Merge pull request #2195 from AsahiLinux/wayland-hidpi
...
Make HiDPI SVG rendering work on Wayland
2023-09-05 15:53:53 +02:00
Adriaan de Groot
07e7757c31
oemid: adjust to Qt6
2023-09-05 15:36:09 +02:00
Adriaan de Groot
f56250624f
netinstall: adjust to Qt6
2023-09-05 15:34:04 +02:00
Adriaan de Groot
e781e4eb5f
license: adapt to Qt6
2023-09-05 15:24:02 +02:00
Adriaan de Groot
427311f2c3
keyboard: port to QRegularExpression
2023-09-05 15:18:02 +02:00
Adriaan de Groot
22bd80daac
hostinfo: adjust to Qt6
2023-09-05 00:05:57 +02:00
Adriaan de Groot
1b5206cb90
locale: adjust to Qt6
2023-09-05 00:05:57 +02:00
Adriaan de Groot
93e9990df8
keyboard: adapt to Qt6
2023-09-05 00:05:46 +02:00
Adriaan de Groot
6ffafe1c45
interactiveterminal: consider this KF5-only for now
...
It seems unlikely that a KF6-based terminal part from konsole
becomes available any time soon, so don't bother.
2023-09-05 00:05:46 +02:00
Adriaan de Groot
5f8b6ed437
dummycpp: adapt to Qt6
...
- since HashVariantType has more than one consumer, move it to header
2023-09-05 00:05:46 +02:00
Adriaan de Groot
e07b6c90d3
contextualprocess: adapt to Qt6
2023-09-05 00:05:46 +02:00
Adriaan de Groot
3173a8ee3c
i18n: expand helper function to handle more cases
...
- move template QRC file to the module that defines the function
- add parameters to accept more files (prefixes) per language
2023-09-04 23:26:43 +02:00
Adriaan de Groot
ca9006a1bc
i18n: move translation helper-function to CMakeModules
2023-09-04 22:44:08 +02:00
Adriaan de Groot
8a8860e75c
Qt6: resolve TODOs against missing KF6
...
- On FreeBSD, no KF6 was available
- On KDE Neon Unstable, there are somewhat wonky KF6 packages available
- Adjust CMake to find the KDE Neon versions, then fix the C++ code
2023-09-04 21:51:03 +02:00
Hector Martin
1ca3ce7145
keyboard: Do the autodetection stuff after setConfigurationMap
...
Since we now rely on the layout1 mode being set from the config, we need
to defer the initial keymap detection until after that's initialized.
Signed-off-by: Hector Martin <marcan@marcan.st >
2023-09-04 17:11:46 +09:00
Hector Martin
15027f40b2
Make HiDPI SVG rendering work on Wayland
...
Branding SVGs were rendering at 1x on Wayland and then scaling up to the
display DPI, which looks ugly. To get this to work properly we need to
explicitly multiply the devicePixelRatio into the dimensions that
QPixmaps render at, since QPixmap is DPI-unaware.
This probably only takes care of a subset of the problem codepaths, but
at least it makes the sidebar logo and welcome screen work properly.
Signed-off-by: Hector Martin <marcan@marcan.st >
2023-09-04 14:35:14 +09:00
Adriaan de Groot
4b3278058b
libcalamares: repair test
...
The calamaresstyle tool reformatted a bunch of R-strings,
leading to test failures. Mark them with INDENT-OFF so
astyle doesn't break them again.
2023-09-03 23:16:54 +02:00
Adriaan de Groot
30f65a0b62
CI: add a Qt6 build
2023-09-03 23:11:28 +02:00
Adriaan de Groot
8f836969eb
Merge branch 'work/qt6' into calamares
2023-09-03 23:04:12 +02:00
Adriaan de Groot
95aa8d8127
libcalamares: update maintainer and sponsor
2023-09-03 23:02:47 +02:00
Adriaan de Groot
246d3f243d
branding: update silly fake distro to 2023
2023-09-03 23:02:47 +02:00
Adriaan de Groot
30a8b337e1
finished: enable Qt6 build
2023-09-03 23:02:47 +02:00
Adriaan de Groot
c5929e30d1
welcome: enable Qt6 build
...
- Adjust for QVariant changes
- Fix tests, no more conversion available from QFile to QFileInfo
2023-09-03 23:02:09 +02:00
Adriaan de Groot
2ffcfb3ddd
calamares: adapt UI-parts to Qt6
2023-09-03 23:02:09 +02:00
Adriaan de Groot
e1b20fe0a9
calamares: ignore about data (KF5) and highdpi
...
The application attribute for HighDPI is gone in Qt6.
2023-09-03 23:02:09 +02:00
Adriaan de Groot
8ea7c578b3
libcalamaresui: deal with QMessageBox::question
2023-09-03 23:02:09 +02:00
Adriaan de Groot
159eccbda0
libcalamaresui: enable build for Qt6
...
Compatibility code for mutex and variant is already in place.
2023-09-03 23:02:09 +02:00
Adriaan de Groot
bc9d5aae58
libcalamares: repair locale tests for Qt6 compatibility
2023-09-03 23:02:09 +02:00
Adriaan de Groot
49d449c211
i18n: enable Qt6 build of lang/ and libcalamares translations
2023-09-03 23:00:13 +02:00
Adriaan de Groot
ad8c87e5d3
libcalamares: repair tests for Qt6 compatibility
2023-09-03 23:00:13 +02:00
Adriaan de Groot
25250179da
libcalamares: handle variants in Python
...
The Python helpers need a couple of obscure QVariants,
do not add them to the "global" list of compatible variant types.
2023-09-03 23:00:13 +02:00
Adriaan de Groot
cdb2eb8b9a
libcalamares: deal with KF5 macro expansion
...
Since KF5 is not looked-for in the Qt6 build, mock up
a useless macro-expander in its place.
2023-09-03 23:00:13 +02:00
Adriaan de Groot
e0b820abbc
libcalamares: deal with QtConcurrent::run
...
In Qt5, you pass the pointer-to-object for a member-function-call
first, and in Qt6, as a regular parameter.
2023-09-03 22:58:49 +02:00
Adriaan de Groot
fe8939e745
libcalamares: deal with QRegExp
2023-09-03 22:58:49 +02:00
Adriaan de Groot
99d012c5ce
libcalamares: deal with QVariant
...
Compatibility header required, and logging was missing
a (transitively included in Qt5) include for QVariant.
2023-09-03 22:58:44 +02:00
Adriaan de Groot
27329a497a
libcalamares: deal with QMutexLocker
...
- Add a compat/ directory with support for Calamares-named
variations of Qt classes where there are relevant differences
between Qt5 and Qt6
2023-09-03 22:58:33 +02:00
Adriaan de Groot
50f2a6ad4a
libcalamares: deal with QPair
...
Use std::pair instead. Also applies to Qt5 build.
2023-09-03 22:53:43 +02:00
Adriaan de Groot
dfb778984c
kdsingleapplication: make Qt5/6 independent
2023-09-03 22:53:43 +02:00
Adriaan de Groot
179796d598
CMake: can't mix KF5 and Qt6
...
This will fail to build because we require KDE Frameworks
CoreAddons, but I don't have one just now.
2023-09-03 22:53:43 +02:00
Adriaan de Groot
2b40ab9a5b
CMake: make tests independent of Qt5/6
2023-09-03 22:53:43 +02:00
Adriaan de Groot
b905afb169
CMake: restrict Qt6 build
...
- build **only** libcalamares
- switch the finding and linking of Qt modules to use qtname
2023-09-03 22:53:43 +02:00
Adriaan de Groot
953479422c
CMake: export Qt6 setting to the config file
2023-09-03 22:53:43 +02:00
Adriaan de Groot
cbdd3fc928
CMake: add top-level option for Qt6
2023-09-03 22:53:43 +02:00
Adriaan de Groot
5ff9fcd59a
libcalamares: prevent astyle from reformatting string
2023-09-03 22:53:30 +02:00
Adriaan de Groot
e6ce29ed33
Merge pull request #2194 from AsahiLinux/passwd-fix
...
[users] Use usermod to disable passwords
2023-09-03 21:19:01 +02:00
Adriaan de Groot
4b87d094fb
initcpiocfg: repair test
...
Empty example config files break tests; there should be at
least a single key in there (for instance, *bogus*, but
setting a flag to the default value is also acceptable)
2023-09-03 21:15:44 +02:00
Hector Martin
a377df2e65
[users] Use usermod to disable passwords
...
On Fedora 38 (and probably others), this step fails with:
passwd -dl root
passwd: Only one of -l, -u, -d, -S may be specified.
Use usermod to wipe and disable the root password instead, which should
work properly. We use '!' (opinions seem to differ on how to mark
disabled/unused accounts, but all of '*' '!' '!!' should have the same
effect in practice).
Signed-off-by: Hector Martin <marcan@marcan.st >
2023-09-03 19:58:13 +09:00
dalto
7fa8fa680c
[initcpiocfg] Make using systemd hook optional
2023-09-02 10:01:05 -05:00
Adriaan de Groot
741c7b75d8
Merge pull request #2193 from AsahiLinux/locale1-fix
...
[keyboard] Fix locale1 support for alternate layouts
2023-09-02 16:11:34 +02:00
Hector Martin
7806d264ab
[keyboard] Fix locale1 support for alternate layouts
...
Copy&paste error caused setting the layout to fail for non-ASCII layouts
with an alternate layout/variant.
Fixes: 812d86130 (\"[keyboard] Add support for setting the layout via locale1\")
Signed-off-by: Hector Martin <marcan@marcan.st >
2023-09-02 22:15:45 +09:00
Adriaan de Groot
102c55d67d
Changes: document keyboard improvement
2023-08-29 14:59:39 +02:00
Adriaan de Groot
6733815269
keyboard: prefer to clean up lists only once
2023-08-29 14:59:13 +02:00
Adriaan de Groot
b85fcff990
keyboard: removeEmpty doesn't need to be a method
2023-08-29 14:55:54 +02:00
Adriaan de Groot
55a2d71e3e
Merge pull request #2136 from ivan1986/fix-non-ascii-keyboard
...
Write layout information for non-ASCII keyboard to X11 and console settnigs.
FIXES #2135
2023-08-29 14:48:12 +02:00
Adriaan de Groot
da7ec3f7cc
Changes: document keyboard change
2023-08-29 14:39:43 +02:00
Adriaan de Groot
3fc8febeea
keyboard: require QtDBus at top-level, tidy includes
2023-08-29 14:37:01 +02:00
Adriaan de Groot
7157ed3854
keyboard: add new keys to schema
...
The stated schema-default for useLocale1 is not entirely correct,
since the code checks for X11 vs. Wayland to determine what the
default should be.
2023-08-29 14:33:21 +02:00
Adriaan de Groot
6c6b7956d2
i18n: update English sources
2023-08-29 14:32:51 +02:00
Adriaan de Groot
8d61345cd6
Merge pull request #2180 from AsahiLinux/keyboard-locale1
...
keyboard: Add locale1 support & option to keep defaults
2023-08-29 11:41:37 +02:00
Adriaan de Groot
cf88ddbaa5
CMake: post-release housekeeping
2023-08-28 23:53:04 +02:00
Adriaan de Groot
8e19d6080d
mount: use False as default for "claimed"
...
The regular tests would fail, because the sample global
configuration does not set the "claimed" value of a partition.
2023-08-28 22:54:22 +02:00
Adriaan de Groot
72bad83022
luksbootkeyfile: support explicit 'default' setting
2023-08-28 22:45:56 +02:00
Adriaan de Groot
3757fcf0bf
libcalamares: drop useless variable
2023-08-28 22:33:56 +02:00
Adriaan de Groot
dc666d29b8
libcalamares: suppress unused-variable warning
2023-08-28 22:33:00 +02:00
Adriaan de Groot
8dfa123e81
CMake: pre-release housekeeping
2023-08-28 22:29:54 +02:00
Adriaan de Groot
ef47932deb
CI: Remove some of the Matrix notification scripts
...
The GitHub Matrix-integration widget does these notifications,
more efficiently than running curl by hand.
2023-08-28 21:55:58 +02:00
dalto8
f804965a8d
Merge pull request #2183 from Boria138/initcpiocfg
...
Updated the initcpiocfg module
2023-08-27 20:54:37 +00:00
Adriaan de Groot
66f36b2d03
docs: drop mention of IRC, prefer Matrix for communication
2023-08-27 22:42:44 +02:00
dalto8
0ddffad57c
Merge pull request #2187 from bkmo/bkmo
...
Update LuksBootKeyFileJob.cpp to check for unencrypted boot with encrypted root
2023-08-26 19:40:45 +00:00
dalto
b5e0ebe4c9
[luksBootKeyFile] Remove unused function hasEncryptedRoot()
2023-08-26 14:15:18 -05:00
dalto
3552691e57
[grubcfg] Add rd.luks.key for systemd-encrypt hook
2023-08-26 11:22:41 -05:00
dalto
d12e40bc34
[initcpiocfg] Fix encryption hook not being added with encrypted /boot
2023-08-26 09:55:45 -05:00
Brian Morison
ab8159a77f
Update LuksBootKeyFileJob.cpp
2023-08-20 13:28:06 -06:00
Brian Morison
f0fb39edd8
Update LuksBootKeyFileJob.cpp
2023-08-20 13:07:58 -06:00
dalto8
0eb431dd2b
Merge pull request #2181 from AsahiLinux/hello-im-a-mac
...
[users] Handle Device Tree platforms (e.g. Apple Silicon) for guessing the product name
2023-08-20 17:02:17 +00:00
dalto
a9547af8e2
[initcpiocfg,grubcfg,bootloader] Minor code improvements
2023-08-20 10:39:36 -05:00
Boria138
b97a5d535c
Fixed a stupid typo
2023-08-19 23:08:44 +06:00
Boria138
950e9d1d0a
Added setfont check in mkinitcpiocfg
2023-08-19 21:00:25 +06:00
Boria138
9f8b848631
uses_sd-encrypt was changed to uses_sd_encrypt to make it a valid variable name
2023-08-19 15:29:49 +06:00
Boria138
c0396cf28b
Deleted quot
2023-08-19 14:26:36 +06:00
Boria138
bf7f5c6032
Fixed initcpiocfg
2023-08-19 12:52:35 +06:00
Boria138
7d6a04d3a8
Added the necessary edits
2023-08-17 21:14:47 +06:00
Boria138
543de65f33
Added rd.luks.name to grubcfg
2023-08-17 13:04:24 +06:00
Boria138
5769c9c6da
Fixes https://github.com/calamares/calamares/issues/2182
2023-08-17 12:44:13 +06:00
Boria138
438e0c6575
Updated the initcpiocfg module
...
Added systemd (I took the code from CachyOS and modified it a bit)
Fixed the error "setfont: KDFONTOP: Function not implemented"
2023-08-17 11:13:19 +06:00
dalto8
3bec262d2d
Merge pull request #2176 from nintyfan/WIP/Packaging-Flatpak-2
...
Wip/packaging flatpak 2
2023-08-12 15:00:12 +00:00
Hector Martin
a899f76da2
[users] Clean up DMI model more for hostname
...
Remove anything in parentheses, and also drop the "Apple" prefix for
Apple machines. This converts:
"Apple MacBook Air (13-inch, M2, 2022)"
into:
"MacBookAir"
which is a lot more reasonable.
Other vendors could be added as needed (it's inconsistent whether DT
platforms prefix the model with the vendor or not).
Signed-off-by: Hector Martin <marcan@marcan.st >
2023-08-12 22:48:26 +09:00
Hector Martin
17e1027ea2
[users] Read product from the device tree on DT platforms
...
Non-DMI platforms may have a device tree instead (e.g. many embedded
devices, Apple Silicon Macs). If we find a model string in the DT, use
that as a fallback when DMI is not available.
Signed-off-by: Hector Martin <marcan@marcan.st >
2023-08-12 22:48:26 +09:00
Hector Martin
8be65003ce
[keyboard] Use the current keyboard model as the default
...
If there is a valid keyboard model set in the system already, keep it.
This allows distributors to preconfigure the correct model if known.
Signed-off-by: Hector Martin <marcan@marcan.st >
2023-08-12 22:09:31 +09:00
Hector Martin
6678d95a5d
[keyboard] Add an option to disable layout guessing
...
If the system has already pre-configured a sensible keyboard layout, we
do not need to guess based on the locale. Add a config option to keep
the existing keyboard layout as the default. This should work on both
XKB/X11 and locale1 modes.
Signed-off-by: Hector Martin <marcan@marcan.st >
2023-08-12 21:42:54 +09:00
Hector Martin
9e81d7cf21
[keyboard] Do not update configs in locale1 mode when root is /
...
If Calamares is running with no root path and we are using locale1 to
manage the keyboard configs, then the service has already updated the
X11 and VConsole keymap configs for us. In that case, we should not
touch the config files ourselves.
Signed-off-by: Hector Martin <marcan@marcan.st >
2023-08-12 21:42:32 +09:00
Hector Martin
25bb41f549
[keyboard] Add support for getting the layout via locale1
...
Getter counterpart to the previous commit, to support using locale1 to
fetch the current keyboard config.
Signed-off-by: Hector Martin <marcan@marcan.st >
2023-08-12 21:42:32 +09:00
Hector Martin
812d861307
[keyboard] Add support for setting the layout via locale1
...
setxkbmap only works on X11/XWayland, and even on XWayland does not
correctly change the Wayland keyboard layout.
The "modern" way to control the system keyboard layout is via the
locale1 DBus interface (or the localectl frontend). On compositors like
KWin, this will update the keyboard layout on the fly, which is what we
want.
Implement support for setting the layout/model configs using locale1.
This is enabled by default when Calamares runs under Wayland, and can be
controlled via a config setting.
Signed-off-by: Hector Martin <marcan@marcan.st >
2023-08-12 21:18:05 +09:00
Calamares CI
f53b064296
i18n: [python] Automatic merge of Transifex translations
2023-08-06 23:41:28 +02:00
Calamares CI
c43deac0a6
i18n: [desktop] Automatic merge of Transifex translations
2023-08-06 23:41:28 +02:00
Calamares CI
ea8b6255e3
i18n: [calamares] Automatic merge of Transifex translations
2023-08-06 23:41:28 +02:00
dalto8
44da0b24e5
Merge pull request #2161 from abalfoort/showbootmsg
...
partitioning: Show/hide "Boot partition not encrypted" warning
2023-08-05 14:05:32 +00:00
Sławomir Lach
ab7b78e9ce
Newer flatpak will remove unused, so do not instruct for do that
2023-08-05 15:55:00 +02:00
Sławomir Lach
79085b5e80
- Uninstalling flatpak is possible (repair bad command)
2023-08-03 19:08:55 +02:00
Sławomir Lach
ec30fe1b61
- Force flatpak do not asks questions
2023-08-02 17:42:11 +02:00
Sławomir Lach
3666e3af7b
Revert "Made possible to select flatpaks to install (fill list of netinstall)"
...
This reverts commit cc90dcf556 .
2023-08-02 10:28:50 -04:00
Sławomir Lach
cc90dcf556
Made possible to select flatpaks to install (fill list of netinstall)
2023-08-01 08:30:05 -04:00
Sławomir Lach
d77215c227
- Made installing of flatpaks possible
2023-08-01 08:28:48 -04:00
Ivan Borzenkov
8ca841d08e
refactor after review - use QStringList
2023-07-08 19:19:38 +03:00
Ivan Borzenkov
2d0940e555
fix non ascii keyboard
2023-07-08 18:41:05 +03:00
dalto8
11e1659cad
Merge pull request #2163 from Ficelloo/calamares
...
Fixing partutils.cpp
2023-07-06 20:23:04 +00:00
Ficelloo
39e2b527eb
Update PartUtils.cpp
2023-07-06 21:05:51 +02:00
Ficelloo
cb7258249d
Fixing partutils.cpp
2023-07-06 19:16:37 +02:00
Adriaan de Groot
e7161443d6
partition: simplify Arm code
...
- introduce a helper function for accessing the globalstorage value
- add consts and calculate the initial gap in a single expression
2023-06-25 22:21:01 +02:00
Adriaan de Groot
baf580f0ac
partition: apply layout
2023-06-25 22:15:56 +02:00
Adriaan de Groot
25de501eb8
CI: adjust astyle configuration to match current option names
2023-06-25 22:15:21 +02:00
Adriaan de Groot
e78f8840ea
Merge branch 'calamares' of github.com:calamares/calamares into calamares
2023-06-25 22:05:28 +02:00
Adriaan de Groot
f00fa429bf
Merge pull request #2142 from Rippanda12/armInstall
...
partition: Add armInstall
2023-06-25 22:05:10 +02:00
abalfoort
48fd148b8a
Handle show warning in function
2023-06-25 10:53:19 +02:00
abalfoort
240f18e5bd
Show/hide "Boot partition not encrypted" warning
2023-06-23 15:56:02 +02:00
demmm
1cec7912de
Merge pull request #2160 from zencatalyst/patch-1
...
Update README.md
2023-06-23 11:07:16 +02:00
Kasra Hashemi
197cbec82c
Update README.md
...
Fixed punctuation and grammar issues plus spelling inconsistencies
2023-06-22 14:47:29 +03:30
dalto8
f1e4bcd8e5
Merge pull request #2146 from abalfoort/luksbootkeyfile
...
Create key file for LUKS2 devices
2023-06-13 11:51:57 +00:00
ABalfoort
20b4cefedb
Merge branch 'calamares:calamares' into luksbootkeyfile
2023-06-13 08:49:54 +02:00
abalfoort
33aeabd617
Implement requested changes
2023-05-31 18:25:16 +02:00
abalfoort
1963dd3412
Optional luks2Hash with enum
2023-05-31 18:23:00 +02:00
abalfoort
c4496ef86b
Add configurable variable m_luks2Hash
2023-05-31 14:43:39 +02:00
abalfoort
1e2a51f952
Remove NO_CONFIG
2023-05-31 14:42:39 +02:00
abalfoort
06d6f217b5
Added luksbootkeyfile.conf/yaml
2023-05-31 14:42:18 +02:00
dalto8
63c3f68619
Merge pull request #2141 from Rippanda12/calamares
...
Initcipiocfg fix for non x86 cpus
2023-05-27 13:24:11 +00:00
Philip Müller
ca2e36b3f3
Update services-systemd.conf
...
- reflect that file endings are now needed in the example
2023-05-26 13:15:19 +02:00
dalto8
2f6eb272c1
Merge pull request #2139 from Sunderland93/new_desktops
...
Add River and Hyprland to desktop list
2023-05-24 11:56:53 +00:00
abalfoort
e01b45f008
Check nr used slots
2023-05-23 17:18:10 +02:00
abalfoort
def9bf18d3
Revert removing check on root with unencrypted boot
2023-05-23 15:07:54 +02:00
abalfoort
5c4557e4d1
Create key file for LUKS2 devices
2023-05-23 13:47:39 +02:00
Kevin Kofler
9a88e0ab10
Merge pull request #2144 from evan-goode/evan-goode/f39
...
[packages] Call dnf-3 binary, not dnf
2023-05-22 23:10:16 +02:00
Evan Goode
7a67840c9b
[packages] Call dnf-3 binary, not dnf
...
DNF is being replaced by a new package manager, DNF 5, in Fedora 39+.
The `dnf` binary will soon symlink to DNF 5 instead of DNF 5. The old
DNF 4 binary will still be (and always has been) available as
/usr/bin/dnf-3.
Until Calamares adds support for DNF 5, it should explicitly call the
old dnf-3 binary.
2023-05-22 12:03:22 -04:00
Panda
d662fb084d
Add armInstall
2023-05-21 07:02:22 +00:00
Panda
b2c75a1af8
Fix initcpio
...
ARM cpus dont have vendor tag in /proc/cpuinfo
2023-05-20 09:11:47 +03:00
Sunderland93
4bf1b0fa7e
Add River and Hyprland to desktop list
2023-05-17 16:25:57 +04:00
Adriaan de Groot
f385c94729
[libcalamaresui] Document 'we do not translate this' for developer-tooltip
2023-04-25 11:17:11 +02:00
Adriaan de Groot
6eff07eff2
i18n: no need to translate useless 'Form' text on UI pages
2023-04-25 11:14:55 +02:00
Adriaan de Groot
29ef9e909d
i18n: update source language
2023-04-24 23:49:46 +02:00
Adriaan de Groot
5f51d84887
i18n: support BSD sed in the txpush script
2023-04-24 23:49:23 +02:00
Adriaan de Groot
9dfd83ab7c
i18n: update to newer transifex client
2023-04-24 23:37:33 +02:00
Adriaan de Groot
69d771ae77
docs: Update Transifex links
2023-04-24 23:32:35 +02:00
Adriaan de Groot
9c2cbf7588
[libcalamares] Repair link to Translations
2023-04-24 23:32:24 +02:00
Adriaan de Groot
25b9e23330
i18n: update Transifex configuration
...
Use the new (go-based, APIv3) Transifex cli tool.
2023-04-24 22:43:06 +02:00
Adriaan de Groot
b07f0c2857
Changes: add credit for %p
...
While here, add a disambiguation to help translators.
2023-04-23 11:35:48 +02:00
Adriaan de Groot
3ceee01713
CI: bail out when Transifex script fails
2023-04-22 13:51:49 +02:00
Adriaan de Groot
6a236f7695
Merge pull request #2115 from ptr1337/cmake-O3
...
cmake: Change Release build from -O4 to -O3
2023-04-22 13:35:28 +02:00
Adriaan de Groot
61cc9c9791
Merge pull request #2125 from bitigchi/patch-1
...
Add i18n support for percent value
2023-04-22 13:35:04 +02:00
Emir SARI
2d118c7057
Add i18n support for percent value
2023-04-18 04:21:08 +03:00
Peter Jung
81c87dc5ac
cmake: Change Release build from -O4 to -O3
...
Signed-off-by: Peter Jung <admin@ptr1337.dev >
2023-03-22 19:49:30 +01:00
Adriaan de Groot
4f2ab856a3
Changes: credit for PRs merged into calamares branch
2023-03-21 12:05:14 +01:00
Adriaan de Groot
74d30afad6
CMake: respect LDFLAGS from environment during build
...
Merge pull request #2113 from hamarituc/ldflags
2023-03-21 11:46:58 +01:00
Mario Haustein
4844534d7d
respect LDFLAGS from environment during build
2023-03-18 21:15:31 +01:00
dalto
d35e69c8a9
[mount] Warn on failure to activate swap partition
2023-03-11 10:16:20 -06:00
dalto8
9a75b68ed8
Merge pull request #2109 from Sunderland93/greetd_environment_fix
...
greetd: Change environments entry from desktopFile to desktopExecutable
2023-03-10 23:26:26 +00:00
dalto8
70d4512635
Merge pull request #2103 from dalto8/zfsenhance
...
[partition] Add support for zfs encryption
2023-03-10 23:25:49 +00:00
dalto
da295e00f9
[displaymanager] Fix bug in lightdm preferred greeter implementation
2023-03-05 19:37:33 -06:00
dalto
079f608700
[displaymanager] Fix bug with find_preferred_greeters()
2023-03-05 13:58:13 -06:00
Sunderland93
3a0cb8d1fd
change environments entry from desktopFile to desktopExecutable
2023-03-05 10:40:17 +04:00
Sunderland93
7da1b1eb32
greetd: add option to set CSS file for GTK based greeters
...
Add key to set gtkgreet's style.css in config
Change logic, add comment for setting style.css path
Fix adding style.css path
deduplicate logic
Fix typo
Change config description
Formatting fixes
2023-03-04 09:57:50 +04:00
dalto
f5b974984c
[partition] Remove WITH_KPMCORE42 to fix luks2 support
2023-03-03 19:05:06 -06:00
dalto
ce6f498358
[mount] Post-merge cleanup of swap enablement
2023-02-28 18:35:18 -06:00
dalto8
8e1bd367c4
Merge pull request #2102 from phoepsilonix/calamares
...
During installation, if a swap partition exists, enable swap.
2023-03-01 00:18:25 +00:00
Masato TOYOSHIMA
c296f67356
Update main.py
2023-02-26 07:48:51 +09:00
Masato TOYOSHIMA
5513ffcd1c
Update main.py
2023-02-26 07:24:12 +09:00
Masato TOYOSHIMA
0038751106
UAdded automatic enabling of swap partition before installation starts.
...
Mainly to suppress installer stoppages caused by oom killer.
2023-02-26 07:17:40 +09:00
Masato TOYOSHIMA
719c6f2ff1
Merge branch 'calamares:calamares' into calamares
2023-02-26 02:00:48 +09:00
Masato Toyoshima
6c25be670d
Added automatic enabling of swap partition before installation starts.
...
Mainly to suppress installer stoppages caused by oom killer.
2023-02-26 02:00:12 +09:00
dalto8
ce9250acb5
Merge pull request #2101 from calamares/paolodongilli-calamares
...
Enable preferred-greeters with lightdm
2023-02-24 22:45:15 +00:00
Adriaan de Groot
92a208104b
[displaymanager] lightdm: default to no-preferred-greeter
...
While here, drop nonsensical alternatives: if it's not a
.desktop file, it's not going to work anyway.
2023-02-24 21:10:20 +01:00
Adriaan de Groot
59fd4ee082
[displaymanager] lightdm: logging errors
...
Don't just use *any* file found in the xgreeters directory,
and log when no greeter was found (outside of the translated
error message).
2023-02-24 21:09:48 +01:00
Adriaan de Groot
bbc9d90888
[displaymanager] Allow configuring the preferred-greeter-list
2023-02-24 21:09:48 +01:00
Adriaan de Groot
d448be1077
[displaymanager] Handle preferred / deterministic greeter
2023-02-24 21:09:48 +01:00
Adriaan de Groot
48f61be73a
[displaymanager] Factor out the find-a-greeter part
2023-02-24 21:09:48 +01:00
Paolo Dongilli
8ca6b56f56
Add detection of default lightdm-greeter
2023-02-24 21:09:48 +01:00
dalto
b7af2dd77d
[partition] Add a config option for allowing zfs encryption
2023-02-23 17:17:37 -06:00
dalto8
1855e4f61e
Merge pull request #2083 from dalto8/bootloader
...
Add refind, bootloader selection and general improvements
2023-02-23 23:04:59 +00:00
dalto
d88d2ce92e
[partition] Make EncryptWidget::setFilesystem take a FileSystem::Type
2023-02-23 16:47:39 -06:00
dalto
2f8ef8fdf3
[partition] Fix crash caused by notification storm
2023-02-22 16:42:32 -06:00
dalto
d45819d552
[partition] Check minimum password length for zfs encryption
2023-02-21 18:56:04 -06:00
dalto
f156fc3562
[partition] Enable encryption for zfs with replace partition
2023-02-21 17:24:01 -06:00
dalto8
400dc6cbcc
Merge pull request #2100 from dalto8/fixfsreplace
...
[partition] Fix issues with replace partition
2023-02-21 23:05:23 +00:00
Masato TOYOSHIMA
9050566bdb
Merge branch 'calamares:calamares' into calamares
2023-02-21 21:02:13 +09:00
dalto
cea2b1e8d8
[partition] Enable zfs encryption for erase disk
2023-02-18 16:15:59 -06:00
dalto
ba33908f9f
Merge branch 'calamares' into fixfsreplace
2023-02-18 15:40:46 -06:00
dalto
c54ce69e67
[partition] Fix merge error
2023-02-18 15:36:35 -06:00
dalto
ab51a2ea03
Merge branch 'calamares' into fixfsreplace
2023-02-18 15:20:51 -06:00
dalto8
ad0656953e
Merge pull request #2070 from calamares/fixup-partition
...
Replace luks-is-a-string by an enum
2023-02-18 21:18:07 +00:00
dalto8
35e7474284
Merge branch 'calamares' into fixup-partition
2023-02-18 21:17:13 +00:00
dalto
a1c9dedc37
[partition] Make replace partition call setDefaultFsType() so the FS is updated
2023-02-18 09:43:03 -06:00
dalto
8080adbce2
[partition] Fix issues with replace partition
2023-02-17 15:33:37 -06:00
dalto8
35cc54a6b9
Merge pull request #2087 from dalto8/encrypt-options
...
[partition] Restore encryption option to alongside and replace options
2023-02-17 21:08:55 +00:00
dalto8
e97d3134d6
Merge pull request #2092 from Sunderland93/calamares
...
gtkgreet: disable window decoration in Cage
2023-02-13 20:17:37 +00:00
Masato Toyoshima
77e1407c51
During installation, if a swap partition exists, enable swap.
...
If there is no swap at all when the partition of the installation destination device is mounted,
if a Swap partition exists, enable swap.
2023-02-14 04:30:24 +09:00
demmm
79d796a437
Merge pull request #2091 from calamares/issue-2090
...
Allow overriding greetd user/group
2023-02-14 04:30:04 +09:00
Aleksey Samoilov
cc2a458bce
Merge pull request #1 from calamares/calamares
...
Sync
2023-02-13 19:16:48 +04:00
demmm
a5ae67f93c
Merge pull request #2091 from calamares/issue-2090
...
Allow overriding greetd user/group
2023-02-13 11:00:11 +01:00
Sunderland93
81c316efd1
gtkgreet: disable window decoration in Cage
2023-02-06 17:12:21 +04:00
Adriaan de Groot
46a28543b9
[displaymanager] Add configuration items + schema for greetd user
2023-02-06 11:03:28 +01:00
Adriaan de Groot
f142710fee
[displaymanager] Overwrite DM-instance settings with config-settings
...
If there are settings in the config-file, they can overwrite
settings in the DM-instance in code.
2023-02-06 10:52:25 +01:00
dalto8
f1f903ef9f
[bootloader] Add refind to the comments for efiBootLoader
2023-02-05 16:28:05 +00:00
dalto8
d8a03bb34b
Merge pull request #2069 from dalto8/grubcfg-alwaysdefault
...
[grubcfg] Fix bugs and add option to force defaults to update existing values
2023-01-22 16:47:10 +00:00
dalto
871651c0c1
[partition] Restore encryption option to alongside and replace partition options
2023-01-22 10:44:38 -06:00
dalto8
9647973983
Merge pull request #2086 from wiz64/calamares
...
Update license shields
2023-01-14 15:49:07 +00:00
wiz64
117e2fecf9
Update README.md
2023-01-14 21:17:10 +05:30
wiz64
a307d7d5c1
Update license shields
2023-01-13 21:11:42 +05:30
demmm
a8131c2be2
Merge pull request #2084 from wiz64/patch-1
...
Update actions shields.io image
2023-01-02 18:27:33 +01:00
wiz64
bf77a94721
Update actions shields.io image
2023-01-02 19:19:57 +05:30
dalto8
5670c459ca
Merge pull request #2081 from ptr1337/initcpiokms
...
Add "kms" hook to initcpiocfg
2022-12-27 17:57:54 +00:00
Peter Jung
672cbc3d1a
Use kms hook after autodetect
...
Signed-off-by: Peter Jung <admin@ptr1337.dev >
2022-12-23 11:47:19 +01:00
dalto
a3518e88d3
[bootloader] Add refind, bootloader selection and general improvements
2022-12-22 17:13:43 -06:00
Peter Jung
56fafb8769
Add "kms" hook to initcpiocfg
...
The "kms" hook got added with commit¹ to the default hooks array. Follow the archlinux defaults and add it also.
1. b99eb1c0d5
Signed-off-by: Peter Jung <admin@ptr1337.dev >
2022-12-18 14:22:10 +01:00
Adriaan de Groot
40b7274c85
CMake: copy settings.conf into the build directory
...
Having an up-to-date settings.conf in the build directory
makes `calamares -d` in that directory much more predicatable.
This should not have used CMake command `install()`.
FIXES #2075
CLOSEs #2079
2022-12-18 01:18:33 +01:00
Adriaan de Groot
61ce22338a
Merge branch 'issue-1911' into calamares
2022-12-18 01:09:51 +01:00
Adriaan de Groot
93a24b65a9
[partition] (unrelated) switch types *again* to avoid compile warning
2022-12-18 01:02:08 +01:00
Adriaan de Groot
b022555198
[partition] Assign the replace-mode FS when reading the configuration
2022-12-18 00:58:44 +01:00
dalto
2ea11d4d63
[grubcfg] Minor update from PR feedback
2022-11-05 16:52:50 -05:00
dalto
152895b48c
[grubcfg] Add newline to config
2022-11-05 16:50:05 -05:00
Adriaan de Groot
bca38907e6
[partition] Remove unused widget
...
The ReplaceWidget was mentioned only in comments,
also unused in 3.2 series.
2022-11-05 22:36:51 +01:00
Adriaan de Groot
8b29acfc59
[partition] Convert ReplaceWidget to use enum
...
Add a tag-class parameter, to demonstrate that the
ReplaceWidget class is never used.
2022-11-05 22:28:53 +01:00
Adriaan de Groot
8c8f2a14b6
[partition] Use config object in ChoicePage
2022-11-05 22:19:24 +01:00
Adriaan de Groot
859569e156
[partition] Convert layoutApply()
2022-11-05 22:13:30 +01:00
Adriaan de Groot
9c3f576cd2
[partition] Convert option struct to use the enum
2022-11-05 21:57:28 +01:00
dalto
a45f6a316e
[grubcfg] Fix bugs and add option to force defaults to update existing values
2022-11-05 13:24:37 -05:00
Adriaan de Groot
bd3a1c5e2e
[dracut] Avoid test failure
...
When the config file is all commented-out, then it's empty,
and that is not a valid configuration.
2022-11-05 16:58:00 +01:00
Adriaan de Groot
2ae02bedf8
[partition] Use enum values rather than strings
...
In the innermost APIs, use the enum value rather than
passing strings around.
2022-11-05 16:47:26 +01:00
Adriaan de Groot
5ef1af5aef
[partition] Introduce helpers for Cala Luks generation to KPM generations
2022-11-05 16:28:54 +01:00
Adriaan de Groot
8f72d2541f
No more INSTALL_CONFIG
2022-11-05 15:46:39 +01:00
Adriaan de Groot
5c95bc49af
Merge pull request #2064 from dalto8/umountemergency
...
[umount] Change default config for emergency to true
2022-10-30 21:40:07 +01:00
dalto8
1ee2a2a364
Merge pull request #2057 from dalto8/dracutimagename
...
[dracut] Change image name terminology to match dracut
2022-10-22 17:48:44 +00:00
dalto
a4afddc4e1
[umount] Change default config for emergency to true
2022-10-22 08:23:55 -05:00
demmm
6fd1c90f23
Merge pull request #2058 from dalto8/doublesubvol
...
[mount] Remove duplicate subvol option
2022-10-18 20:38:56 +02:00
dalto8
7a00a68ab4
Merge pull request #2059 from calamares/hostid
...
Add zfshostid module
2022-10-18 05:57:00 -05:00
dalto
d13561e1c7
[dracut] Clean up error handling more
2022-10-16 09:08:42 -05:00
dalto
336a57fdf4
[dracut] Clean up error handling
2022-10-16 09:05:30 -05:00
demmm
26a9ca7a86
[zfshostid] simplify run call
...
required for schema.yaml seems to be for globalstorage entries, not modules
remove section
2022-10-16 14:12:27 +02:00
demmm
cbb01f70e7
Changes: add new parts for 3.3.0-aplha3
2022-10-16 13:41:54 +02:00
demmm
089d3086cc
[zfshostid] adding new module
...
module created to copy zfs generated /etc/hostid, needed to have
hostid in zpool & initramfs in sync
2022-10-16 13:35:09 +02:00
demmm
1b96832bf7
[zfs] adding hostid
...
using ZFS in combination with dracut exposed a bug on system updates hostid from the Live session does not match hostid installed, thus zpool id no longer matches id created by dracut in the kernel img
to work around this, the zfs module now uses zgenhostid to create a hostid
2022-10-16 12:22:45 +02:00
dalto
5a10c58c35
[mount] Remove duplicate subvol option
2022-10-15 17:31:50 -05:00
dalto
596113c80f
[dracut] Change image name terminology to match dracut
2022-10-15 07:06:26 -05:00
Adriaan de Groot
703cbb7bf3
[partition] Allow 'luks' as alias of 'luks1'
2022-10-10 21:12:28 +02:00
Adriaan de Groot
f31056faae
[partition] Tidy formatting of enum tables
...
- the NamedEnumTable is one of the things that clang-format doesn't
do nicely.
2022-10-10 21:09:24 +02:00
Adriaan de Groot
db20b79ac0
Changes: credits for 3.3 work
2022-10-10 21:03:50 +02:00
Adriaan de Groot
3344bf9439
Merge pull request #2052 from shivanandvp/calamares
...
[netinstall] "Noncheckable" option for netinstall package groups
2022-10-09 16:50:13 +02:00
Adriaan de Groot
2b7cc8088d
Merge pull request #2047 from jtheoof/luks2-support
...
[partition] Add support for LUKS2
2022-10-09 16:48:52 +02:00
dalto8
831cfb57b4
Merge pull request #2051 from CachyOS/calamares
...
fix initcpiocfg filesystems loop
2022-09-25 12:06:24 +00:00
shivanandvp
f2ba0929d7
feat: "Noncheckable" option for netinstall package groups
...
The "Noncheckable" option, when true prevents a user from checking the whole group. This does not affect whether any child subgroups or packages can be selected or not
No breaking changes
2022-09-24 21:01:38 -05:00
Peter Jung
5c87452b67
fix initcpiocfg filesystems loop
...
Signed-off-by: Peter Jung <admin@ptr1337.dev >
2022-09-24 13:46:44 +02:00
Adriaan de Groot
f75b599e2a
Merge pull request #2049 from killajoe/patch-1
...
Update services-systemd.conf
2022-09-22 16:29:49 +02:00
Johannes Kamprad
b00a2ede79
Update services-systemd.conf
...
removing mandatory: false from example for cups-socket as it is default same as for the other two (could confuse about may disable needs to set it? )
2022-09-18 14:43:15 +02:00
Jeremy Attali
9def0cb66f
[partition] Add support for LUKS2
...
This commit adds support for LUKS2 behind a new `partition.conf` key:
`luksGeneration`.
A bit of context, LUKS2 is the default encryption operating mode since
cryptsetup >= 2.1.0 (See [Arch
wiki](https://wiki.archlinux.org/title/dm-crypt/Device_encryption#Encryption_options_with_dm-crypt ).
It is considered more secured and allows additional extensions. It also
comes with Argon2id as the default Password Based Key Derivation
Function (`--pbkdf` option). So it's important to provide this as an
option for Calamares in order to make Linux installs more secure, for
those who wish to encrypt their system.
This commit was tested on a custom Manjaro installer with:
- grub bootloader with the [argon patches](https://aur.archlinux.org/packages/grub-improved-luks2-git ).
- [rEFInd](https://wiki.archlinux.org/title/REFInd ) bootloader with
unencrypted `/boot` partition because rEFInd [doesn't support booting
from an encrypted volume](https://sourceforge.net/p/refind/discussion/general/thread/400418ac/ )
**Important consideration for distribution maintainers**:
- You need to have compile flag `WITH_KPMCORE4API` on
- If you are shipping with grub by default please note that you need to
ship it with the Argon patches. Example on Arch Linux: [grub-improved-luks2-git](https://aur.archlinux.org/packages/grub-improved-luks2-git )
- If `luksGeneration` is not found in partition.conf, it will default to
luks1
- Please test this on your own distribution as this was only tested on
Manjaro installer (see above).
2022-09-09 20:41:12 -04:00
Jeremy Attali
ddf65a2437
[partition] Apply format
...
This part was not formated properly. Fixed using clang-format
2022-09-09 20:31:57 -04:00
Adriaan de Groot
4ced8279c6
Changes: document new bits for 3.3.0-a3
2022-09-09 22:10:07 +02:00
Adriaan de Groot
625693ac50
CMake: bump dependency versions
2022-09-09 22:09:56 +02:00
Adriaan de Groot
1821eb1b39
[libcalamaresui] Branding uses $-substitution
...
Replace @{name} with ${name} to be consistent with the rest
of the replacement-code in Calamares.
2022-09-09 22:04:49 +02:00
Adriaan de Groot
d1664f3502
[services-systemd] Correct Python key-checking
...
`has_key()` is a Python2-era form; use the `in` operator insteda.
2022-09-09 09:56:58 +02:00
Adriaan de Groot
6235e04ded
Merge pull request #2046 from calamares/dracut_conf
...
[dracut] add option to make the kernel name configurable
2022-09-08 23:14:15 +02:00
demmm
9191748d82
Changes: updates for 3.3.0-alpha3
2022-09-03 16:22:00 +02:00
demmm
26166e8f51
[dracut] add asked for schema.yaml
...
corrected if statement
2022-09-03 14:36:45 +02:00
Adriaan de Groot
f9f4c6f36e
Merge pull request #2045 from demmm/calamares
...
[localeq] move to using Drawer for fine tuning options
2022-09-03 01:34:49 +02:00
demmm
f16da0fde7
[dracut] add option to make the kernel name configurable
2022-09-02 21:53:42 +02:00
demmm
abdfeaa96c
[localeq] move to using Drawer for fine tuning options
...
i18n.qml no longer needed
add color setting options to localeq.qml
Offline.qml updated to be inline with keyboardq UI, set index number according to default
America/New York
2022-08-26 15:43:47 +02:00
demmm
7e737977cb
[keyboardq] add missing image license
2022-08-25 12:05:07 +02:00
Adriaan de Groot
a741663b20
SPDX: remove license information for removed module-translations
2022-08-25 00:26:31 +02:00
Adriaan de Groot
c0672d11c6
SPDX: license information for the locales-test-data
2022-08-25 00:25:45 +02:00
Adriaan de Groot
842b0925fe
Merge pull request #2044 from demmm/calamares
...
[keyboardq] Move to using a Drawer
2022-08-25 00:19:42 +02:00
Adriaan de Groot
90d159a868
Changes: post-release housekeeping
2022-08-24 23:39:24 +02:00
Adriaan de Groot
130d26ce0a
Changes: close off the 3.2 changelog in the development branch
2022-08-24 23:35:19 +02:00
Adriaan de Groot
bef731b9b9
Changes: post-release housekeeping
...
Note that in 3.2 branch, the version in CMakeLists now changes just before
the next release, not in post-release housekeeping. That is because
the CALAMARES_VERSION_RC remains 0 (release mode), by convention.
(cherry picked from commit aa09664601 )
2022-08-24 23:32:47 +02:00
Adriaan de Groot
b0bd6245fa
Changes: pre-release housekeeping
...
(cherry picked from commit c8eec51c5a )
2022-08-24 23:32:47 +02:00
Adriaan de Groot
54e19af0c5
Changes: document 3.2.61 work so far
...
(cherry picked from commit f2121197ff )
2022-08-24 23:32:47 +02:00
Adriaan de Groot
0e9cf861f4
CI: fix getting-the-version in release script
2022-08-24 00:34:11 +02:00
demmm
7876cdc71a
[keyboardq] Move to using a Drawer
...
no longer use a ComboBox or stack view
if accepted, other QML models using a ComboBox will move to Drawer too
2022-08-23 18:56:49 +02:00
Adriaan de Groot
065647154e
[displaymanager] Skip greetd test if there's no toml
...
toml is needed for greetd, but that shouldn't stop the tests
from running.
2022-08-23 16:04:24 +02:00
Adriaan de Groot
6558cd5150
CMake: add .so-version
...
This is basically PR #2002 , from Undef-a.
2022-08-23 15:45:20 +02:00
Adriaan de Groot
c939fbce96
Changes: pre-release housekeeping
2022-08-23 15:17:55 +02:00
Adriaan de Groot
c34ee74d08
CI: update base for ABI compatibility
2022-08-23 14:08:50 +02:00
Adriaan de Groot
66cc1a74ec
CMake: apply gersemi to libcalamares
...
Since this CMakeLists.txt writes out a C program, the formatting
is a bit weird; just start the written TU with a blank line to
make gersemi happy and keep the C-code aligned.
2022-08-23 12:23:13 +02:00
Adriaan de Groot
8de565f269
CMake: apply gersemi formatting
2022-08-23 12:22:09 +02:00
Adriaan de Groot
c3f366ce9e
CI: check translations against detached branches
...
To avoid git complaining about duplicate worktrees, detach
the temporary trees. To avoid python modules translations
changing order (depending on how find traverses the tree),
sort the filenames before extraction.
2022-08-23 12:09:04 +02:00
Adriaan de Groot
7a262362df
Merge branch 'issue-2008a' into calamares
...
This fixes all the **tests** of locale-detection. Now we can
test for user interaction.
2022-08-23 02:07:33 +02:00
Adriaan de Groot
9a4d992778
[locale] Repair tests
...
- Esperanto now doesn't quite self-match because it has no country
- sr prefers RS as country over ME
2022-08-23 02:06:06 +02:00
Adriaan de Groot
fb3112b75d
[locale] Repair tests
...
- prefers language default country (ca_ES over ca_AD)
- prefers non-empty country match
2022-08-23 02:02:54 +02:00
Adriaan de Groot
3540121449
[locale] Prefer non-empty country matches
...
Prefer "en_US" over "en" even when asking for "en".
2022-08-23 02:02:24 +02:00
Adriaan de Groot
a422fd80d9
[locale] Refactor matching some more
...
- find the best score and match relative to a specific
set of parts; make it easy to update the country-setting
- look for a complete match, or best match, with three
country settings
2022-08-23 00:46:40 +02:00
Adriaan de Groot
6cbf2d7e32
[locale] Factor out the guess-language part
2022-08-23 00:03:04 +02:00
Adriaan de Groot
40527ffd4e
[locale] Be more chatty while matching locales
2022-08-22 23:48:21 +02:00
Adriaan de Groot
eb242168bf
[locale] Log what we matched with (for language)
2022-08-14 21:45:45 +02:00
Adriaan de Groot
cfb8ef9f65
[locale] Use locale-similarity for searching
2022-08-14 17:16:31 +02:00
Adriaan de Groot
a988298a65
[localeq] Needs more shared sources from locale
2022-08-14 17:16:12 +02:00
Adriaan de Groot
78e216fedb
[locale] Introduce a similarity-score for locales
2022-08-14 16:26:46 +02:00
Adriaan de Groot
115f493676
[bootloader] Repair Python 3.6 compatibility
...
Argument *text* is an addition in 3.7, while the Calamares 3.3
branch supports Python 3.6 and later. Use the 'backwards compatibility'
name of the parameter, *universal_newlines*.
Cherry-picked from 33961ff6f (in the 3.2 branch, though, Python 3.3
is supported).
2022-08-07 14:44:31 +02:00
demmm
e9f011b686
Merge pull request #2032 from codesardine/calamares
...
add HDPI support, fix #1945
2022-07-29 21:02:54 +02:00
Vitor Lopes
8c873e0f49
add HDPI support
2022-07-29 18:03:44 +01:00
Adriaan de Groot
af045ab8b2
[calamares] Restore translations of About and Debug buttons
...
Fixes #2030
2022-07-29 10:14:00 +02:00
demmm
42386c520d
[calamares] fix for https://github.com/calamares/calamares/issues/2030
...
adjust CalamaresWindow.cpp so About & Debug buttons pick needd translation for widget sidebar
2022-07-28 17:50:05 +02:00
Adriaan de Groot
fd56b5bdc4
[locale] Approach matching from a different angle
...
- add struct that splits a locale name into parts
- add tests that the splitting and joining works
2022-07-26 22:10:46 +02:00
Adriaan de Groot
be54cd24de
[partition] Factor out visibility of encryption widget
...
- Put this in a method of its own even though it's used
only once, so we can put a good name on it.
- If there are no FS choices (e.g. the sample settings file)
then there is no combo-box, and the check was crashing.
FIXES #2029
2022-07-26 17:33:39 +02:00
Adriaan de Groot
ba96f7ddc2
CMake: build libcalamares with an internal name for KPMcore
2022-07-23 23:48:21 +02:00
Adriaan de Groot
8a43ed99ed
CMake: provide calamares::kpmcore only when kpmcore was found
...
This works around older CMakes that refuse to set arbitrary
properties on a target. Instead, use calamares::kpmcore
as the specific indicator that kpmcore was found.
Breaks build of libcalamares, since that needs **something**
regardless of whether KPMcore was found.
2022-07-23 23:45:32 +02:00
Adriaan de Groot
84c0da2186
[locale] Test KDE neon and FreeBSD separately, same data
...
- wrangle the test framework so it hands the same data to
two different collections of tests; do KDE neon and FreeBSD
separately so it's clearer which lookups are being done
(and a failure in one doesn't prevent the test of the other).
2022-07-19 18:56:50 +02:00
Adriaan de Groot
d52d1bfeee
[locale] Add FreeBSD test data for locale-mapping
2022-07-19 18:48:32 +02:00
Adriaan de Groot
73628b13ea
[locale] Add test for language-mapping
...
Adds specific data from KDE neon and expected mappings.
The test fails right now because the mapping is incorrect.
2022-07-19 18:19:19 +02:00
Adriaan de Groot
8cefb59efb
[packagechooser] Repair namespace-changed build error
...
FIXES #2021
2022-07-19 12:00:05 +02:00
Adriaan de Groot
908928b41c
CMake: repair broken logic around finding KPMcore
...
- the alias libraries calapmcore and calamares::kpmcore
are always created; if there is no KPMcore, they handle
definitions to signal that.
- upstream kpmcore target is the one we should be testing
to see if KPMcore itself is there (or, use KPMcore_FOUND).
2022-07-19 11:54:26 +02:00
Adriaan de Groot
97cbebc0f7
[libcalamares] Move KPMcore-dependencies
...
- FileSystem.h depends on KPMcore and only compiles when
KPMcore is present; it can use KPMcore identifiers.
- Global.h doesn't.
- Move the few functions introduced into Global.h that need
KPMcore, to FileSystem.h instead.
2022-07-19 11:46:57 +02:00
Adriaan de Groot
04e93f513c
[libcalamares] Always use the calamares::kpmcore library
...
When KPMcore is present, the calamares::kpmcore wraps that
and provides suitable API detection. If KPMcore is not
present, the same interface library provides -DWITHOUT_KPMcore.
2022-07-19 11:41:01 +02:00
Adriaan de Groot
eef3bb19d3
Merge pull request #2011 from calamares/improve-kpmcore
...
Fix kpmcore detection and compilation on Debian-11
2022-07-18 23:23:32 +02:00
Adriaan de Groot
64eed3a40c
CI: remove nonsense CMake flags
2022-07-18 23:17:08 +02:00
Adriaan de Groot
10da2c257d
Merge pull request #2009 from calamares/issue-1940
...
[libcalamares] Remove translation-languages define
2022-07-18 23:03:22 +02:00
Adriaan de Groot
c49d520d3d
Merge pull request #2020 from dalto8/zfsfix3
...
[partition] Fix encryption being shown when not available
2022-07-17 23:08:26 +02:00
Adriaan de Groot
650bddae63
Merge pull request #2007 from calamares/issue-1438
...
Use `${}` everywhere instead of `@@`
2022-07-17 23:01:25 +02:00
dalto
250678627a
[partition] Apply format
2022-07-17 14:53:11 -05:00
dalto
56e37d0abb
[partition] Fix encryption being shown when not available
2022-07-17 14:16:42 -05:00
Adriaan de Groot
bb0a2d3bd4
Changes: stray space in the 3.2 changelog
2022-07-14 10:15:28 +02:00
Adriaan de Groot
eccfdbd986
[libcalamares] Mark a TODO that is causing build failures
2022-07-10 13:38:48 +02:00
Adriaan de Groot
3360ad612e
[libcalamares] Use Calamares interface-library to kpmcore
2022-07-10 13:38:48 +02:00
Adriaan de Groot
fb620464d7
CMake: create an alias for KPMcore that fixes its interface
...
- kpmcore (when used as target "kpmcore") has an interface
include directory that does not contain the "kpmcore/"
subdirectory. But the headers it has installed, assume it
is there (e.g. kpmcore internals use #include <fs/filesystem.h>).
- add an alias at Calamares level that sticks in some more
includes, adds the relevant WITHOUT_kpmcore when it's
not there, etc.
2022-07-10 13:38:48 +02:00
Adriaan de Groot
ab813b607f
CMake: move kpmcore support into the helper-CMake-module
...
- find the dependencies just once
- fix the interface for kpmcore so it can find its own
includes (this is mostly relevant for Debian)
2022-07-10 13:38:48 +02:00
Adriaan de Groot
0e6d70c395
[services-systemd] Ungroup systemd units
2022-07-10 12:52:40 +02:00
shivanandvp
27c187084b
fix: Check for name key based on comments on PR
2022-07-06 20:01:50 -05:00
shivanandvp
781ced1a59
feat: feat: Ungroup systemd units in services-systemd module
2022-07-05 23:08:43 -05:00
Adriaan de Groot
8f3ac6e00b
Merge pull request #2010 from calamares/accept-esperanto
...
Remove special case for Esperanto
2022-07-03 12:34:53 +02:00
Adriaan de Groot
24652abe8a
CI: another stab at PR notifications
2022-07-03 00:28:38 +02:00
Adriaan de Groot
6e950cf49c
CI: update translation-fetching to remove Esperanto special case
2022-07-03 00:15:56 +02:00
Adriaan de Groot
4935da8fe4
CMake: support Esperanto
...
Since the minimum Qt version is 5.15.0, we always have a version
that can support Esperanto in QLocale, so drop the checks.
2022-07-03 00:14:35 +02:00
Adriaan de Groot
170a5a8697
[libcalamares] Factor out the list of translations
...
The list of translation codes lives in one place, make it accessible
through a function in Calamares::Locale.
2022-07-03 00:05:40 +02:00
Adriaan de Groot
18a3092aa1
[libcalamares] Use namespace Calamares
...
The distinction CalamaresUtils and Calamares is old-fashioned,
since we can use nested namespaces (and already do) for a lot
of things; make libcalamares/locale/ a bit more consistent
by using namespace Calamares::Locale for everything.
2022-07-02 23:19:44 +02:00
Adriaan de Groot
d7e35d2ad2
[libcalamares] Use newly-generated table of language names
2022-07-02 23:19:44 +02:00
Adriaan de Groot
f53f83be56
CMake: create header with available languages
2022-07-02 23:19:44 +02:00
Adriaan de Groot
42f4cdd40c
CMake: remove redundant comments (they're at top-level too)
2022-07-02 22:37:52 +02:00
Adriaan de Groot
f5891e1c8c
CI: try to get useful notification from pull request change
2022-07-02 22:33:22 +02:00
Adriaan de Groot
2322f12b59
[libcalamares] Remove translation-languages define
...
This doesn't compile, since it doesn't provide any replacement
for the translations define.
2022-07-02 17:42:02 +02:00
Adriaan de Groot
c03850a302
CI: notify on pull-requests
2022-07-02 17:19:11 +02:00
Adriaan de Groot
66002f375c
[bootloader] Don't use @@ replacements
...
SEE #1438
2022-07-02 16:49:19 +02:00
Adriaan de Groot
3d901637d1
[preservefiles] Use ${} expansion instead of @@
...
SEE #1438
2022-07-02 16:49:05 +02:00
Adriaan de Groot
a7b3ccf198
[oemid] Use consistent ${} substitution
...
SEE #1438
2022-07-02 16:08:48 +02:00
Adriaan de Groot
f8a845d996
[users] Use DictionaryExpander instead of raw KMacroExpander
2022-07-02 15:56:59 +02:00
Adriaan de Groot
273941f451
[libcalamares] Add convenience for building macro-expanders
2022-07-02 15:56:21 +02:00
demmm
010ab08384
Merge pull request #2004 from demmm/calamares
...
[webview] remove broken & unused module
2022-07-01 18:39:37 +02:00
demmm
2d9d65f33c
[webview] remove broken & unused module
...
adjust settings.conf to replace webview example & entries
this fixes https://github.com/calamares/calamares/issues/2003
2022-07-01 18:00:21 +02:00
Adriaan de Groot
b4c23b8b70
[users] In tests, adjust failure expectations
...
Some distro's let the user change the hostname at will;
others don't, and yet others don't have systemd to change
the hostname with at all. Check if we **can** change the
hostname (as a non-root user), before setting expectations.
2022-06-28 23:50:56 +02:00
Adriaan de Groot
6a9d9700d4
[grubcfg] Avoid crashes in tests
...
- remove "bogus" key when it's not needed
- check for existence of "branding" key in GS before
subscripting it (this happens in tests, where no
GS contents are loaded, but not in regular use,
where startup loads the branding data into GS)
2022-06-28 23:41:17 +02:00
Adriaan de Groot
0688c7f4e7
CMake: target kpmcore doesn't exist elsewhere, so check was failing
...
Consumers of calapmcode couldn't tell if KPMcore was found.
Pass it around as a property of calapmcore, rather than
anything else.
FIXES #2026
2022-06-28 00:12:33 +02:00
Adriaan de Groot
f42f2514cb
CMake: simplify the KPMcore helper
2022-07-21 13:19:19 +02:00
Adriaan de Groot
09ed07b0c8
[luksopenswaphookcfg] Merge pull request #2025 from demmm/calamares
...
Duplicate key ends up in the configuration file.
FIXES #1659
2022-07-21 01:08:51 +02:00
demmm
f30d568f10
[luksopenswaphookcfg] fix for https://github.com/calamares/calamares/issues/1659
2022-07-20 20:22:04 +02:00
Adriaan de Groot
0c79418393
Changes: mention the -alpha1 release
2022-06-27 23:54:12 +02:00
Adriaan de Groot
b0f86d9fb6
Changes: DBus activation was a mistake, now reverted
2022-06-27 23:53:04 +02:00
Adriaan de Groot
3b08ace966
Changes: mention more module-config changes
2022-06-27 23:52:13 +02:00
Adriaan de Groot
ee848e2367
[libcalamares] About box should show extended version if available
2022-06-27 23:48:03 +02:00
Adriaan de Groot
9d593a2a90
[services-systemd] Repair schema
...
No # in IDs (see *netinstall* schema for explanation).
2022-06-27 23:19:26 +02:00
Adriaan de Groot
208e7736e6
[welcome] Repair example config file
...
Needs quotes for boolean values that are really names.
2022-06-27 23:19:07 +02:00
Adriaan de Groot
bb05deca33
[netinstall] Repair schema IDs
...
The schema is considered invalid by **some** versions of
configvalidator (or rather, the underlying jsonschema):
```
128: '#definitions/groups' does not match '^[^#]*#?$'
128:
128: Failed validating 'pattern' in metaschema['properties']['definitions']['additionalProperties']['$dynamicRef']['allOf'][0]['properties']['$id']:
128: {'$comment': 'Non-empty fragments not allowed.',
128: '$ref': '#/$defs/uriReferenceString',
128: 'pattern': '^[^#]*#?$'}
```
Remove the `#` from the IDs.
2022-06-27 23:12:31 +02:00
Adriaan de Groot
cdbc7fffca
[mount] Repair test-config files against schema
...
- can't use *bogus* as a key unless that's allowed by
the schema -- and it is not.
- can't supply empty config if there is supposed to be
an object there.
This makes it a little difficult to allow a config-file
that is actually no-configuration-at-all (or only-defaults).
Put in values for *btrfsSwapSubvol* since it isn't a fragile
setting.
2022-06-27 23:04:12 +02:00
Adriaan de Groot
d797aea311
[grubcfg] Repair typo in schema key
2022-06-27 23:00:13 +02:00
Adriaan de Groot
873d5e3522
[fstab] Remove schema-entry for mountOptions
...
These were removed from the module in commit
03f2e45605
but later restored by a botched merge.
2022-06-27 22:57:14 +02:00
Adriaan de Groot
ef4980448a
[bootloader] Repair schema file
...
Looks like clang-format was applied to this JSON schema
file in 5a14c3c76f , which is
completely borked. Restore from earlier revision, now
with just `machineid` removed.
2022-06-27 22:50:37 +02:00
Adriaan de Groot
1c7c0b9af8
CI: apply coding style (clang-format 13)
2022-06-27 00:37:15 +02:00
Adriaan de Groot
5a14c3c76f
[bootloader] Fix schema file for config
...
A stray "machineid" was added, without a type definition,
so the config file -- which doesn't mention machineid at all
-- was considered invalid. Drop it because the key isn't mentioned
anywhere else.
2022-06-27 00:36:20 +02:00
Adriaan de Groot
c826e8e78a
CI: replace 'prepare' step with a script in the Calamares repo
...
This applies to the Debian nightly builds; having to go through
external actions doubles the effort to debug these kinds of
scripts, so just slap the actual commands into the workflow.
This also makes it easier to migrate to a different hosting.
2022-06-26 23:53:36 +02:00
Adriaan de Groot
96fb97d53a
Changes: pre-release housekeeping
...
- this would be the first 3.3 release, scripts still needed
cleanup to handle all the changes in 3.3
- support "-alpha1" kinds of designation
- support more versioning information in the headers
2022-06-26 23:49:14 +02:00
Adriaan de Groot
20d96f9ea3
[libcalamaresui] More constness
2022-06-26 23:24:32 +02:00
Adriaan de Groot
36df20eb0e
Merge branch 're-import-kdsag' into calamares
...
FIXES #1997
2022-06-26 23:10:16 +02:00
Adriaan de Groot
86d3932a16
[calamares] Hook up to KDSAG again (instead of DBus activation)
2022-06-26 23:06:31 +02:00
Adriaan de Groot
784f591dee
3rdparty: build only the part of KDSAG we need
2022-06-26 22:03:06 +02:00
Adriaan de Groot
e80764a01e
3rdparty: import KDSingleApplication
...
This was removed (in favor of DBus activation) but DBus activation
does not work; re-import the latest version, now under the MIT
license. Pull in only src/ and the license file, though.
https://github.com/KDAB/KDSingleApplication
9dc8b2f61638aa1c4dbf49d38f8b97178974409f
2022-06-26 21:59:53 +02:00
Adriaan de Groot
3b9aa272f7
Desktop: mark as single-main-window
...
Desktop environments that understand this (relatively new)
.desktop key won't offer multi-window-related functionality.
2022-06-26 21:53:24 +02:00
demmm
1d1aff5622
Merge pull request #1996 from Sunderland93/calamares
...
greetd: remove autologin copied from the Live ISO
2022-06-22 14:18:14 +02:00
Sunderland93
464a9ac503
greetd: fix typo in gtkgreet path
2022-06-22 11:52:14 +04:00
Sunderland93
136ec3df58
greetd: remove autologin copied from the Live ISO ( fixes #1995 )
2022-06-22 11:49:21 +04:00
Adriaan de Groot
d9b4562076
Style: remove trailing ; after namespace
2022-06-20 21:48:22 +02:00
Adriaan de Groot
3a0b75a006
Merge branch '3.2.x-stable' into calamares
2022-06-19 16:05:17 +02:00
Adriaan de Groot
6dbf9de06e
Changes: post-release housekeeping
2022-06-19 16:01:34 +02:00
Adriaan de Groot
795256cba5
Changes: release-related housekeeping
2022-06-19 16:00:41 +02:00
Adriaan de Groot
b11ee3abc5
[libcalamares] Add alternatives ca@valencia and ca_ES@valencia
2022-06-19 15:34:20 +02:00
Adriaan de Groot
82b19a6314
[locale] Fix up handling of regional variants, country-specifics
...
- expand tests to include Serbian variants
- massage detection code to do better filtering based on
country-selection (so "American English" doesn't later
pick "English" with Antigua and Barbados for locale)
2022-06-19 15:25:23 +02:00
Adriaan de Groot
18626901d3
[locale] Improve regional variant lookup
2022-06-19 14:49:46 +02:00
Adriaan de Groot
40d8e1e0f6
[locale] Expand tests for matching-valencia locales
2022-06-19 14:39:12 +02:00
Adriaan de Groot
b8b7b10bfd
[locale] Be more chatty when loading locales
2022-06-19 14:17:12 +02:00
Adriaan de Groot
ed5149c17f
CI: on 3.2 branch, check for 3.2 branch
2022-06-19 12:43:12 +02:00
Adriaan de Groot
f4fb495488
CI: replace 'prepare' step with a script in the Calamares repo
2022-06-19 12:34:12 +02:00
Adriaan de Groot
b7dcf55d4c
[locale] Add debug while mapping language+country
2022-06-19 11:51:38 +02:00
Adriaan de Groot
7f7e4aa1ae
[locale] Expand tests to language-matching
2022-06-18 12:33:02 +02:00
Adriaan de Groot
79db04dc2e
[locale] Defer to the locale-service idea of LANG
...
- Using QLocale().name() loses some special locales that
Calamares understands but Qt does not (e.g. sr@latn, ca@valencia)
so do it in two steps.
2022-06-18 11:48:50 +02:00
Adriaan de Groot
2478570deb
[libcalamares, keyboard] Use convenience for getting current locale
2022-06-18 00:40:26 +02:00
Adriaan de Groot
d80661211c
[libcalamares] Introduce convenience for reading Locale map
2022-06-18 00:23:21 +02:00
Adriaan de Groot
4420120b55
i18n: update language lists, welcome back Uzbek
2022-06-17 23:29:55 +02:00
Calamares CI
1f237cd373
i18n: [python] Automatic merge of Transifex translations
2022-06-17 22:20:17 +02:00
Calamares CI
214522f42a
i18n: [calamares] Automatic merge of Transifex translations
2022-06-17 22:20:17 +02:00
demmm
0257c9d31e
[welcomeq] set needed Text id
2022-06-15 19:52:27 +02:00
demmm
e4729b8dc3
[welcomeq] adjust Requirements.qml
...
starting with 217e4ab4f7
the messages have expanded, no longer fitting in the used ListView model
set the text blocks to expand with text size, add a scrollbar
reduce top spacing so underlying image won't show
set the full requirements listing as default
2022-06-15 18:26:35 +02:00
Calamares CI
5f55f14f9d
i18n: [python] Automatic merge of Transifex translations
2022-06-14 13:32:17 +02:00
Calamares CI
0809dc65ec
i18n: [calamares] Automatic merge of Transifex translations
2022-06-14 13:32:16 +02:00
Adriaan de Groot
2696bd5b44
CI: update action references to pull in the right packages for nightly build
2022-06-14 11:33:59 +02:00
dalto8
9cfbb4106b
Merge pull request #1991 from demmm/calamares
...
[bootloader] bootLoader GS is always empty for EFI
2022-06-13 14:44:21 +00:00
demmm
8461571fbd
[bootloader] bootLoader GS is always empty for EFI
...
with e15e57600e (diff-91818b0ce02fc61c3ff4b136101ee5f632a3a1febc46632dcd1dc4dc4ddc8594L801) the bootloader module will never run for EFI systems. Option to select to install or not install a bootloader is only visible on BIOS systems at this point.
Go back to only using bootLoader value for BIOS systems. This fixes https://github.com/calamares/calamares/issues/1990
2022-06-13 11:04:00 +02:00
Adriaan de Groot
700f2a6af3
[fstab] Warn when the mount options end up weird
...
Cherry-picked from 3.3, but only half of it applies.
2022-06-12 14:50:51 +02:00
Adriaan de Groot
2f3fb4a387
[fstab, mount] Warn when the mount options end up weird
2022-06-11 00:30:32 +02:00
Adriaan de Groot
57d978b82d
Merge pull request #1977 from calamares/issue-1974
...
[welcome] Show welcome-image when all requirements are satisfied
2022-06-11 00:17:01 +02:00
Adriaan de Groot
7ccd7aa4e5
i18n: fix plurals in English while waiting for requirements-checker
2022-06-10 01:33:57 +02:00
Adriaan de Groot
42f9f07a07
[libcalamares] The spinner doesn't support rich text
2022-06-10 01:27:37 +02:00
Adriaan de Groot
9f91b50553
[libcalamares] Use Q_EMIT instead of 'emit'
2022-06-10 01:04:43 +02:00
Adriaan de Groot
f8dd3ea133
[welcome] Extend schema to allow the debugging checks
2022-06-10 01:00:40 +02:00
Adriaan de Groot
0fd0e9a1af
[welcome] Add debugging checks slow-false and slow-true
2022-06-10 01:00:27 +02:00
Adriaan de Groot
26751f2acd
[welcome] After creating ResultsListWidget, update it to current model state
2022-06-10 00:52:45 +02:00
Adriaan de Groot
849b831ca4
Merge pull request #1986 from ptr1337/initcpio_fix
...
fix initcpio issue from 3.3 merge
2022-06-09 09:18:04 +02:00
Adriaan de Groot
4d10629acf
Merge pull request #1979 from abalfoort/issue-1963
...
FIXES #1963 : label encrypted partitions
2022-06-09 09:17:22 +02:00
Peter Jung
341fecd3ff
fix initcpio issue from 3.3 merge
...
Signed-off-by: Peter Jung <admin@ptr1337.dev >
2022-06-09 04:00:18 +02:00
dalto8
056a5c29cb
Merge pull request #1981 from monetaryabyss/issue-1980
...
[fstab] Remove ssd_extra_mount_options from fstab module.
2022-06-08 19:35:19 +00:00
demmm
a20ab6f0c6
[keyboardq] missed keyboardq.qrc merge
...
fixes https://github.com/calamares/calamares/issues/1985
2022-06-08 20:26:09 +02:00
Dan Simmons
70b83f5ca6
[fstab] Remove ssd_extra_mount_options from fstab module.
...
This looks to be a remnant from moving this to the mount module
which left an undefined variable. The mount options are now part
of the globalstorage and consumed here as mount_options_list.
FIXES #1980
2022-06-07 22:40:13 -04:00
abalfoort
9ca763127d
Fix issue 1963: label encrypted partitions
2022-06-07 17:20:56 +02:00
Adriaan de Groot
9fdae8c76f
Merge pull request #1976 from calamares/fix-color-names
...
[libcalamaresui] Fix color names
2022-06-07 16:06:08 +02:00
Adriaan de Groot
8b44eef002
[calamares] Make naming consistent between 'special' buttons
2022-06-07 16:02:29 +02:00
Adriaan de Groot
e6960ceec1
[calamares] Restore text on debug- and about-buttons
2022-06-07 16:02:29 +02:00
Adriaan de Groot
0141e681df
Merge pull request #1973 from calamares/issue-1967
...
[calamares] Improve "about" and "debug" buttons
2022-06-07 16:01:14 +02:00
Adriaan de Groot
f5c58c8065
CI: use latest checkout action, to help support PRs
2022-06-07 12:45:06 +02:00
Adriaan de Groot
3645f99259
CI: update branch names where push-CI happens
2022-06-07 12:33:02 +02:00
Adriaan de Groot
105159a285
CI: update openSUSE and Debian versions
2022-06-07 12:31:02 +02:00
Adriaan de Groot
f958a3c2f7
[welcome] Update the results-list when a round of checks completes
...
When the checks were done, the widget showing the countdown-timer
and results was not being informed, so it didn't update the
display of the countdown timer or hide the list of problems
(when there are none) so that the welcome image is shown.
FIXES #1974
2022-06-07 12:12:54 +02:00
Adriaan de Groot
d4a776e759
[libcalamaresui] Adjust description of countdown spinner
2022-06-07 11:55:03 +02:00
Adriaan de Groot
1ae79fe58c
[calamares] Make naming consistent between 'special' buttons
2022-06-03 12:08:41 +02:00
Adriaan de Groot
687d44859f
[calamares] Restore text on debug- and about-buttons
2022-06-03 12:08:09 +02:00
Adriaan de Groot
2c07463ac6
[libcalamaresui] Check for typo's in branding keys
2022-06-03 11:53:02 +02:00
Adriaan de Groot
7356961f52
[libcalamares] Use the enum names as keys
...
- this uses the Qt internals to map enum values to names, making
the separate translation table unnecessary. Adjust default branding
to use the new names.
This makes code (using enum identifiers) and configuration (using
string keys) consistent in naming.
2022-06-03 11:40:10 +02:00
Adriaan de Groot
e6d72cb23b
[calamares] Correct enum-names in QML Sidebar
...
- previous commits did not fix up all the enum names; this means
you get errors -- because Branding.SidebarTextSelect is not a known
name in the enum Branding::StyleEntry -- and the colors are messed up.
2022-06-03 11:27:39 +02:00
Adriaan de Groot
dc699db5f5
[libcalamaresui] Document style-string mapping
...
- while here, the static array of names doesn't need to be
a class member, it is entirely internal.
- document how names are mapped to branding keys.
2022-06-03 11:20:59 +02:00
Adriaan de Groot
c9be4c744f
[partition] Use the chosen replace-filesystem type
2022-06-03 10:44:39 +02:00
Adriaan de Groot
916b87e62e
[partition] (unrelated) remove compatibility code for older Qt
2022-06-02 18:36:26 +02:00
Adriaan de Groot
425901fb98
[partition] Fix up combo-box handling for replace-fs choice
2022-06-02 18:32:54 +02:00
Adriaan de Groot
3b55b65a34
[partition] Implement config-side of a replace-filesystem choice
2022-06-02 18:30:35 +02:00
Adriaan de Groot
b763087e11
[partition] Partial implementation of Config-side for storing replace-FS
2022-06-02 14:58:28 +02:00
Adriaan de Groot
e27c57f8a6
[partition] Add FS-choice box when replacing (re-use the erase-fs configuration)
2022-06-02 14:58:11 +02:00
Adriaan de Groot
821a62ffbb
[libcalamares] Add missing <memory> for std::unique_ptr
...
SEE #1972
2022-06-02 14:38:44 +02:00
Adriaan de Groot
72240d0d59
Merge branch 'work-3.3' into calamares
2022-05-29 17:22:36 +02:00
Adriaan de Groot
13153df484
Changes: post-release housekeeping
2022-05-29 17:13:02 +02:00
Adriaan de Groot
fb910d7c41
[fstab] Fix schema for new tmpOptions settings
2022-05-29 17:04:24 +02:00
Adriaan de Groot
55f1df9563
[users] Just don't test restore-to-previous, too flaky
2022-05-29 17:00:37 +02:00
Adriaan de Groot
b2f1a28504
Changes: pre-release housekeeping (3)
2022-05-29 16:21:07 +02:00
Adriaan de Groot
aca48bc027
i18n: update english
2022-05-29 16:17:53 +02:00
Calamares CI
753ba765eb
i18n: [python] Automatic merge of Transifex translations
2022-05-29 16:16:15 +02:00
Calamares CI
34d8d90688
i18n: [calamares] Automatic merge of Transifex translations
2022-05-29 16:16:14 +02:00
Adriaan de Groot
729c31dd7a
Changes: document About-button
...
FIXES #1922
2022-05-29 16:14:34 +02:00
Adriaan de Groot
1b2d12b9a1
[calamares] Give QML-progress-panel an about-button
2022-05-29 16:12:10 +02:00
Adriaan de Groot
ce74d2fdfc
[calamares] Fix QML progress highlights
2022-05-29 15:56:21 +02:00
Adriaan de Groot
d34f593562
[calamares] Migrate the about-dialog to the debug (meta) window manager
...
- DebugWindowManager already manages not-really-Calamares windows
like the Debug window, add About-Dialog to its responsibilities.
- Make about() accessible to the QML progress panel.
2022-05-29 15:54:03 +02:00
Adriaan de Groot
00898b18d6
[welcomeq] Remove about-calamares button from default QML
2022-05-29 15:38:06 +02:00
Adriaan de Groot
84186babab
[welcome] Remove the about-calamares button from the (widgets) UI
2022-05-29 15:34:19 +02:00
Adriaan de Groot
18363ca183
[welcome] Move about-calamares box to Calamares (main)
2022-05-29 15:31:25 +02:00
Adriaan de Groot
006c3f99e6
[calamares] Add 'about calamares' button alongside the debug-button
2022-05-29 15:22:02 +02:00
Adriaan de Groot
04121892cf
Changes: pre-release housekeeping (2)
2022-05-29 14:00:22 +02:00
Adriaan de Groot
3e72635204
[libcalamares] Fix path-search for loading branding-translation
...
- log which path is actually being used
- there are two overloads for QTranslator::load(); the intention
was to call `QTranslator::load(const QLocale&, ...)`, but the
types of the arguments were wrong, leading to the other
overload being called, and interpreting the locale-name
(e.g. "nl") as a full filename.
Improve logging, call the "other" overload with the right parameters
and drop the not-needed ones.
FIXES #1961
2022-05-29 00:55:35 +02:00
Adriaan de Groot
7dc450edb4
Changes: update the AUTHORS list (probably still incomplete)
2022-05-29 00:28:49 +02:00
Adriaan de Groot
6e8d820737
[partition] Missing space
2022-05-28 13:43:45 +02:00
Adriaan de Groot
135fce77c1
i18n: update english
2022-05-27 12:39:58 +02:00
Adriaan de Groot
b5c5eecdbd
Changes: pre-release housekeeping
2022-05-27 11:18:25 +02:00
Adriaan de Groot
af813ac95b
[fstab] Don't import (unused) subprocess
2022-05-24 16:51:36 +02:00
Adriaan de Groot
bb395db9f4
Merge branch 'release-3.2.58.2' into calamares
2022-05-24 16:48:05 +02:00
Adriaan de Groot
ff7ceb2e2b
[fstab] Replace two-step attribute-setting with one step
2022-05-24 15:56:34 +02:00
Adriaan de Groot
cada0f2547
Changes: pre-release housekeeping
2022-05-24 15:25:31 +02:00
Adriaan de Groot
f4e5e08aa8
[fstab] Be more careful in setting up btrfs swap
...
- do not use subprocess module in Python bits,
- do +C (no-CoW) after turning compression off
2022-05-24 15:18:50 +02:00
Adriaan de Groot
5526cdc03c
Changes: credits for fstab improvements
...
FIXES #1958 (PR)
2022-05-24 13:30:26 +02:00
abalfoort
63ee982d36
[fstab] Configure tmp on tmpfs
...
Adds a new option / configuration keys to `fstab.conf` to
configure how /tmp is created. The example shows how /tmp
is made *tmpfs* on an SSD, or on not-SSD, is just-a-directory.
FIXES #1818
2022-05-24 13:26:07 +02:00
abalfoort
4e5078c950
[fstab] Fix unencrypted root check
...
There are more ways (than not having a keyfile) for the root
partition to be unencrypted. Check it based on the settings
in the partition data.
2022-05-24 13:25:28 +02:00
Adriaan de Groot
61c67f8c22
Changes: document LUKS fix
...
FIXES #1957 (PR)
2022-05-24 13:15:45 +02:00
abalfoort
badb1d4706
[luksbootkeyfile] Handle key-slots-are-full
2022-05-24 13:07:17 +02:00
Adriaan de Groot
dfffbc62bc
Changes: credits for recent work
...
FIXES #1955 (PR)
2022-05-24 12:58:02 +02:00
Adriaan de Groot
fd53c090f4
[partition] Massage coding style
...
- some long-missing (unrelated to recent PR) braces
- remove some redundant comments
2022-05-24 12:58:02 +02:00
Adriaan de Groot
6de880c95d
[partition] No need for temporary variable
2022-05-24 12:58:02 +02:00
Adriaan de Groot
de03a92a8f
[partition] Move LUKS helpers code-documentation
2022-05-24 12:58:02 +02:00
abalfoort
2a7cbd2520
[partition] update LuksDevice to savePassphrase and enum
2022-05-24 12:58:02 +02:00
Adriaan de Groot
4edad4d8c4
Changes: post-release housekeeping
2022-05-24 12:58:02 +02:00
Adriaan de Groot
7e4fc3e4c7
[welcome] Use about-message from Config
...
- for QML, this is the easiest way to factor out the message
(no convenient access to free functions, unless I bung the
message into e.g. Branding where I don't think it fits
very well).
2022-05-23 17:11:45 +02:00
Adriaan de Groot
f9f18e5d3b
[welcome] Use welcome message from Config object
2022-05-23 17:00:56 +02:00
Adriaan de Groot
4a852facb3
[welcome] Use generated about string
2022-05-23 16:57:51 +02:00
Adriaan de Groot
09255a1d9c
[libcalamares] Add a more extensible About message
...
- make the years easier to update without annoying translators
- make the maintainers extensible.
2022-05-23 16:45:23 +02:00
Adriaan de Groot
f8345a09a2
[netinstall] Add disambiguation to labels
2022-05-23 15:41:45 +02:00
Adriaan de Groot
72f25f24ef
CI: allow no-testing on the release tarball
2022-05-21 13:27:22 +02:00
Adriaan de Groot
8466d1eb3e
CI: remove Linuxisms from release script
2022-05-21 12:44:32 +02:00
Adriaan de Groot
cc7fe7fff7
[users] Adjust failure expectations (today, for an openSUSE development host)
2022-05-20 22:50:23 +02:00
Adriaan de Groot
0a4e6804c6
[partition] Move encryption state-calculation to state()
...
Previously, state() just returned a stored state, which changed
via updateState(). However, when updateState() started taking
visibility-of-the-widget into account, it became possible to
de-sync the *apparent* state of the encryption widget, from the
stored one:
- make an encryption widget, which is not visible
- show it.
Now the stored-state takes visibility into account that is
different (hidden, so we end up with a state of Unconfirmed)
from the apparent value (shown and unchecked).
Move the calculation to state() instead, so whenever queried,
it checks the current checks-and-visibility values. Restore
the previously-reverted bit for accepting LUKS partitions.
SEE #1935
SEE #1953
2022-05-20 18:10:24 +02:00
Adriaan de Groot
900700b9bc
[partition] Partial revert reuse-luks merge
...
- a hidden checkbox should not be handled the same as a checkbox
that is checked; if there is a setting that can be checked or
unchecked, it can only be checked when visible.
FIXES #1953
2022-05-20 13:49:32 +02:00
Adriaan de Groot
12b62980cb
Changes: pre-release housekeeping
2022-05-20 12:14:05 +02:00
Adriaan de Groot
e7f6ead038
[partition] When changing encryption-widget visibility, re-check next
2022-05-20 12:02:25 +02:00
Adriaan de Groot
51e3ac0ded
[partition] Polish up debugging when checking for next-enabled
...
- Improve the messages a bit
- Remove useless variable (it is checking that the switch(choice)
statement covers all the cases; let's leave that to the compiler)
2022-05-20 11:56:08 +02:00
Adriaan de Groot
2a42084af4
[partition, users] Fix merge artifacts
2022-05-18 15:16:30 +02:00
Adriaan de Groot
66682b3e84
Merge branch 'calamares' into work-3.3
2022-05-18 15:13:21 +02:00
Adriaan de Groot
17814410e9
[users] always-forbidden-names should be set in the Config constructor
2022-05-18 14:40:35 +02:00
Adriaan de Groot
cebafcf869
[users] Make test more expressive
2022-05-18 14:37:02 +02:00
Adriaan de Groot
7d5a4eafa2
[partition] Support KPMCore3 API (no testPassphrase in FS::luks)
2022-05-18 14:06:00 +02:00
Adriaan de Groot
fc8e5fb5c7
CI: forbid clang-format-14
2022-05-18 12:55:15 +02:00
Adriaan de Groot
f352740aba
Git: update blame-ignore
2022-05-18 12:45:32 +02:00
Adriaan de Groot
874a0c1f38
CI: apply coding style globally again
2022-05-18 12:44:55 +02:00
Adriaan de Groot
8fea6f71ab
[partition] Apply coding style
2022-05-18 12:26:19 +02:00
Adriaan de Groot
56071c4016
CI: acceptable clang-format versions
2022-05-18 12:22:51 +02:00
Adriaan de Groot
9e664d7165
Changes: pre-release housekeeping
2022-05-18 12:05:45 +02:00
Calamares CI
cf5f0e1caa
i18n: [calamares] Automatic merge of Transifex translations
2022-05-18 11:52:43 +02:00
Adriaan de Groot
62f3055e5a
[netinstall] Implement a special "blank" item
...
- If the name of an item is empty, treat it as a
"separator line", do not paint it like a regular
item. The branches of the tree just pass it by.
2022-05-18 00:25:04 +02:00
Adriaan de Groot
542aa5c083
SPDX: tag the ignore-revs file, too
2022-05-17 23:29:37 +02:00
Adriaan de Groot
9e2728bcb7
[netinstall] Polish up SPDX headers
2022-05-17 14:40:36 +02:00
Adriaan de Groot
6bf710bed3
[netinstall] Introduce a custom class for the Tree Widget
2022-05-17 14:38:44 +02:00
Adriaan de Groot
67ad12c2d0
Docs: suggest IRC for non-account chat
2022-05-17 11:01:06 +02:00
Adriaan de Groot
4a4d872bb0
Docs: offer alternative Matrix webchat link
2022-05-17 10:51:36 +02:00
Adriaan de Groot
9d6bb2ee2a
Merge pull request #1952 from abalfoort/#1935
...
#1935 - Reuse luks partitions
2022-05-17 10:35:51 +02:00
Adriaan de Groot
a63c474d93
Merge pull request #1948 from dalto8/zfsencryption
...
[partition] Don't offer whole disk encryption when zfs is selected
2022-05-17 10:31:48 +02:00
abalfoort
f67df577db
Fix compilation warning
2022-05-16 15:08:11 +02:00
abalfoort
25a6a5ee53
Fix crypttab
2022-05-16 15:06:59 +02:00
abalfoort
cd4b8d4179
Reuse luks partitions
2022-05-16 15:06:33 +02:00
dalto
31c8123677
[partition] Remove no longer needed setChecked() in the encryption widget
2022-05-14 10:38:27 -05:00
Adriaan de Groot
d318778f53
Merge pull request #1949 from dalto8/removeemits
...
Remove unneeded emits
2022-05-14 17:24:48 +02:00
dalto
152f99fb07
Remove useless emits
2022-05-13 17:24:07 -05:00
dalto
42841a217c
[partition] Don't offer whole disk encryption when zfs is selected
2022-05-13 16:24:15 -05:00
demmm
7937cd625d
[localeq]Map.qml needed fixes
...
esri has several bugs, not showing for all locations, zooming on Americas broken
use osm as default, set preferred, so esri can be fallback
remove Label section for mouse movement, showing coordinates not really useful,
issue with mouse grabbing is back with it
2022-05-13 13:17:19 +02:00
Adriaan de Groot
0d3e5e1c26
CMake: find boost_python as well
...
On FreeBSD, at least, `find_package(Boost COMPONENTS python)`
doesn't work well, while `find_package(boost_python)` does the job.
Be somewhat more flexible: look for boost_python first, assuming
it pulls in the rest of the Boost bits it needs.
2022-05-10 11:16:24 +02:00
Adriaan de Groot
52e2c8c262
[libcalamares] Use stronger type, rather than comment
2022-05-10 00:30:35 +02:00
Adriaan de Groot
a9df841770
CMake: fix Python3-executable uses
2022-05-10 00:07:41 +02:00
Adriaan de Groot
7096ee760e
[libcalamaresui] Remove unused image-transformation function
2022-05-10 00:07:41 +02:00
Adriaan de Groot
880c367d64
[libcalamaresui] Remove under-used function
2022-05-10 00:07:41 +02:00
Adriaan de Groot
704e250664
[libcalamaresui] Remove under-used function
...
- there was one consumer of this function, and it was over-engineered
for what was needed (removing a list of widgets). Just drop it.
2022-05-10 00:07:41 +02:00
Adriaan de Groot
928b46f18e
[libcalamaresui] Use namespace Calamares::Widgets
2022-05-10 00:07:41 +02:00
Adriaan de Groot
f42924a9ca
CI: accept clang-format 12-14
2022-05-10 00:07:41 +02:00
Adriaan de Groot
9196f696ea
[users] Ensure the basic forbidden-names are always forbidden by the constructor
2022-05-09 15:25:14 +02:00
Adriaan de Groot
824d706a20
[users] Fix tests
...
- in 3.3, the legacy values are ignored, so all the old-style
tests behave as if nothing is set at all.
- Some tests used old-style settings, adapt to newer ones.
2022-05-09 15:24:43 +02:00
Adriaan de Groot
f4e9b3689d
[users] Remove legacy settings
2022-05-09 15:06:21 +02:00
Adriaan de Groot
bbeba5c9ab
Merge branch 'calamares' into work-3.3
2022-05-09 15:03:41 +02:00
Adriaan de Groot
0678957def
Merge pull request #1946 from dalto8/mount-schema
...
[mount] Update schema to use arrays
2022-05-09 15:02:27 +02:00
Adriaan de Groot
bc98b9892c
Changes: document new settings in the users module.
2022-05-09 15:01:49 +02:00
Adriaan de Groot
d0db56e964
[users] Simplify code: use contains() instead of a for-loop
2022-05-09 14:58:46 +02:00
Adriaan de Groot
ef9bf2650c
[users] Allow a configurable list of forbidden names
...
- forbidden login names
- forbidden host names
2022-05-09 14:51:13 +02:00
Adriaan de Groot
7473462125
[users] Introduce forbidden_names settings
2022-05-09 14:51:13 +02:00
Adriaan de Groot
40c5ef1c35
[users] Add new structured setting to example file
2022-05-09 14:33:39 +02:00
Adriaan de Groot
fe04ae3ac1
[users] Introduce new structure for users-settings
2022-05-09 14:33:39 +02:00
Adriaan de Groot
1bf5206bd7
[users] Apply code-style to test-code
2022-05-09 14:33:39 +02:00
dalto
85c67113b7
[mount] Update schema to use arrays
2022-05-09 06:50:33 -05:00
Adriaan de Groot
14129fedb6
Changes: post-release housekeeping and credits
2022-05-09 13:23:45 +02:00
Adriaan de Groot
3bc3b352d8
[displaymanager] Add LF after last line of greetd configuration
...
FIXES #1937
2022-05-06 11:47:44 +02:00
Adriaan de Groot
21aa608ce2
Merge branch 'calamares' into work-3.3
2022-05-05 23:35:53 +02:00
Adriaan de Groot
091eb9683b
[libcalamares] Give Occitan a native name
2022-05-05 15:23:54 +02:00
Adriaan de Groot
4be25e2f70
[libcalamares] Special-case the regions through the lookup-table as well
2022-05-05 15:20:29 +02:00
Adriaan de Groot
2de7736291
[libcalamares] Replace locale special-cases by a table
...
Replace the function with a table-driven approach,
since that is somewhat easier to extend to more
languages.
2022-05-05 14:42:12 +02:00
Adriaan de Groot
e005b1af32
Merge pull request #1941 from edupals/special_locale_region
...
[libcalamares] Improving special-case language detection
2022-05-05 11:22:32 +02:00
Lt-Henry
a8857e51f4
Improving special-case language detection
2022-05-05 11:12:29 +02:00
Adriaan de Groot
ed9155bfd8
CMake: fix reversed logic
...
RC (in the 3.2 branch) and RELEASE_MODE are inverted, logically,
but the change to the CMake check wasn't properly inverted.
This only matters if you try to build Calamares in the src-dir,
which is something I never do anyway.
2022-05-04 12:01:36 +02:00
Adriaan de Groot
4713f0be42
Merge branch 'calamares' into work-3.3
2022-05-04 11:59:46 +02:00
Adriaan de Groot
8407d39109
[welcome] Remove superfluous moc include (automoc handles this)
2022-05-04 11:39:58 +02:00
Adriaan de Groot
1f7b2a3d2d
[libcalamares] Remove CommandList destructor
...
The destructor was just the default one, but declaring it
blocks the default copy constructor.
2022-05-04 11:38:42 +02:00
Adriaan de Groot
a7cf1b18ce
[webview] reduce #defines
2022-05-04 11:31:25 +02:00
Adriaan de Groot
f26ff07046
[webview] Fix build
...
Some QPainter enum values were deprecated in 5.14, and since we
require 5.15 now, we hit some old code paths with now-deprecated
values; this only shows up when actually enforcing deprecations.
2022-05-04 11:25:05 +02:00
Calamares CI
fee8ac67ef
i18n: [python] Automatic merge of Transifex translations
2022-05-04 11:12:13 +02:00
Calamares CI
03ddabae16
i18n: [calamares] Automatic merge of Transifex translations
2022-05-04 11:12:12 +02:00
Adriaan de Groot
7e560fb40d
Changes: pre-release housekeeping
2022-05-04 11:10:50 +02:00
Adriaan de Groot
42e7fed10a
Changes: indicate better startup support for ca@valencia and sr@latin
2022-05-04 11:00:01 +02:00
Adriaan de Groot
8aa8597ab0
[welcome] Start up in more-specific system language
...
Because of the way Qt interprets the environment variable
LANG, using `sr@latin` or `sr@latn` or `ca@valencia` would
get you `sr` or `ca`, respectively, which isn't an exact
match. Now that Translation has special-handling for
those values of LANG, match with the ID first.
This allows starting Calamares in Serbian (Latin script)
or Catalan (Valencia) for locales that need it. (Qt doesn't
recognize ca@valencia as a variant, since that's a region-
based locale, not country- or script-based)
2022-05-04 10:49:57 +02:00
Adriaan de Groot
792c4914b0
[libcalamares] Compare translation IDs, extend find()
...
Allow naive comparison of translation IDs (e.g. "ca@valencia"
against other IDs) and make it easier to find one.
2022-05-04 10:35:43 +02:00
Adriaan de Groot
5307976179
[libcalamares] Special-case startup for some languages
2022-05-04 10:10:35 +02:00
Adriaan de Groot
0bb93f4a97
i18n: correct hint about special-case languages in CMake
2022-05-04 10:09:56 +02:00
Adriaan de Groot
1c3817ad65
[welcome] Fix displayed (user-visible) copyright years
2022-05-04 00:54:01 +02:00
Adriaan de Groot
a7d3630e42
[libcalamaresui] Improve naming, resolve TODO
2022-05-04 00:51:50 +02:00
Adriaan de Groot
992d2d3be0
[displaymanager] kdm is no longer relevant
2022-05-04 00:24:43 +02:00
Adriaan de Groot
ee1232b10a
Merge branch 'calamares' into work-3.3
2022-05-04 00:18:44 +02:00
Adriaan de Groot
1ef2fff03e
[displaymanager] For greetd, write the desktop file name
...
See #1937
2022-05-03 11:41:53 +02:00
demmm
ade0fc7e19
[usersq] add close button to all inline messages
2022-04-27 12:59:02 +02:00
demmm
b80fde365b
[localeq] Offline.qml, setting line height needed
2022-04-27 12:55:18 +02:00
demmm
01cec2e361
[keybaordq] setting line height needed
2022-04-27 12:52:42 +02:00
Adriaan de Groot
f302bd8854
Merge branch 'calamares' into work-3.3
2022-04-27 10:44:42 +02:00
abalfoort
6ef243ba37
Merge branch 'calamares:calamares' into calamares
2022-04-26 14:56:06 +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
eefe65ad0e
CMake: chase changed linking in libcalamares
2022-04-25 15:34:39 +02:00
Adriaan de Groot
c48209a9dd
CI: make CI scripts more consistent
2022-04-25 15:28:35 +02:00
Adriaan de Groot
d7459e2bfe
CMake: modernize optional parts of libcalamares
2022-04-25 15:23:27 +02:00
Adriaan de Groot
53926b8bbe
i18n: make language-updater more resilient
2022-04-25 15:00:52 +02:00
Adriaan de Groot
5e80dddc82
CMake: resolve another TODO
...
- update translations
- apply gersemi formatting
- move HOMEPAGE_URL
2022-04-25 14:53:26 +02:00
Adriaan de Groot
585d06494e
CMake: fix linking with modern Python and Boost
2022-04-25 14:47:18 +02:00
Adriaan de Groot
62de4eb8bf
CMake: use modern FindPython and FindBoost
2022-04-25 14:36:16 +02:00
Adriaan de Groot
ab0a33ceae
Changes: credits for faux-merged PR
2022-04-25 14:01:02 +02:00
Adriaan de Groot
e15e57600e
Merge branch 'pr-1632' into work-3.3
...
- merge in recent *calamares* branch
FIXES #1632 (PR from Anubhav)
FIXES #1886
FIXES #1456
FIXES #517
2022-04-25 13:50:42 +02:00
Adriaan de Groot
d02afa20b8
[partition] Factor out creating-bootloader-panel
...
- this makes createBootloaderComboBox obsolete, since that was
an implementation detail for creating the panel.
- add the panel also when doing an alongside install.
- credits to Anubhav, whose PR started this code.
2022-04-25 12:17:10 +02:00
Adriaan de Groot
d70d1ebfcd
[partition] Always offer a 'no bootloader' item
...
- this branch is importing parts of a PR from Anubhav, so add
relevant SPDX tag as well.
2022-04-25 12:17:10 +02:00
Adriaan de Groot
eb5be9cd34
[bootloader] Allow skipping an EFI bootloader, too
...
- while here, remove C-style if()
2022-04-25 11:11:40 +02:00
Adriaan de Groot
cab4be1bd0
Changes: credits for packagechooser-naming
2022-04-23 21:29:00 +02:00
Adriaan de Groot
78067110c9
Git: add a blame-ignore file for large-scale reformatting
2022-04-23 21:23:33 +02:00
Adriaan de Groot
287e89e760
Merge pull request #1932 from vlinkz/packagesq_label
...
[packagechooserq]: allow changing step name
2022-04-23 21:19:24 +02:00
Victor Fuentes
1aee8401db
[packagechooserq]: allow changing step name
2022-04-23 13:51:02 -04:00
abalfoort
bbb0efc15e
Merge branch 'calamares:calamares' into calamares
2022-04-23 16:14:15 +02:00
Adriaan de Groot
70911b9275
[luksbootkeyfile] Flesh out the tests some more
2022-04-23 14:51:15 +02:00
abalfoort
34ea3112a5
Merge branch 'calamares' of https://github.com/abalfoort/calamares into calamares
2022-04-23 14:44:06 +02:00
Adriaan de Groot
4613386863
[luksbootkeyfile] fix test for empty mount point
2022-04-23 14:33:25 +02:00
Adriaan de Groot
4466e360e1
[luksbootkeyfile] Start adding tests
2022-04-23 14:29:10 +02:00
Adriaan de Groot
1752dd573b
[luksbootkeyfile] Modernize and refactor C++ finding-a-partition
2022-04-23 14:07:00 +02:00
Adriaan de Groot
19af46faea
[luksbootkeyfile] Apply coding style
2022-04-23 13:35:06 +02:00
Adriaan de Groot
466c01b524
Changes: post-release housekeeping & credits for new features
2022-04-23 13:34:28 +02:00
Adriaan de Groot
9374daca64
Merge pull request #1931 from abalfoort/unencrypted-boot
...
Support unencrypted `/boot`
2022-04-23 13:29:14 +02:00
abalfoort
33fabccc14
Merge branch 'unencrypted-boot' of https://github.com/abalfoort/calamares into unencrypted-boot
2022-04-23 13:22:39 +02:00
abalfoort
fae515c3a2
Improve todo comment
2022-04-23 13:21:27 +02:00
abalfoort
2114a6f880
Merge branch 'unencrypted-boot' of https://github.com/abalfoort/calamares into HEAD
2022-04-23 13:11:06 +02:00
abalfoort
29733819f5
Implement comments
...
- Unencrypted /boot check moved to generate_crypttab_line_info.
- has_luks in class FstabGenerator changed to luks_mapper_name.
2022-04-23 13:06:44 +02:00
abalfoort
5d1b024237
Implement comments
...
- Unencrypted /boot check moved to generate_crypttab_line_info.
- has_luks in class FstabGenerator changed to luks_mapper_name.
2022-04-23 12:44:39 +02:00
Adriaan de Groot
a3bd0d8091
Docs: update GS key overviews
2022-04-22 12:46:19 +02:00
Adriaan de Groot
03f755d168
Merge branch 'calamares' into work-3.3
2022-04-22 11:17:59 +02:00
Adriaan de Groot
1c49648fc5
Changes: pre-release housekeeping
2022-04-22 11:12:34 +02:00
Adriaan de Groot
a86f3ba96d
i18n: update English source phrases
2022-04-22 11:05:18 +02:00
Calamares CI
c86ff3a5bb
i18n: [python] Automatic merge of Transifex translations
2022-04-22 11:03:16 +02:00
Calamares CI
ab8d59bd41
i18n: [calamares] Automatic merge of Transifex translations
2022-04-22 11:03:15 +02:00
abalfoort
dcbb83ebe5
Replace tabs with 4 spaces
2022-04-21 17:13:50 +02:00
Adriaan de Groot
807dee54fd
[locale]: fix display of timezone for Dhaka
...
FIXES #1929
2022-04-21 17:12:02 +02:00
abalfoort
73d09977fc
Support unencrypted boot partition
2022-04-21 16:39:07 +02:00
Adriaan de Groot
47016765b3
[welcome] Fill backgrounds of failed requirements
2022-04-20 17:04:24 +02:00
Adriaan de Groot
217e4ab4f7
[welcome] Start improving the tooltips for missing requirements
2022-04-20 16:36:18 +02:00
Adriaan de Groot
b129cb0786
[libcalamares] Match roles from model to Qt standard roles
2022-04-20 16:25:28 +02:00
Adriaan de Groot
e102e2630e
[welcome] Rip out the "details" dialog for requirements
...
- The dialog gave very little extra information
- The text descriptions from the dialog are already available
as tooltips in the existing list view.
2022-04-20 16:19:34 +02:00
Adriaan de Groot
7650795f48
[welcome] Give the result-display somre more space
2022-04-20 16:16:20 +02:00
Adriaan de Groot
e5036da084
[welcome] Draw an icon for requirement-status
2022-04-20 16:03:42 +02:00
Adriaan de Groot
07f4ec529b
[libcalamares] Clean up requirements model API
...
- don't need friends
- made modify-the-model API public where it makes sense
- improve naming
2022-04-20 15:39:53 +02:00
Adriaan de Groot
0b2af86ec9
[welcome] Remove compensating-for-model-reset code
...
The model was emptied-and-refilled when re-checked, which
meant we needed to have some special handling when messages
changed to avoid re-creating widgets. Since we use a model
view now, we don't need the extra machinery.
2022-04-20 15:15:06 +02:00
Adriaan de Groot
8b917ace4d
[welcome] Replace widgets in dialog with model+listview
...
While here, remove unused vars and functions, tidy code.
2022-04-20 15:09:54 +02:00
Adriaan de Groot
ab1c78ca23
[welcome] Allow delegate to pick the text role to display
2022-04-20 13:29:19 +02:00
Adriaan de Groot
3679bb45f0
[welcome] Give the countdown a tooltip
2022-04-20 13:16:10 +02:00
Adriaan de Groot
1101b0dc82
CMake: hand off RC-or-not to the version header again (for welcome-checks)
2022-04-20 13:12:02 +02:00
Adriaan de Groot
15b4660d3e
[welcome] Rip out rest of ResultWidget
...
- this breaks the dialog showing details, but we'll switch
that to the delegate as well.
2022-04-20 13:12:02 +02:00
Adriaan de Groot
e457d099d8
[welcome] Replace manual widgets-creation by a listview with model
2022-04-20 12:00:21 +02:00
Adriaan de Groot
7686b89cd6
[welcome] Very basic model delegate for results / requirements
2022-04-20 12:00:21 +02:00
Adriaan de Groot
e757639669
[calamares] A progresstree isn't a tree
2022-04-20 12:00:21 +02:00
Adriaan de Groot
7b22546b14
[calamares] Don't need a method for painting, reduce API
2022-04-20 12:00:21 +02:00
Adriaan de Groot
7db14cb5cf
[libcalamaresui] Fix build for ::ceil
2022-04-20 12:00:21 +02:00
Adriaan de Groot
33b4fd3a20
[localecfg] It's ok to have a missing /etc/locale.gen for reading
2022-04-19 08:25:34 +02:00
Adriaan de Groot
c8185affb9
CI: use Calamares-checkout rather than GitHub
2022-04-17 13:24:59 +02:00
Adriaan de Groot
91e1087eb9
CI: use v4 of Calamares actions
2022-04-16 21:53:17 +02:00
Adriaan de Groot
24026af32a
CI: switch to using Calamares checkout instead of GitHub
2022-04-16 20:42:36 +02:00
Adriaan de Groot
2241445b09
CI: switch to using Calamares checkout instead of GitHub
2022-04-16 16:58:49 +02:00
Adriaan de Groot
fb893542a2
CI: switch to using Calamares checkout instead of GitHub
2022-04-16 16:45:35 +02:00
Adriaan de Groot
9a66b51117
CI: switch to using Calamares checkout instead of GitHub
2022-04-16 15:56:51 +02:00
Adriaan de Groot
caa15c03a6
Git: also do CI builds when pushing to work-3.3
2022-04-16 12:58:28 +02:00
Adriaan de Groot
87ff7ae0da
[libcalamaresui] Use Qt max, min, bound
2022-04-16 12:51:11 +02:00
Adriaan de Groot
58306de28a
[libcalamaresui] Private static methods can be hidden
2022-04-16 12:48:12 +02:00
Adriaan de Groot
56c27c4255
[libcalamaresui] Warnings--
2022-04-16 12:45:58 +02:00
Adriaan de Groot
9084d746af
Git: add a blame-ignore file for large-scale reformatting
2022-04-16 12:42:29 +02:00
Adriaan de Groot
18fef8dfe5
[libcalamaresui] Apply coding style
2022-04-16 12:39:21 +02:00
Adriaan de Groot
7e5df42fc0
Merge branch 'issue-1924' into work-3.3
...
This is a rather clunky implementation of re-check requirements.
"Clunky" because the UI parts are re-created each time, rather
than fishing from a model of checked (or unchecked) requirements.
The Widgets parts should be updated to use a full model, rather
than the recreate-list-of-Widgets implementation they have now.
Unrelated changes pull in a bunch of improvements to the
waiting spinner widget.
2022-04-16 12:34:40 +02:00
Adriaan de Groot
e11a0ee448
[libcalamaresui] Use delegating-constructor, drop initialize()
2022-04-16 12:25:28 +02:00
Adriaan de Groot
18f8633dd9
[libcalamaresui] Also modern-style initialize center and disable flags
...
- All constructors explicitly initialize these, so there's no
real change here.
2022-04-16 12:20:02 +02:00
Adriaan de Groot
497422e72c
[libcalamaresui] Don't disable parent while waiting
2022-04-16 12:18:49 +02:00
Adriaan de Groot
78a8993f38
[libcalamaresui] Move to more modern-style initializations
2022-04-16 12:11:52 +02:00
Adriaan de Groot
1f7dd2fcd5
[libcalamaresui] Convenience API
2022-04-16 12:02:56 +02:00
Adriaan de Groot
2ccd59e90b
[libcalamaresui] Move waitingspinnerwidget.* into calamaresui
...
Although this is 3rd-party code, it now diverges -- by merging the
stale PR from upstream, and from adding features of our own --
enough that we should not pretend that it is the original 3rdparty
code.
Chase a couple of include paths that called this from 3rdparty/
2022-04-16 11:59:31 +02:00
Adriaan de Groot
3bd610a838
[libcalamaresui] Port Countdown to spinner widget alone
2022-04-16 11:53:03 +02:00
Adriaan de Groot
5060a66d4e
[locale] Remove unused include
2022-04-16 11:29:49 +02:00
Adriaan de Groot
3c5ac535f1
[libcalamaresui] The waiting spinner now supports text, no need for extra label
2022-04-16 11:28:10 +02:00
Adriaan de Groot
82d721f455
[libcalamaresui] Display countdown
2022-04-16 00:05:01 +02:00
Adriaan de Groot
bef6b2fffd
[3rdparty] Introduce alignment flag for text
2022-04-16 00:04:32 +02:00
Adriaan de Groot
fac8662387
[3rdparty] Tidy up access and API dox
2022-04-15 23:08:58 +02:00
Adriaan de Groot
15dc47555a
[3rdparty] Constness for waitingspinner
...
The accessors can be (should be!) const.
2022-04-15 22:05:37 +02:00
Adriaan de Groot
171a597355
[3rdparty] Add SPDX tags for setText() support
...
The setText() support was submitted upstream at
https://github.com/snowwlex/QtWaitingSpinner/pull/14
by `huxingyi <huxingyi@msn.com >`, but not merged. The
commits from that PR were merged into Calamares' copy
of the waitingspinnerwidget files. Add relevant tags
(which aren't in the PR, but Calamares does chase SPDX)
2022-04-15 22:05:37 +02:00
huxingyi
022f04355a
Change default text color to black.
2022-04-15 21:54:13 +02:00
huxingyi
9786614917
Add text support.
...
Implement the setText function. The text will be displayed under the spinner image.
2022-04-15 21:54:13 +02:00
Adriaan de Groot
e351b1dafa
[libcalamaresui] Drop the countdown label
2022-04-15 12:50:18 +02:00
Adriaan de Groot
075185547a
[welcome] Display a countdown while (re)checking requirements
2022-04-15 12:47:12 +02:00
Adriaan de Groot
514b728449
[libcalamaresui] Tweak widget display for countdown
2022-04-15 12:41:29 +02:00
Adriaan de Groot
9a3d9feb30
[libcalamaresui] Add a countdown widget for limited waiting.
2022-04-15 12:13:16 +02:00
Adriaan de Groot
fcb893cd12
[welcome] Avoid growing more spacers
...
Insert spacers only once; avoid crashing when all the requirements
are satisfied immediately.
2022-04-14 22:06:36 +02:00
Adriaan de Groot
e79f29dc0e
[welcome] Update the explanation only when all the results are in.
2022-04-14 21:51:43 +02:00
Adriaan de Groot
11d7870d68
[welcome] Factor out check for a filled requirements-model
2022-04-14 21:48:55 +02:00
Adriaan de Groot
fc653adcc0
[welcome] Don't duplicate result widgets
2022-04-13 18:15:21 +02:00
Adriaan de Groot
ee925492d4
[welcome] Don't duplicate widgets
2022-04-13 17:12:25 +02:00
Adriaan de Groot
6348309936
[libcalamaresui] If requirements are not satisfied, recheck in 5 seconds
2022-04-13 17:09:43 +02:00
Adriaan de Groot
a9e098b0b4
[libcalamares] Allow resetting the requirements model
...
- When a requirements checker starts, it can reset the model
to clear it of previous entries.
2022-04-13 17:08:17 +02:00
Adriaan de Groot
8f5c3fa302
[welcome] Improve messages a little for bogus-checks.
...
Follow the guidelines for checker-messages, even though these
should never be displayed to real users.
2022-04-13 16:51:21 +02:00
Adriaan de Groot
cbd4bd9bbe
[welcome] Factor out is-this-check-required
...
While here, make it possible for the "screen" (screen-size) check
to be mandatory; there's no reason it shouldn't follow the same
logic as all the others (although denying users an install because
they have a VGA monitor seems a bit weak).
2022-04-13 16:47:54 +02:00
Adriaan de Groot
f4117881cd
[welcome] Add some more development-only checks
2022-04-13 16:45:32 +02:00
Adriaan de Groot
69e00d181a
Changes: post-release housekeeping
2022-04-13 16:24:26 +02:00
Adriaan de Groot
b0837b1a98
Docs: reformat table of GS keys
...
- add fullname key
- make table a little easier-on-the-eyes in text mode
While here, merge some 3.3 updates; just don't talk about PythonQt
any more.
2022-04-13 14:40:00 +02:00
Adriaan de Groot
a67adf7702
Merge pull request #1923 from vlinkz/calamares
...
[users] add fullname to global storage
2022-04-13 14:35:02 +02:00
Adriaan de Groot
f6b65b3b93
[shellprocess] CommandLine now quotes properly in variable expansion
2022-04-13 14:16:57 +02:00
Adriaan de Groot
bbea67ecb4
[libcalamares] Add an expand() to command lines and lists
...
- While this is primarily convenient for testing (e.g. checking
that a command is expanded the way we expect), it simplifies
some of the code because it's now clear that run() uses an
expanded copy of the command-list to do the actual work.
2022-04-13 14:08:21 +02:00
Victor Fuentes
cc3ab110ee
[users] add fullname to global storage
2022-04-12 23:38:51 -04:00
Adriaan de Groot
d76dd2f8e0
[libcalamares] Use new expander in CommandList
...
- This switches @@ROOT@@ for ${ROOT} and uses standard macro-
expansion mechanisms for the commands; undefined variables
will be logged as well.
2022-04-12 16:06:42 +02:00
Adriaan de Groot
334b7fc219
SPDX: tag gersemi configuration
2022-04-12 15:30:35 +02:00
Adriaan de Groot
f923dedc3f
[libcalamares] Add a word-expander
...
This is a variant on KMacroExpander, which allows for
reporting of errors after expansion.
2022-04-12 15:28:07 +02:00
Adriaan de Groot
576f244d2d
*: Chase new namespace Calamares::String
2022-04-12 14:15:52 +02:00
Adriaan de Groot
d03a8acc9d
[libcalamares] Create namespace Calamares::String
...
This is a step towards getting rid of CalamaresUtils and
using more structured namespaces overall, e.g. Calamares::String
for things related to string-handling.
2022-04-12 14:14:02 +02:00
Adriaan de Groot
2c0d9396e2
[users] Link to CoreAddons for KMacroExpander in config
2022-04-12 14:10:12 +02:00
Adriaan de Groot
bb278c7ba9
[shellprocess] Migrate towards 'standard' variable substitutions
2022-04-12 13:13:01 +02:00
Adriaan de Groot
3bf0a93b86
CMake: fix missed merge failure
...
- Don't format the language-lists with gersemi
2022-04-12 12:52:19 +02:00
Adriaan de Groot
82b5ca8bfc
Merge branch 'calamares' into work-3.3
2022-04-12 12:44:39 +02:00
Adriaan de Groot
baf8ef2c33
[bootloader] Document Debian GRUB
2022-04-12 12:38:20 +02:00
Adriaan de Groot
913b7c8809
Changes: credits
2022-04-11 16:36:10 +02:00
Calamares CI
7ccc5d08c8
i18n: [calamares] Automatic merge of Transifex translations
2022-04-11 16:22:50 +02:00
Adriaan de Groot
7f232f0994
Changes: pre-release housekeeping
2022-04-11 16:22:50 +02:00
Adriaan de Groot
30139107de
Merge pull request #1918 from vtriolet/fix-readtargetfile
...
[libcalamares] Fix file-reading from target system
2022-04-11 16:22:10 +02:00
Adriaan de Groot
9c58f49c49
Merge branch 'issue-1654' into calamares
...
FIXES #1654
2022-04-11 15:08:33 +02:00
Adriaan de Groot
3b02115f8e
[users] Expand test to demo other template-keys
2022-04-11 15:03:48 +02:00
Adriaan de Groot
dad12a0e02
[users] Simplify test, fewer magic numbers
2022-04-11 14:55:05 +02:00
Adriaan de Groot
c28ba5ffb2
[users] Fix up test to match new strings written to /etc/hosts
2022-04-11 14:51:52 +02:00
Adriaan de Groot
9ca6d3c715
[users] Document new template setting for hostname
2022-04-11 14:26:29 +02:00
Adriaan de Groot
b95eb55994
[users] Add a template for hostname suggestion
2022-04-11 14:12:05 +02:00
Adriaan de Groot
1a8fc1feec
[users] Settle on 'hostname' as a single word for camel-casing
2022-04-11 12:16:03 +02:00
Adriaan de Groot
92b1341730
[users] Document new hostname.location setting
...
- add to schema
- add to tests
- mention in CHANGES
2022-04-11 12:05:00 +02:00
Adriaan de Groot
3524d4a0d0
[users] Add "transient" for hostname-location
2022-04-11 11:47:47 +02:00
Adriaan de Groot
3b0aa69ad3
[users] Write 127.0.1.1 entry only if there is a hostname
2022-04-11 11:39:14 +02:00
Adriaan de Groot
9299bedd7e
[users] Hostname is empty if it will not be set
2022-04-11 11:37:56 +02:00
Adriaan de Groot
a12c6de2ef
[users] Don't set GS hostname if hostname.location is None
2022-04-11 11:29:23 +02:00
Adriaan de Groot
2f78a37426
[welcome] Use cDebug() for logging
2022-04-11 11:19:38 +02:00
Adriaan de Groot
c5c546d290
[users] Warnings-- about unreachable code
2022-04-11 11:13:45 +02:00
Adriaan de Groot
854c711ac6
[users] Untangle setting-hostname from writing-/etc/hosts
...
Exactly one kind of setting-hostname is done, and that's
entirely independent of writing /etc/hosts. Don't make it
a set of flags, use an enum and a bool.
2022-04-11 11:10:40 +02:00
Adriaan de Groot
6a6aa8867b
[users] hostname.X takes precedence over legacy settings
2022-04-11 10:49:16 +02:00
Adriaan de Groot
b653b13002
[users] Hide hostname box when set to None
...
If the hostname will not be written, hide the input box.
While here, improve some naming in the designer file.
2022-04-11 10:42:00 +02:00
Adriaan de Groot
99bf5497ca
[users] Document change to config, document TODO:3.3
2022-04-11 10:14:32 +02:00
vt
73462d9214
[libcalamares] Fix file-reading from target system
...
readTargetFile was not fully reading files because of an incorrect
EOF check. This could cause /etc/openswap.conf files to be
truncated and hibernation to fail on installed systems.
2022-04-10 19:36:38 -04:00
Adriaan de Groot
8a8ac4fe2b
[users]: update config schema
2022-04-08 16:35:47 +02:00
Adriaan de Groot
4494a4b35a
[users] Expand tests with some legacy-settings
2022-04-08 11:30:57 +02:00
Adriaan de Groot
04f38ea661
[users] Put hostname settings in a *hostname* key
...
Move settings into a structured setting for *hostname*, with suitable
sub-keys. Legacy settings remain supported, produce a warning.
2022-04-08 11:30:57 +02:00
Calamares CI
55dcd831bc
i18n: [python] Automatic merge of Transifex translations
2022-04-07 21:52:51 +02:00
Calamares CI
94d5746268
i18n: [calamares] Automatic merge of Transifex translations
2022-04-07 21:52:50 +02:00
Adriaan de Groot
b52b54849a
i18n: update language lists (-es_ES +oc)
2022-04-07 21:51:39 +02:00
Adriaan de Groot
345830794a
i18n: remove some workarounds for deprecated language IDs
2022-04-07 21:49:36 +02:00
Adriaan de Groot
c70deed13a
Merge branch 'cleanup-i18n' into calamares
2022-03-29 00:31:57 +02:00
Calamares CI
3381e3040c
i18n: [python] Automatic merge of Transifex translations
2022-03-29 00:27:36 +02:00
Calamares CI
8deead2781
i18n: [desktop] Automatic merge of Transifex translations
2022-03-29 00:27:36 +02:00
Calamares CI
04a3ac5557
i18n: [calamares] Automatic merge of Transifex translations
2022-03-29 00:27:36 +02:00
Adriaan de Groot
5c2c60612b
CMake: update language lists
2022-03-29 00:26:21 +02:00
Adriaan de Groot
14ef6577ae
i18n: remove stale translation files
2022-03-29 00:24:39 +02:00
Adriaan de Groot
1f289bc93d
i18n: english doesn't have TX sources for its TZ or KB translations
2022-03-29 00:21:51 +02:00
Adriaan de Groot
511631c6ae
i18n: fix path to Python translations
2022-03-29 00:19:43 +02:00
Adriaan de Groot
93be40349b
i18n: audit the python translations, too
2022-03-29 00:17:31 +02:00
Adriaan de Groot
a45f324ed8
i18n: audit the available translations when running txstats
2022-03-29 00:11:27 +02:00
Adriaan de Groot
9e4b2d14cb
[libcalamares] Add a path parameter when creating descriptors
...
This allows us to print the path of a descriptor file in
error messages, which in turn makes it easier to find
problems with the descriptor files.
2022-03-28 12:29:47 +02:00
Adriaan de Groot
ec3282e15d
[libcalamares] Allow checking a Once object for repeat messages
2022-03-28 12:28:07 +02:00
Calamares CI
9b769f0ae4
i18n: [python] Automatic merge of Transifex translations
2022-03-25 12:32:59 +01:00
Calamares CI
e51a47d072
i18n: [calamares] Automatic merge of Transifex translations
2022-03-25 12:32:58 +01:00
Adriaan de Groot
f64938cb3f
[partition] Remove unnecessary methods
...
- _find and _each Doesn't need to be part of the class API
- Rename to *Transform() because that's more in-line with what it
does, applying an operation to the tree.
2022-03-22 18:47:27 +01:00
Adriaan de Groot
9b0ef5fce5
[partition] Use unsigned sizes
...
Reduce warnings by using unsigned consistently; this fights
the KPMCore API (which uses signed sizes for, e.g. sectorSize)
a little, but states more clearly that a disk cannot have a
negative size.
2022-03-22 15:23:24 +01:00
Adriaan de Groot
8ce92d450c
[partition] Warnings-- for int / double / size_t confusions
2022-03-22 15:23:24 +01:00
Adriaan de Groot
982f9c8458
[partition] Hide implementation function
2022-03-22 15:23:24 +01:00
Adriaan de Groot
f888cb87d1
[libcalamares] Start deprecating signed sizes
2022-03-22 15:23:24 +01:00
Adriaan de Groot
97031ea3e6
[libcalamares] The amount of memory in the system cannot be negative
2022-03-22 15:23:24 +01:00
Adriaan de Groot
a303efb174
[users] Warnings--
...
Remove unreachable code.
2022-03-22 13:12:23 +01:00
Adriaan de Groot
029bb3efdd
[calamares] Warnings--
...
The widget name is used (by moc) to inform the name of the
member variable storing the widget; having a :: in the name
yields a member variable with __ in it. Two _ is reserverd
to the implementation.
2022-03-22 13:08:07 +01:00
Adriaan de Groot
4545470f2d
Changes: document new bits
2022-03-22 12:57:46 +01:00
Adriaan de Groot
99b19b9539
[libcalamares] Always log to file, sometimes to terminal
2022-03-22 12:54:54 +01:00
Adriaan de Groot
aedb55ea36
[partition] Require modern KPMCore
2022-03-21 23:44:20 +01:00
Adriaan de Groot
49c56add7d
Merge branch 'calamares' into work-3.3
2022-03-21 23:21:54 +01:00
Adriaan de Groot
930d8e20ff
Changes: post-release housekeeping
2022-03-21 17:20:44 +01:00
Calamares CI
8ec02b3d16
i18n: [python] Automatic merge of Transifex translations
2022-03-21 15:19:44 +01:00
Calamares CI
bb62bebf1a
i18n: [calamares] Automatic merge of Transifex translations
2022-03-21 15:19:44 +01:00
Adriaan de Groot
ce8aaf8955
Changes: pre-release housekeeping
2022-03-21 15:15:37 +01:00
Adriaan de Groot
db3160145e
Merge remote-tracking branch 'origin/issue-1904' into calamares
...
This is mostly a confirmation that the subsequent changes
to #1905 were correct; the "name" key set in a partition
configuration is applied to the partition.
FIXES #1904
2022-03-21 15:09:50 +01:00
Adriaan de Groot
7c5a663237
Merge branch 'issue-1908' into calamares
...
Extend the test to (try to) restore whatever hostname was set
before the test ran; this avoids mangling systems where tests
are run as root in a host / production environment.
FIXES #1908
2022-03-21 15:08:39 +01:00
Adriaan de Groot
6f28120401
[partition] Fix typo in example configuration
2022-03-21 14:16:54 +01:00
Adriaan de Groot
1ee82e390b
[users] Adjust test to expect root to succeed
2022-03-21 14:15:15 +01:00
Adriaan de Groot
88d392f612
[users] Explain why the second setting-hostname test succeeds.
2022-03-21 14:12:18 +01:00
Adriaan de Groot
9b651b4f00
[users] Don't mangle the hostname with a test
2022-03-21 14:08:17 +01:00
Adriaan de Groot
f4a10a313c
[partition] Address default-labeling issues
2022-03-18 14:35:35 +01:00
Adriaan de Groot
7d89643146
[partition] More const in getters
2022-03-18 14:30:31 +01:00
Adriaan de Groot
276aa191d5
Changes: document new things
2022-03-18 14:01:41 +01:00
Adriaan de Groot
fa28999561
Merge pull request #1905 from santoshmahto7/santo/avoid-root-naming
...
Avoid setting rootfs partition name to "root" by default.
2022-03-18 13:51:33 +01:00
Adriaan de Groot
121b11525f
Merge pull request #1906 from El-Wumbus/patch-1
...
Added spaces and line-breaks to fix formatting.
2022-03-16 01:02:44 +01:00
Decator
b2aa5d8dea
Added spaces and line-breaks to fix formatting.
...
Fixes a formatting issue by adding some spaces and a line-break. Increases readability
2022-03-15 10:43:10 -04:00
Adriaan de Groot
b44091b4e3
SPDX: tag forgotten files
2022-03-15 14:59:05 +01:00
Adriaan de Groot
05468016a1
Merge branch 'work/adridg/improve-log-window' into calamares
2022-03-15 14:45:34 +01:00
Adriaan de Groot
f0d4788e6d
[libcalamaresui] SPDX-tagging for Bob
2022-03-15 14:42:27 +01:00
Adriaan de Groot
28bf8478c4
[libcalamaresui] Simplify log-window
...
Scrolling explicitly to the bottom isn't needed; leaving it
up to appendPlainText() has the following behavior:
- if the text is scrolled all the way down, follows the text
and scrolls further down (tailing)
- if it is not scrolled all the way down, keeps current position.
2022-03-15 14:39:59 +01:00
Adriaan de Groot
d998c9e24b
[libcalamaresui] Try to improve 'tailing' experience
2022-03-15 14:02:24 +01:00
Adriaan de Groot
26a613fff1
Merge branch 'issue-1894' into calamares
...
FIXES #1894
2022-03-15 13:30:40 +01:00
Adriaan de Groot
1a3f41ff33
[libcalamaresui] Allow more options for icon
2022-03-15 12:45:19 +01:00
Adriaan de Groot
d5e0fca490
[libcalamaresui] Allow starting and stopping the log-follower.
2022-03-15 12:45:19 +01:00
Adriaan de Groot
87c8c3e6ee
[libcalamaresui] Convenience for 'give-me-one-of-these-icons'
2022-03-15 12:44:19 +01:00
Adriaan de Groot
d8e49cd9e7
i18n: brute-force fix translations
2022-03-14 16:47:38 +01:00
Adriaan de Groot
20c44ff99a
[partition] Obtain flag name from KPMCore
...
- makes the displayed flag name consistent between dialog and
pop-up and debug-messages.
2022-03-14 16:45:56 +01:00
Adriaan de Groot
1a6fb1c3d2
[libcalamaresui] Polish on LogWidget
...
- apply coding style
- reduce shadowed variables
- use Q_EMIT to mark signals
2022-03-14 16:14:40 +01:00
Adriaan de Groot
d89955f4b3
Merge pull request #1899 from bobvanderlinden/pr-log
...
allow viewing live log during execution
2022-03-14 14:19:43 +01:00
Adriaan de Groot
743d3ecd01
Changes: document new things
2022-03-14 11:31:02 +01:00
Adriaan de Groot
f60def5ecc
[partition] Don't reinitialize partition layout
...
Existing code reinitialized the layout, losing whatever
layout was set in the config. Refactor so that you can
access the partition-layout API, and change the default
FS through that -- which is the point of the code block
here in `doAutopartition()`, to look up the currently-
selected default FS.
Inspired by Santosh's work in #1903 , #1759 .
2022-03-14 11:27:00 +01:00
Adriaan de Groot
c35da331a2
[fstab] Merge pull request #1901 from dalto8/fstabuuid
...
Fix empty UUID detection in fstab
2022-03-14 11:02:15 +01:00
Santosh Mahto
4b905d5b52
Avoid setting rootfs partition name to "root" by default.
...
By default, calamares renames the label of root partition
to "root" overriding the name specified in partiton.conf
Signed-off-by: Santosh Mahto <santosh.mahto@collabora.com >
2022-03-14 12:01:06 +05:30
dalto
b5faf1be9b
[fstab] Fix empty UUID detection
2022-03-12 15:47:54 -06:00
Bob van der Linden
ea061ae239
destruct LogThread correctly
2022-03-10 20:33:22 +01:00
Bob van der Linden
9e522eddf8
replace text widget with log widget
2022-03-10 20:08:13 +01:00
Bob van der Linden
923379def6
use terminal icon for log toggle button
2022-03-10 20:07:16 +01:00
Bob van der Linden
53d3fcb2fd
introduce widget that shows logs
2022-03-10 20:06:37 +01:00
Bob van der Linden
a6afb6be7c
add log widget to ExecutionViewStep
2022-03-06 12:33:06 +01:00
Adriaan de Groot
0f84efed39
Changes: post-release housekeeping
2022-03-04 16:00:33 +01:00
Calamares CI
6596cd1208
i18n: [python] Automatic merge of Transifex translations
2022-03-04 14:42:13 +01:00
Calamares CI
207576c885
i18n: [calamares] Automatic merge of Transifex translations
2022-03-04 14:42:13 +01:00
Adriaan de Groot
667e88f2df
Changes: pre-release housekeeping
2022-03-04 14:39:57 +01:00
Adriaan de Groot
569db7c018
[packages] Disable pacman progress-reporting, it is crashy
2022-03-04 14:28:07 +01:00
Huang Jia Wen
dca5d9b52b
[bootloader] Add loongarch64 support for bootloader
2022-03-04 10:57:38 +01:00
Adriaan de Groot
827d06df85
Merge pull request #1895 from loongarch64/la64/dev-work-3.3
...
[bootloader] Add loongarch64 support for bootloader
2022-03-03 22:14:30 +01:00
Huang Jia Wen
107afcff27
Merge pull request #2 from loongarch64/dev-work-3.3
...
[bootloader] Add loongarch64 support for bootloader
2022-03-03 16:58:32 +08:00
Huang Jia Wen
1793c627cd
[bootloader] Add loongarch64 support for bootloader
2022-03-03 14:11:32 +08:00
Adriaan de Groot
7aafeec2cb
[libcalamares] Fix entry-format, it was totally bogus
2022-03-01 16:14:45 +01:00
Adriaan de Groot
2f782f18c4
[libcalamares] Fix file reading
...
- atEnd() doesn't behave as expected
- drop the textstream, not needed
- rename variables to be more descriptive
2022-03-01 16:13:25 +01:00
Adriaan de Groot
53c4bbe4e0
[umount] Log briefly what is going to be unmounted
2022-03-01 16:03:28 +01:00
Adriaan de Groot
4fe55533d7
[partition] Log in more human-readable form
2022-03-01 14:37:52 +01:00
Adriaan de Groot
9b3bc3d25f
CI: convenience for after-crash-cleanup
2022-03-01 14:28:13 +01:00
Adriaan de Groot
60630efa6a
[partition] Log DBus calls and switch to blocking calls to ensure they happen
2022-03-01 14:03:04 +01:00
Adriaan de Groot
7e51731167
[partititon] Slightly better debug-logging for automount
2022-03-01 13:52:50 +01:00
Adriaan de Groot
c5fec83f64
[libcalamares] Fix typo
2022-02-28 11:30:36 +01:00
Adriaan de Groot
f2a6736883
[libcalamares] More chatty when DBus fails
2022-02-28 11:29:45 +01:00
Adriaan de Groot
5b40f17b9c
[libcalamares] Prep-work for supporting non-Solid automounting
2022-02-28 11:26:57 +01:00
Adriaan de Groot
d4812bbb36
Changes: post-release housecleaning
2022-02-25 14:57:43 +01:00
Adriaan de Groot
e3515347ed
Changes: pre-release housekeeping
2022-02-25 14:39:06 +01:00
Calamares CI
03b261dfc5
i18n: [python] Automatic merge of Transifex translations
2022-02-25 14:11:58 +01:00
Calamares CI
05991c9ee9
i18n: [dummypythonqt] Automatic merge of Transifex translations
2022-02-25 14:11:58 +01:00
Calamares CI
9779676fd8
i18n: [calamares] Automatic merge of Transifex translations
2022-02-25 14:11:58 +01:00
Adriaan de Groot
77190a0d42
Merge branch 'issue-1887' into calamares
...
FIXES #1887
2022-02-21 15:50:47 +01:00
Adriaan de Groot
c3224e60d6
[users] Add a switch to write different styles of sudo file
2022-02-21 15:49:10 +01:00
Adriaan de Groot
aecdb5fe6d
Changes: document new things
2022-02-21 15:10:30 +01:00
Adriaan de Groot
c1f1934c27
Merge branch 'issue-1883' into calamares
...
FIXES #1883
2022-02-21 15:07:58 +01:00
Adriaan de Groot
23f501c071
[fstab] Recognize mmc and nvme disks correctly
...
- basename() returns the last path component, so never includes
the leading '/dev/'
- the check for mmc and nvme looked for device names starting
with '/dev/mmc' .. but '/dev/' has just been stripped away
by the call to basename, so this never matched
- stripped the trailing digits rather than trailing 'p[0-9]',
so 'nvme0n1p2' became 'nvme0n1p' which isn't a useful
device name.
FIXES #1883
2022-02-21 15:03:51 +01:00
Adriaan de Groot
92f4ab30ea
[partition] Add a note and an icon about unusually-configured partition module
2022-02-21 13:00:40 +01:00
Adriaan de Groot
682ae24b7d
[partition] Introduce skipping-partitioning-jobs
...
Don't do the actual KPM work, but pretend that they were done.
This can be useful -- independently of the existing unsafe-
options and failing partitioning entirely -- for testing
partition layouts in modules following the *partition* one.
2022-02-21 12:39:56 +01:00
Adriaan de Groot
7129a2239c
[partition] Tidy up description in prettyStatus
...
- the length parameter to diskDescription() is worse than
useless, because it doesn't say anything about what will
be done if there's more than one disk.
2022-02-21 12:30:34 +01:00
Adriaan de Groot
9dd2f275f1
CI: allow clang-format naming according to Debian
2022-02-21 12:27:59 +01:00
Adriaan de Groot
f04f0a7e1d
[partition] Remove unused text
2022-02-21 12:13:11 +01:00
Adriaan de Groot
99d11f754f
[partition] Tighten up determining job labels for description
2022-02-21 12:12:20 +01:00
Adriaan de Groot
62888f7984
[partition] Rename setting to BAIL_OUT
...
- unsafe partitioning will bail out (and end the installation)
if BAIL_OUT is set (previously _LAME).
2022-02-21 11:56:41 +01:00
Adriaan de Groot
240c89c585
[luksbootkeyfile] Merge pull request #1888 from dalto8/trailingslash
...
Ensure that a trailing slash doesn't cause issues with an unencrypted /boot
2022-02-21 11:43:11 +01:00
Adriaan de Groot
b1742876fd
[zfs] Correct user-visible spelling of ZFS
...
In Camel-cased source code, Zfs, but for user-visible strings,
ZFS (or zfs, but needs to be consistent).
2022-02-17 15:51:15 +01:00
dalto
f34008b518
[LuksBootKeyFile] Remove trailing slashes when matching mountpoint
2022-02-16 16:21:52 -06:00
Adriaan de Groot
03291fb726
[partition] Don't set empty labels
2022-02-08 19:01:41 +01:00
Adriaan de Groot
0be88f1453
[partition] Use signed sizes
2022-02-08 16:42:31 +01:00
Adriaan de Groot
a59c45d869
[users] Rename macro to avoid reserved-to-the-implementation names
2022-02-08 16:35:50 +01:00
Adriaan de Groot
7f14aa6bf1
[libcalamares] Avoid warnings about KPMCore headers
2022-02-08 16:35:23 +01:00
Adriaan de Groot
c7cc599a19
[umount] Remove/mark unused parameters
2022-02-08 16:35:04 +01:00
Adriaan de Groot
3b55c2805a
Changes: document formatting-tools
2022-02-08 16:21:43 +01:00
Adriaan de Groot
cf097850de
CMake: apply gersemi styling
2022-02-08 16:18:47 +01:00
Adriaan de Groot
b167d8da03
[libcalamares,ui] Make KF5::CoreAddons explicit
...
- libcalamares doesn't need it anymore, because it ported away
from KPluginLoader,
- libcalamaresui does need it, because of KMacroExpander.
2022-02-08 16:13:40 +01:00
Adriaan de Groot
e507a23795
Modules: make use of KF5::CoreAddons explicit
2022-02-08 16:12:25 +01:00
Adriaan de Groot
5160fdc26a
[libcalamares] Port away from KPluginFactory
2022-02-08 15:50:17 +01:00
Adriaan de Groot
8f769006d6
Merge branch 'calamares' into work-3.3
2022-02-08 13:28:20 +01:00
Adriaan de Groot
9f6f82405b
[libcalamaresui] Avoid crash if modules-list is empty
...
If there are no modules at all before an exec: section is
reached (e.g. right now due to a bug in module-loading)
then the last() call would crash. Instead, use a nullptr
for the last-module-loaded.
While here, apply code-formatting.
2022-02-07 19:05:55 +01:00
Adriaan de Groot
932ab17c9a
[libcalamares] Avoid parameter name 'stdin'
2022-02-07 12:54:16 +01:00
Adriaan de Groot
ebdcb15703
[libcalamares] Don't use reserved identifiers
2022-02-07 12:51:22 +01:00
Adriaan de Groot
660b198da0
[libcalamares] Avoid more moc warnings with recent Clang
2022-02-07 12:51:06 +01:00
Adriaan de Groot
fa7394723c
[users] Don't mess up cursor position when typing hostname
...
If the hostname changes while the field has focus, that means
that the user is typing in the field, and we shouldn't mess
with the cursor position.
FIXES #1884
2022-02-07 11:51:48 +01:00
Adriaan de Groot
3ea25a901e
[libcalamares] Avoid compiler warnings when stdin is defined to something else
2022-02-07 11:32:22 +01:00
Adriaan de Groot
d5c6a70442
[libcalamares] Use signed sizes
2022-02-07 11:22:13 +01:00
Adriaan de Groot
0fff01e36e
[partition] Use signed sizes
...
Unfortunate effect of having ints in some parts of the API
is that signedness trickles down everywhere; either cast
all over, or stick to signed ints.
2022-02-07 11:21:53 +01:00
Calamares CI
95240da872
i18n: [python] Automatic merge of Transifex translations
2022-02-07 10:59:24 +01:00
Calamares CI
93e7b12a5d
i18n: [desktop] Automatic merge of Transifex translations
2022-02-07 10:59:23 +01:00
Calamares CI
4b3b44bdfb
i18n: [calamares] Automatic merge of Transifex translations
2022-02-07 10:59:23 +01:00
Adriaan de Groot
d98027ad2f
Merge pull request #1865 from dalto8/mount-mount
...
Changes to mount module for 3.3
2022-02-02 16:24:34 +01:00
Adriaan de Groot
2bf43ffbf2
[unpackfs] Fix test validation (and document what the test is for)
2022-02-02 16:19:51 +01:00
Adriaan de Groot
0c7f06137a
CMake: validate all the test-configurations as well
2022-02-02 15:57:49 +01:00
Adriaan de Groot
a352bd946e
[grubcfg] snake-case one configuration key
...
This makes all the keys in grubcfg consistently
snake-case (rather than one being a camel).
2022-02-02 15:02:58 +01:00
Adriaan de Groot
d1e4740e70
Merge branch 'calamares' into work-3.3
2022-02-02 14:41:58 +01:00
Adriaan de Groot
baad8f7d2c
i18n: update english sources
2022-02-01 17:32:00 +01:00
Adriaan de Groot
5d23a8f693
Changes: post-release housekeeping
2022-02-01 17:25:40 +01:00
Adriaan de Groot
9127b76e5f
[bootloader] Fix typo's
2022-02-01 16:49:18 +01:00
Adriaan de Groot
aede7056f2
Changes: pre-release housekeeping
2022-02-01 16:38:08 +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
c4eee7bb11
CI: demand clang-format 12 or 13
...
- use clang-format12 or 13 or unversioned executable, only
- check it's actually 12 or 13
- set language standard explicitly to C++17, "Cpp11" is now
an alias for "latest" which is weird
This change does lead to some thrashing when applying styles,
so I'm not going to do that across the board right now. Changes include:
- extra spaces in lambda-captures
- nicer alignment of lambda-bodies
2022-02-01 16:23:39 +01:00
Adriaan de Groot
7f90b99388
[partition Simplify mountpoint-input
...
- if nothing is selected (index -1, which now shows the placeholder), the text is empty
- if something has been entered, return it (e.g. if the user is typing)
- if something is selected, the text gets set to that anyway
2022-02-01 16:01:04 +01:00
Adriaan de Groot
f4720ae02c
[partition] <pre> formatting is block-oriented
2022-02-01 14:54:49 +01:00
Adriaan de Groot
45fff23499
[partition] Move message closer to input field
...
The warning about the mount point -- that it was in-use or
invalid -- had been separated from the drop-down by the
FSLabel field. Move it back, rename the variable for
clarity while we're at it.
2022-02-01 14:50:53 +01:00
Adriaan de Groot
82dcc1b57b
[partition] Refactor common validate-the-mount-point logic
2022-02-01 14:42:18 +01:00
Adriaan de Groot
d8be9a9443
[partition] Mount points should start with a /
2022-02-01 14:07:38 +01:00
Adriaan de Groot
fbcd1ffbbe
[partition] Make the "no mount point" a placeholder
2022-02-01 14:06:30 +01:00
Adriaan de Groot
d8c875f351
[partition] UI-tweak mount-point and fs-label boxes
...
- make the boxes expand, rather than stick to a minimum
size that doesn't align with other boxes in the dialog,
and which may be too small to contain the text they display.
2022-02-01 13:13:29 +01:00
Adriaan de Groot
6f738813a6
[fstab] GS configuration for a btrfs setup
2022-02-01 12:15:49 +01:00
Adriaan de Groot
4a30aae9bb
[calamares] Tighten logging in 'loadmodule' test-executable
2022-02-01 12:15:49 +01:00
Adriaan de Groot
691951974d
Changes: document partition-swap fix
2022-02-01 12:15:49 +01:00
Adriaan de Groot
e9899d0345
[packagechooser,netinstall] Apply coding style
2022-01-31 23:42:20 +01:00
Adriaan de Groot
ffeab32403
[libcalamares] Apply coding style
2022-01-31 23:41:37 +01:00
Adriaan de Groot
80300e412c
[libcalamares] When logging extra lines to warning or error, suppress label
...
Avoid logs like
23:29:57 [2]: void Config::setConfigurationMap(const QVariantMap&)
WARNING: Configuration for *initialSwapChoice* is not one of the *userSwapChoices*
WARNING: .. Choice "small" added.
where the label is duplicated.
2022-01-31 23:27:35 +01:00
Adriaan de Groot
51f67f6c3e
[partition] If initialSwapChoice can't be satisfied, add it
...
There is a mismatch between how the configuration interprets
*initialSwapChoice* when it is not a valid choice, and how
the UI interprets it. If you e.g. do not have a *userSwapChoices*
setting at all, whatever *initialSwapChoice* is set is interpreted
by the UI as "suspend".
Avoid that by putting the choice in the configuration and
warning the user (which ought to be a warning to the distro).
FIXES #1881
2022-01-31 23:15:04 +01:00
Adriaan de Groot
cf2899b1e6
[netinstall] Avoid negative row indexes
2022-01-31 12:59:03 +01:00
Adriaan de Groot
c0f4b80cbe
[netinstall] Tighten up comments and code
...
- comment wandered away from the function it applies to
- use overloaded name for recursive helpers
- document this new feature
2022-01-31 12:55:54 +01:00
Adriaan de Groot
19afa46978
[netinstall] Match comment to code (casing of the identifier)
2022-01-31 12:51:56 +01:00
Adriaan de Groot
6a2e80a0b7
Merge pull request #1879 from dalto8/pkgchooser-netinstall
...
Allow the packagechooser module to modify the netinstall module
2022-01-31 12:44:02 +01:00
Adriaan de Groot
5b994f85c9
[grubcfg] Keep kernel_params as 'quiet' by default
...
- mark some TODO
- tighten up the YAML schema a little bit
- when unset, use 'quiet' rather than empty, to preserve compatibility
with existing configuration files.
SEE #1882
2022-01-31 12:38:20 +01:00
Adriaan de Groot
f7d4f049a7
Changes: document new PRs
2022-01-31 12:22:48 +01:00
Adriaan de Groot
37e189992e
Merge pull request #1882 from dalto8/grub-defaults
...
[grubcfg] Add configuration for default kernel_params
2022-01-31 12:12:06 +01:00
Adriaan de Groot
c1a01ca7a6
Merge pull request #1880 from dalto8/gsdoc
...
Document global storage keys
2022-01-31 12:08:20 +01:00
dalto
e597998021
[packagechooser,netinstall] Clean up duplication and pruning logic for netinstall-add
2022-01-27 19:31:34 -06:00
dalto
f65feedcce
[grubcfg] Add configuration for default kernel_params
2022-01-27 15:53:34 -06:00
dalto
6be1208488
Document global storage keys
2022-01-25 17:52:45 -06:00
dalto
63ed2e5fb8
[packagechooser,netinstall] Change globalstorage keys to camel case
2022-01-25 17:43:19 -06:00
dalto
22c9d888b4
[packagechooser,netinstall] Proper implementation of source field
2022-01-24 17:01:16 -06:00
dalto
1db217931b
[netinstall] Minor changes from code review
2022-01-24 15:39:14 -06:00
dalto
a657d7388c
[packagechooser] Remove obsolete functionality from netinstall-add
2022-01-23 14:47:14 -06:00
dalto
f4c2db7f21
[packagechooser,netinstall] Fix issues where going back and forth between pkgchooser and netinstall produced unexpected behavior
2022-01-23 13:58:10 -06:00
Adriaan de Groot
95122fdcf5
[partition] Warn if the system won't support encryption in a useful way
...
This is the infrastructure bit; if someone can come up with a way
of **meaningfully** detecting support, the detection function can
be given a better implementation.
FIXES #1725
2022-01-22 22:52:50 +01:00
dalto
2aa8c2f0e0
[packagechooser] Ensure multiple instances don't override the GS values
2022-01-19 16:48:56 -06:00
Adriaan de Groot
88afcee37a
Merge branch 'issue-1820' into calamares
...
FIXES #1820
2022-01-18 15:10:23 +01:00
Adriaan de Groot
929496552e
[bootloader] Optionally generate unique suffix for bootloader
2022-01-18 15:09:44 +01:00
Adriaan de Groot
c9156d41b1
[bootloader] Extend tests and docs with a few more error cases
2022-01-18 14:31:13 +01:00
Adriaan de Groot
7a462f4522
[bootloader] Fix issues identified by tests
...
- expectation derp11 was wrong, there were only 10 calls to next()
- using whole name instead of the not-the-suffix-bit was wrong
- phrase generator wrong length
2022-01-18 13:32:24 +01:00
Adriaan de Groot
ed5c4c9c87
[bootloader] Add generators for various suffix-flavors
2022-01-18 13:32:24 +01:00
Adriaan de Groot
b4b7deac2d
[bootloader] Document intentions
...
It may be easiest to modify the efiBootloaderId, since that does not
normally show up in the UI. I cannot quickly come up with a way to
do the same kind of suffixing on the user-visible name.
SEE #1820
2022-01-18 13:32:24 +01:00
Adriaan de Groot
d1866edfe5
Changes: log the changes to umount
2022-01-18 13:28:45 +01:00
Adriaan de Groot
79683dd83d
Merge branch 'cpp-umount' into calamares
2022-01-18 13:27:34 +01:00
Adriaan de Groot
c587145bdd
[umount] Drop all mention of removed configuration keys
2022-01-18 13:25:58 +01:00
dalto
4d5ae96db6
[umount] Add support for umount to be an emergency module
2022-01-18 13:25:00 +01:00
Adriaan de Groot
6034feb69d
[umount] Complete C++ implementation
...
- as a design decision, the deprecated "save some files" functionality
has been dropped from this implementation.
2022-01-18 13:22:45 +01:00
Adriaan de Groot
afa5e75d76
[umount] Start C++ port
2022-01-18 13:22:42 +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
0070dd2c01
[libcalamares] Add a convenience for reading mtab
...
- used by umount and cleartempmounts (in future)
2022-01-18 13:22:20 +01:00
Adriaan de Groot
4c5ee3b53a
Changes: post-release housekeeping
...
- update the automatically-selected GPG signing-key
2022-01-18 13:20:49 +01:00
Adriaan de Groot
5d6375dab7
Changes: pre-release housekeeping
2022-01-18 12:50:47 +01:00
Adriaan de Groot
546780d7a8
Merge branch 'issue-1864' into calamares
...
FIXES #1864
2022-01-18 12:39:46 +01:00
Calamares CI
ac083f787d
i18n: [python] Automatic merge of Transifex translations
2022-01-18 12:38:45 +01:00
Calamares CI
bca4b73677
i18n: [calamares] Automatic merge of Transifex translations
2022-01-18 12:38:45 +01:00
Adriaan de Groot
da2612d2d9
[locale] Update language even if there is a current location
...
- the first time we arrive at locale, there isn't a current location
and the setCurrentLocation(...) method ends up calling setLanguage(),
usually. The second time, this call is skipped (not called from
the overloaded setCurrentLocation() which is called from onActivate),
so the language didn't update.
- now call setLanguage() unless there has been one set explicitly.
2022-01-18 12:28:57 +01:00
Adriaan de Groot
08cd79f0c2
Merge pull request #1876 from dalto8/pacman-changes
...
[packages] Make pacman output more verbose
2022-01-18 12:24:41 +01:00
dalto
4811c59e33
[packages] Make pacman output more verbose
2022-01-17 16:24:56 -06:00
Adriaan de Groot
11f3f938d8
Merge pull request #1875 from dalto8/pacman-logs
...
[packages] Ensure all pacman output is available in debug log
2022-01-17 15:20:55 +01:00
Adriaan de Groot
85a3d1dc84
Changes: document locale fix
2022-01-17 15:15:20 +01:00
Adriaan de Groot
6101dd9079
[locale] Code style
2022-01-17 14:51:42 +01:00
tjpark88
79a91b486a
[locale] Update language always
...
onActivate of locale updates the language only when currentLocation changed
or when onActivate of locale is called for the first time.
However, It is irrelevant solution since the language is set by the welcome.
So language should be updated always.
The language is used by keyboard module to guessing a layout of keyboard.
Once you face the locale, you can't change language in the welcome
if you don't change the timezone.
2022-01-17 14:51:42 +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
a93126a6d0
[libcalamares] More meaningful name for JobResult success
2022-01-17 14:19:28 +01:00
dalto
112d0b2e90
[packages] Ensure all pacman output is available in debug log
2022-01-17 07:07:09 -06:00
Calamares CI
98bbc222cb
i18n: [python] Automatic merge of Transifex translations
2022-01-17 13:50:42 +01:00
Calamares CI
fad23c9ac6
i18n: [calamares] Automatic merge of Transifex translations
2022-01-17 13:50:41 +01:00
Adriaan de Groot
e6813949af
[libcalamares] Hook up Python's error() to error, rather than warning
2022-01-17 13:47:47 +01:00
Adriaan de Groot
4be932ff9d
[umount] Now mark deprecated use as an error
2022-01-17 13:42:36 +01:00
Adriaan de Groot
8eb7eb8b1f
Changes: remind about *umount* replacement
2022-01-17 12:51:03 +01:00
dalto
b4ac6b73c8
[packagechooser,netinstall] Add documentation for packagechooser/netinstall integration
2022-01-15 11:13:17 -06:00
dalto
2eda55d3af
[packagechooser,netinstall] Add support for packagechooser to drive netinstall
2022-01-15 09:41:23 -06:00
Adriaan de Groot
a8f6596d38
Merge branch 'issue-1870' into calamares
...
- Improve the error messages in general
- Warn specifically if there isn't an *unpack* key
FIXES #1870
2022-01-12 14:39:54 +01:00
Adriaan de Groot
b227419f01
Merge pull request #1871 from dalto8/zfsfix-initcpiocfg
...
[initcpiocfg] Only add zfs hook if zfs is enabled
2022-01-12 11:31:53 +01:00
Adriaan de Groot
da03e12b7b
Merge pull request #1869 from dalto8/initramfs-fix
...
[initramfs] Fix condition when call to uname fails
2022-01-12 11:31:13 +01:00
Adriaan de Groot
f349a9c864
Changes: document new things
2022-01-12 11:28:34 +01:00
Adriaan de Groot
624bb13736
Merge pull request #1868 from dalto8/fix-initcpio
...
initcpio module fixes
2022-01-12 11:19:36 +01:00
Adriaan de Groot
94bca61491
Docs: be a little more explicit about emergency mode
2022-01-12 11:16:42 +01:00
Adriaan de Groot
ee2fea74df
Merge pull request #1866 from dalto8/umount-emergency
...
[umount] Add support for umount to be an emergency module
2022-01-12 11:11:20 +01:00
dalto
1f9ae6cae6
[initcpiocfg] Only add zfshook if zfs is enabled
2022-01-07 14:49:26 -06:00
Adriaan de Groot
e14fa5de75
[unpackfs] Improve error messages
...
- the module is 'unpackfs', not 'unsquash'
- add a warning + specific error if there is no unpack key in the config
- the 'doing nothing' part isn't true: the module errors out instead
of doing nothing.
SEE #1870
2022-01-06 23:51:18 +01:00
dalto
626ab98949
[initramfs] Fix condition when call to uname fails
2022-01-02 08:41:47 -06:00
dalto
3be6946d93
[initcpio] Minor documentation updates
2022-01-01 12:14:42 -06:00
dalto
475c0d21a1
[initcpio] Spell mkinitcpio properly
2022-01-01 10:48:48 -06:00
dalto
c2ae5fad96
[initcpio] Make implementation match config description and remove broken uname option
2022-01-01 10:05:00 -06:00
dalto
4fe5f1c06f
[umount] Add support for umount to be an emergency module
2021-12-31 08:06:13 -06:00
dalto
5b483ab26f
[mount] Fix typo in mount.conf comments
2021-12-30 10:01:03 -06:00
dalto
3e1bc6cb22
[partition] Revert change to partition.conf
2021-12-30 09:36:54 -06:00
dalto
bb1d3022e0
[mount] Add additional documentation in mount.conf and main.py
2021-12-30 09:07:51 -06:00
dalto
a50ffa74e1
[mount,fstab] Fix bugs in moving mount options to the mount module
2021-12-30 09:07:51 -06:00
dalto
03f2e45605
[mount,fstab] Move mounting logic to the mount module
2021-12-30 09:07:51 -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
Adriaan de Groot
24a881ad75
Merge branch 'calamares' into work-3.3
2021-12-24 17:01:08 +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
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
Adriaan de Groot
09f47b5762
[partition] Build tests with consistent flags (in particular, KPMCore4-API flags)
2021-12-07 15:51:45 +01:00
Adriaan de Groot
4611545f93
[libcalamares] Warnings-- on switch()
...
- some switch statements handle a bunch of items explicitly,
then default the rest. Clang complains about that. Turn off
the warning for these specific switches, since there's dozens
of values that simply do not need to be handled.
2021-12-07 15:42:14 +01:00
Adriaan de Groot
6e715205d7
[partition] Warnings-- by calling formatting consistently
2021-12-07 15:36:11 +01:00
Adriaan de Groot
09a03fbbc0
[partition] Warnings--: we don't care about one-byte-in-10^12
2021-12-07 15:31:49 +01:00
Adriaan de Groot
bb3f4442f5
[partition] Warnings-reduction
...
- use consistent size-formatting
- needs an out-of-line virtual function
2021-12-07 15:30:21 +01:00
Adriaan de Groot
5b05110351
[partition] Add convenience function formatByteSize
...
We want to use the KPMCore function consistently, but Calamares
uses a qint64 most of the time. Centralize the cast to double
in one place in the code.
2021-12-07 15:29:02 +01:00
Adriaan de Groot
eda85c176a
[tracking] Avoid unused-deprecated-methods warnings
...
- these are internal classes, with no real Qt machinery; remove
the Q_OBJECT macros.
- replace the tr() calls with calls with an explicit context,
so that translations do not change.
2021-12-07 15:07:07 +01:00
Adriaan de Groot
32da51b44c
[libcalamares] Avoid warnings in Boost::Python macros
2021-12-07 14:48:19 +01:00
Adriaan de Groot
0b6239a996
[libcalamaresui] Warnings-- : we know TCP ports are 16 bit
2021-12-07 14:28:55 +01:00
Adriaan de Groot
79ae3cd00f
Merge branch 'shuffle-error-dialog' into calamares
2021-12-07 14:27:13 +01:00
Adriaan de Groot
c2e63f4a6b
[libcalamaresui] Don't bother tagging nonexistent 3rdparty sources
2021-12-07 14:20:31 +01:00
Adriaan de Groot
8b804c4ae0
[libcalamaresui] Improve icon+heading layout
...
- Icon was too wide, heading and message placed off to the side
2021-12-07 14:15:43 +01:00
Adriaan de Groot
3030a710cc
[libcalamaresui] Simplify
2021-12-07 12:58:22 +01:00
Adriaan de Groot
b07c9bb4af
[libcalamaresui] Use meaningful type for Upload info
...
- use a struct with named fields instead of a tuple
- offer an operator bool() for the logic of does-it-make-sense-to-upload
2021-12-07 12:53:43 +01:00
Adriaan de Groot
3234de5753
[libcalamaresui] Make web-paste decision more readable
2021-12-07 12:48:17 +01:00
Adriaan de Groot
2f9edb3e08
[libcalamaresui] Code style
2021-12-07 12:44:19 +01:00
Adriaan de Groot
ca7f288488
[libcalamaresui] APIDOX for ErrorDialog
2021-12-07 12:40:05 +01:00
Adriaan de Groot
49890acd04
[libcalamaresui] Fix build after move
2021-12-07 12:39:50 +01:00
Adriaan de Groot
dc11dd2203
[libcalamaresui] Move ErrorDialog to the widgets/ part
2021-12-07 12:24:41 +01:00
Adriaan de Groot
6e59177f54
Merge pull request #1843 from LordTermor/calamares
...
Rework of error dialog
2021-12-07 12:06:01 +01:00
Calamares CI
d2ac201b98
i18n: [desktop] Automatic merge of Transifex translations
2021-12-07 12:00:03 +01:00
Calamares CI
c8ea3bccf7
i18n: [desktop] Automatic merge of Transifex translations
2021-12-07 12:00:03 +01:00
Calamares CI
8e4c9b8bd6
i18n: [calamares] Automatic merge of Transifex translations
2021-12-07 12:00:03 +01:00
Adriaan de Groot
13196ed2e2
CI: sort .desktop entries for i18n
...
The ordering of entries jumps around sometimes when reading from
Transifex (this might be Python unordered dictionaries, or based
on translation statistics -- I can't tell). Force an order by
sorting on language code and key-name so they all end up grouped
by language code, sorted Name Icon GenericName Comment.
Although this shuffles some more entries now, longer-term it
will reduce churn in the .desktop file.
2021-12-07 11:59:36 +01:00
Adriaan de Groot
eb2cf60466
CI: support FreeBSD when pulling translations
2021-12-07 10:57:06 +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
Adriaan de Groot
890c17cd71
[libcalamares] Expand error-logging when creating files
2021-12-06 14:46:26 +01:00
Adriaan de Groot
6ef7acc108
[libcalamares] Add minor tests for new readTargetFile
2021-12-06 14:46:26 +01:00
Adriaan de Groot
baf8297cc4
[libcalamares] Reading a file from target system
2021-12-06 14:46:26 +01:00
Adriaan de Groot
47f2dd3c18
Merge pull request #1844 from dalto8/openswap
...
Add support for unlocking encrypted swap with root on a btrfs subvol
2021-12-06 10:42:44 +01:00
dalto
6e08da6c8d
[bootloader] Fix error with systemd-boot when path exists in the ESP
2021-12-06 10:31:58 +01:00
Adriaan de Groot
b8c02587ae
Changes: post-release housekeeping
2021-12-06 10:29:16 +01:00
Artem Grinev
aa332477fd
[libcalamaresui] Run clang-format on TranslationFix.cpp
2021-12-06 03:11:16 +04:00
Artem Grinev
d9f7726f7d
[libcalamaresui] Add SPDX-header for Error Dialog files
2021-12-06 02:41:17 +04:00
Artem Grinev
2f2a418cc4
[libcalamaresui] Run clang-format
2021-12-06 02:37:11 +04:00
Artem Grinev
2dd77ee828
[libcalamaresui] Initialize Error Dialog field
2021-12-06 02:31:05 +04:00
Artem Grinev
bfa7b9a792
[libcalamaresui] Use translation fix for Error Dialog
2021-12-06 02:27:18 +04:00
Artem Grinev
32c5e18db0
[libcalamaresui] Add QDialogButtonBox translation fix
2021-12-06 02:26:13 +04:00
Adriaan de Groot
003e7949e3
Merge pull request #1841 from dalto8/btrfs-nesting
...
[mount] Ensure path is available when creating nested btrfs subvolumes
2021-12-05 20:54:23 +01:00
dalto
e8936392e3
[luksopenswaphookcfg] Add support unlocking swap with root on a btrfs subvol
2021-12-05 13:17:23 -06:00
Adriaan de Groot
c834a5066d
[umount] Make it much more clear that the logfiles-thing is going away.
2021-12-05 02:26:23 +01:00
Artem Grinev
6bf0da7230
[libcalamaresui] Initial rework of error dialog
2021-12-05 04:50:13 +04:00
Adriaan de Groot
1d96c5af46
[partition] Table type 'none' is a late addition.
2021-12-05 01:32:51 +01:00
dalto
6e8779cbce
[mount] Ensure path is available when creating nested btrfs subvolumes
2021-12-04 08:53:15 -06:00
Adriaan de Groot
ceb9ec4115
[fstab] Avoid KeyError when no subvol is set (from dalto8)
2021-12-04 02:15:33 +01:00
Adriaan de Groot
c22bbea528
[packages] Fix tests; YAML interpretation of 'yes' is not a bool
2021-12-04 02:04:24 +01:00
Adriaan de Groot
5277892e4f
Changes: pre-release housekeeping
2021-12-03 23:47:16 +01:00
Calamares CI
5b767e147d
i18n: [python] Automatic merge of Transifex translations
2021-12-03 23:30:28 +01:00
Calamares CI
0178fe6782
i18n: [desktop] Automatic merge of Transifex translations
2021-12-03 23:30:27 +01:00
Calamares CI
209c48d67f
i18n: [calamares] Automatic merge of Transifex translations
2021-12-03 23:30:27 +01:00
Adriaan de Groot
310d67cf27
Merge branch 'btrfs-no-subvolume' into calamares
...
FIXES #1837
2021-12-02 22:09:25 +01:00
Adriaan de Groot
f26c81700d
[fstab] Suppress empty subvol= options in fstab
2021-12-02 22:08:17 +01:00
Adriaan de Groot
96ccf256b2
[mount] Add documentation to the config file
2021-12-02 22:02:14 +01:00
Adriaan de Groot
951ddfb72a
[mount] Experimental: accept 'no' for subvolumes
...
If there is no subvolume set, skip creation of that subvolume.
This allows root to be on a bare FS, without a tag or subvolume
name. To achieve this, use
subvolume: no
(no quotes there) in the YAML.
2021-12-01 23:06:02 +01:00
Adriaan de Groot
e4a3b66024
CI: add abi-consistency-checking
2021-11-30 13:23:15 +01:00
Adriaan de Groot
1667d75a70
CMake: WITH_KF5Crash -> BUILD_KF5Crash
...
ABI-changing flags are WITH_*, features and dependencies are BUILD_*
2021-11-30 11:49:43 +01:00
Adriaan de Groot
ce23efae99
Merge branch 'calamares' into work-3.3
2021-11-30 11:39:30 +01:00
Adriaan de Groot
3845e05834
[locale] Correct timezone 5.0 / 5.5
...
Timezones 5.0 and 5.5 have considerable overlap; clear up most
of it. Since a pixel is about 55x55km on the ground, and the
translation of latitude and longitude is sketchy at best,
accuracy on this timezone map is not very good.
FIXES #1832
2021-11-29 22:04:31 +01:00
Adriaan de Groot
7cea1cb56e
Changes: document fstab
2021-11-29 17:06:10 +01:00
Adriaan de Groot
cdc3a9aad2
Merge pull request #1834 from dalto8/btrfs-swap
...
[fstab] Use different options for the btrfs swap subvolume
2021-11-29 15:16:17 +01:00
Adriaan de Groot
86ec0a6bd2
Merge branch 'fixup-packages' into calamares
...
- Add a changelog entry for what has been done.
2021-11-29 15:13:31 +01:00
Adriaan de Groot
dfd13b4948
[packages] Remove bad config-lines
...
- rootMountPoint is a global thing, not a job-configuration item
2021-11-29 15:02:05 +01:00
Adriaan de Groot
28bd737062
[packages] Validate test-configs, too
...
- The config-files has a typo, so didn't validate, so
the loaded data was wrong, leading to test-failures.
See 61e0d538e9 .
2021-11-29 14:59:43 +01:00
Adriaan de Groot
ec1b73be2b
CMake: don't cmake in the source-directory (during development)
2021-11-29 14:56:15 +01:00
Adriaan de Groot
864dcdb2c2
FreeBSD: Calamares is in the official ports-tree already
2021-11-29 14:45:30 +01:00
Adriaan de Groot
61e0d538e9
[packages] Be more explicit in test failures, fix test data
2021-11-29 14:44:12 +01:00
Adriaan de Groot
474aaf7603
[packages] Fix loading of the subkeys for pacman
2021-11-29 14:23:15 +01:00
Adriaan de Groot
65488ca174
[libcalamares] More verbose when loading YAML for Python
2021-11-29 14:19:06 +01:00
Adriaan de Groot
1260d3fcb9
[packages] Expand tests for PM-specifics more
2021-11-29 13:21:50 +01:00
Adriaan de Groot
3e0c9ba056
[packages] Expand tests with PM-specific bits
2021-11-29 13:04:44 +01:00
Adriaan de Groot
fcbe8d3a3e
[libcalamares] API for YAML-loading from Python
2021-11-29 12:59:30 +01:00
Adriaan de Groot
7f643010b2
[libcalamares] Expose error() and warn() to Python
2021-11-29 12:26:07 +01:00
Adriaan de Groot
e9970474f5
[libcalamares] Allow Python to log an Error as well
2021-11-29 12:22:02 +01:00
Adriaan de Groot
8a1e5d35fa
[packages] Move pacman-options into their own key with subkeys
2021-11-29 11:59:09 +01:00
Adriaan de Groot
90459e434f
Merge pull request #1833 from dalto8/pacman
...
[packages] Additional pacman options
2021-11-29 11:39:01 +01:00
dalto
bd07db544f
[packages] Update doumentation for run_pacman() to be more complete
2021-11-28 15:56:16 -06:00
dalto
6b838bbf3d
[fstab] Add comment explaining logic
2021-11-26 13:00:30 -06:00
dalto
df3e049e1c
[fstab] Use different options for the btrfs swap subvolume
2021-11-26 12:36:15 -06:00
dalto
bb24ee1b3b
[packages] Fix location of call to reset_progress()
2021-11-26 10:56:32 -06:00
dalto
c80b4ff4c2
[packages] Make callback logic more sensible
2021-11-26 08:30:18 -06:00
Adriaan de Groot
596e471276
Merge pull request #1829 from dalto8/zfs-readme
...
Update zfs module documentation
2021-11-26 15:15:29 +01:00
dalto
e1e29780f2
[packages] Change callbacks
2021-11-25 15:55:22 -06:00
dalto
fa10bb8dd3
[packages] Add support for more pacman options
2021-11-25 11:52:41 -06:00
Adriaan de Groot
01d55254f2
i18n: update languages (Farsi at 100%)
2021-11-19 23:17:05 +01:00
Calamares CI
180b12fbaf
i18n: [python] Automatic merge of Transifex translations
2021-11-19 23:13:59 +01:00
Calamares CI
dc8901113e
i18n: [desktop] Automatic merge of Transifex translations
2021-11-19 23:13:58 +01:00
Calamares CI
f947c072e1
i18n: [calamares] Automatic merge of Transifex translations
2021-11-19 23:13:58 +01:00
dalto
ee032b43fe
[zfs] Fix spelling error in readme
2021-11-19 14:24:36 -06:00
dalto
f37a775977
[zfs] Update module documentation
2021-11-19 10:46:23 -06:00
Adriaan de Groot
855391b31d
Changes: post-release housekeeping
2021-11-19 14:55:29 +01:00
Adriaan de Groot
8ca6a7caef
[displaymanager] Fix tests (don't overwrite developer host configuration)
2021-11-16 17:30:28 +01:00
Adriaan de Groot
b0d951d7e5
[grubcfg] Avoid UnboundLocal, always set zfs_root_path to something
2021-11-16 17:22:43 +01:00
Adriaan de Groot
8233be93cf
CI: fix permissions on scripts
2021-11-16 17:15:37 +01:00
Adriaan de Groot
8652fc5f6d
[zfs] Fix schema
...
- typo (canmount vs canMount)
- the canMount property is nominally a string, but YAML is 'special'
and interprets 'on' and 'off' and 'yes' and 'no' and other strings
as booleans unless quoted.
2021-11-16 17:14:12 +01:00
Adriaan de Groot
6792eb5191
Changes: pre-release housekeeping
2021-11-16 15:45:44 +01:00
Adriaan de Groot
b00177bd65
[zfs] SPDX tag the documentation
2021-11-19 12:55:23 +01:00
Adriaan de Groot
bcd8ebd614
[displaymanager] SPDX tags for tests
2021-11-19 12:53:42 +01:00
Adriaan de Groot
46c59be541
Changes: document new things
2021-11-19 11:34:35 +01:00
Adriaan de Groot
2f2271aad6
[mount][bootloader] Communicate btrfs root subvolume
...
Ensure root subvolume is set correctly for systemd-boot.
FIXES #1821
2021-11-19 11:20:09 +01:00
Adriaan de Groot
feba83acdd
Merge pull request #1828 from dalto8/remove-setstate
...
Remove setState call to resolve compat issue with older kpmcore
2021-11-18 23:40:40 +01:00
dalto
f5b882a075
[partition] Remove setState call to resolve compat issue with older kpmcore
2021-11-18 13:36:23 -06:00
dalto
b0f6530a58
[mount][bootloader] Ensure root subvolume is set correctly for systemd-boot
2021-11-18 10:04:49 -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
dalto8
e814920bca
[zfs] Fix typo in README
2021-11-17 00:17:59 +00:00
dalto
c70e31a919
[zfs] Add README.md with some implementation notes
2021-11-16 18:16:32 -06:00
dalto
7e17106f34
[bootloader] Cleanup zfs support from testing
2021-11-16 17:48:49 -06:00
dalto
9603cbef14
[grubcfg] Add zfs entry to kernel_params
2021-11-16 17:48:02 -06:00
dalto
87cca4053f
[zfs][mount] Refactor zfs dataset mounting logic
2021-11-16 13:59:24 -06:00
dalto
b65321d80b
[bootloader] Add zfs support for grub-install
2021-11-16 13:48:34 -06:00
dalto
18307d9f57
Add zfs module to settings.conf
2021-11-16 09:34:50 -06:00
dalto
3ee388526d
[zfs] Cleanup code based on review feedback
2021-11-16 09:06:42 -06:00
Adriaan de Groot
13cb84aa75
Merge branch 'issue-1593' into calamares
...
FIXES #1593
2021-11-16 15:37:41 +01:00
Adriaan de Groot
efe84bc6c0
[partition] Don't log private names
...
- log device node (/dev/sdb) instead of its name
- don't log job's prettyName() because that's translated, and also
contains user-visible private names (introducing a non-translated,
nicely redacted version of prettyName() seems like too much effort
for something that can be reconstructed from bits earlier in the log)
2021-11-16 15:31:35 +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
152b3c333b
[libcalamares] Introduce redaction-of-names class for logging
...
- redacted names are stable inside of one run of Calamares
- random, private displays of a given string for a context
SEE #1593
2021-11-16 14:47:13 +01:00
Adriaan de Groot
7b3c4db8f0
[libcalamares] Redacted -> RedactedCommand
...
- For logging (shell) commands where a password might become visible, use
RedactedCommand. Rename it to allow for other kinds of redaction, too.
2021-11-16 14:21:46 +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
Adriaan de Groot
3aac4dea67
[partition] Remove logging-of-a-pointer during device detection
2021-11-16 13:52:10 +01:00
dalto
0a7262148e
[umount] Convert zfs export call to use host_env_process_output
2021-11-15 19:03:20 -06:00
dalto
ec8bab4013
Merge branch 'zfs-wip' of github.com:dalto8/calamares into zfs-wip
2021-11-15 18:42:49 -06:00
dalto
4778d9b2dd
[mount] zfs changes from review feedback
2021-11-15 18:41:35 -06:00
dalto
3a90382699
[partition] zfs changes from review feedback
2021-11-15 18:41:35 -06:00
dalto
3ebe695a23
[fstab] Exclude zfs partitions from fstab
2021-11-15 18:41:35 -06:00
dalto
ebae698a6e
[mount] Move zfs code into a seperate function to improve readability
2021-11-15 18:41:35 -06:00
dalto
18ad188ef6
[zfs] Ensure overlapping datasets don't get created and code cleanup
2021-11-15 18:41:35 -06:00
dalto
6e440bf9bb
[umount] Export zpools after unmounting
2021-11-15 18:41:35 -06:00
dalto
490ac8d086
[partition] Ensure format is selected for existing zfs partitions
2021-11-15 18:41:35 -06:00
dalto
c48c91a5bd
[partition] Add support for zfs encryption when erase disk is selected
2021-11-15 18:41:35 -06:00
dalto
ee99ee48f6
Add support for multiple zpools
2021-11-15 18:41:35 -06:00
dalto
a5b21b2500
[zfs] Fix typo and add missing continue
2021-11-15 18:41:34 -06:00
dalto
75c947c5a3
[mount] Fix zfs code and add support for encryption
2021-11-15 18:41:34 -06:00
dalto
1ccabf1b13
[zfs] Export zpool so it can later be mounted at the correct location
2021-11-15 18:41:34 -06:00
dalto
6da9bad272
[partition][zfs] Add support for zfs encryption
2021-11-15 18:41:34 -06:00
dalto
074941e2bd
[bootloader] Add initial support for zfs
2021-11-15 18:41:34 -06:00
dalto
5d71723aec
[mount] Improve error handling for zfs
2021-11-15 18:41:34 -06:00
dalto
de0bbbe90a
[mount] Add support for zfs datasets
2021-11-15 18:41:34 -06:00
dalto
7f05096611
[zfs] Add delay before creating the zpool
2021-11-15 18:41:34 -06:00
dalto
7635b76352
[zfs] Add datasets to global storage for other modules
2021-11-15 18:41:34 -06:00
dalto
b9559a9d82
[zfs] Update to Calamares coding standards
2021-11-15 18:41:34 -06:00
dalto
76892136cf
[initcpiocfg] Add support for zfs
2021-11-15 18:41:34 -06:00
dalto
11bf84bac7
[zfs] Initial commit for zfs module
2021-11-15 18:41:34 -06:00
dalto
24a376493b
[partition] Add support for manually creating a partition for zfs
2021-11-15 18:41:34 -06:00
dalto
ca3f0e2892
[partition] Add zfs to the filesystem list if the zfs modules is enabled
2021-11-15 18:41:34 -06:00
dalto
e861d8b319
[mount] zfs changes from review feedback
2021-11-15 18:00:04 -06:00
dalto
abb6f73725
[partition] zfs changes from review feedback
2021-11-15 17:59:33 -06:00
Adriaan de Groot
3dd02edc78
[libcalamares] Document how to interpret percents
...
- use 0..1 in floats for percentages (I suppose you could
call that a perunage, but that would be weird).
2021-11-15 23:16:58 +01:00
Adriaan de Groot
d5bef9efb5
Python: document which exception is thrown on process failure
2021-11-15 21:48:17 +01:00
Adriaan de Groot
5f7b221e11
[displaymanager] Fix greetd commands
...
- since default_desktop_environment isn't a string, need
to pick the string -- the command -- out of the object first.
2021-11-15 13:38:46 +01:00
Adriaan de Groot
16a029abd2
[displaymanager] Adjust tests to match real runtime
...
- the default_desktop_environment isn't a string, but an
object; it is unusual for it to be used in set_autologin
2021-11-15 13:37:23 +01:00
Adriaan de Groot
f3e85efd41
[displaymanager] Add tests that run parts of the DM code
...
- load and set autologin for greetd (this was used to shake out
code bugs in load/save)
- load and set autologin for sddm
2021-11-15 13:00:40 +01:00
Adriaan de Groot
2c186132cd
[displaymanager] Add support for greetd
...
- Includes post-PR code-fixes
CLOSES #1814
2021-11-15 12:30:19 +01:00
Adriaan de Groot
ce6aec158a
[displaymanager] Fix config loading-and-saving
...
- toml.dump() takes a file-like object
- toml.loads() takes a whole string to parse, (e.g. the TOML data),
not a pathname, so change to toml.load() which takes a file-like
object.
2021-11-15 12:23:17 +01:00
Adriaan de Groot
54fd81a87e
[displaymanager] Handle case where config file doesn't exist or has no key
...
- If the config file doesn't exist, the dictionary is empty
- If it **does** exist, it might not have key 'default_session' in it
Either case should avoid a KeyError by using get() (or setdefault,
in this context). Subsequent use of os.path.exists() is strange,
since the value is a **group** (e.g. a dictionary) in the config
file. Just check if it exists, and then fill something in.
2021-11-15 12:21:27 +01:00
Adriaan de Groot
11424195ef
[displaymanager] Missing method call
...
- Add `()` to call the config_path() method, because we need a path
to pass to os.path.exists().
2021-11-15 12:20:54 +01:00
Adriaan de Groot
fad2f6ea88
[displaymanager] Add simple test
2021-11-15 11:52:24 +01:00
Adriaan de Groot
58cf9ffeeb
[displaymanager] Import toml only for the DMs that actually need it
2021-11-15 11:43:47 +01:00
Adriaan de Groot
85f36c77b1
[displaymanager] Import configparser only for the DMs that actually need it
2021-11-15 11:42:25 +01:00
Adriaan de Groot
138db1c817
Merge branch 'feat/greetd-support' of git://github.com/boredland/calamares into boredland-feat/greetd-support
2021-11-15 11:40:18 +01:00
Adriaan de Groot
126838fe1d
Changes: post-release housekeeping
2021-11-15 11:27:20 +01:00
Adriaan de Groot
f0958535df
CI: Update release instructions
2021-11-15 11:14:31 +01:00
Adriaan de Groot
d7865a5bcd
Merge pull request #1824 from dalto8/spacecache
...
[fstab] Remove space_cache from btrfs mount options
2021-11-15 11:09:05 +01:00
Adriaan de Groot
dd2e14853c
i18n: Update language lists
2021-11-15 11:03:41 +01:00
Calamares CI
b0436bf050
i18n: [calamares] Automatic merge of Transifex translations
2021-11-15 10:58:51 +01:00
dalto
b6692341e7
[fstab] Exclude zfs partitions from fstab
2021-11-14 09:07:58 -06:00
dalto
af4b87a4cc
[mount] Move zfs code into a seperate function to improve readability
2021-11-13 14:09:16 -06:00
dalto
c3524c07ad
[zfs] Ensure overlapping datasets don't get created and code cleanup
2021-11-13 13:43:26 -06:00
dalto
cca38695ed
[umount] Export zpools after unmounting
2021-11-13 11:13:39 -06:00
dalto
cf20d6495b
[partition] Ensure format is selected for existing zfs partitions
2021-11-13 10:43:07 -06:00
dalto
8bdfcac0fb
[partition] Add support for zfs encryption when erase disk is selected
2021-11-13 09:31:23 -06:00
dalto
4bed079ebf
Add support for multiple zpools
2021-11-12 16:06:06 -06:00
dalto
daa5731acf
[fstab] Improve comment about space_cache
2021-11-12 09:29:04 -06:00
dalto
9ef520f862
Add comment describing the situation with space_cache on btrfs
2021-11-12 08:58:43 -06:00
dalto
0bef2a91a1
[fstab] Remove space_cache from btrfs mount options
2021-11-10 17:16:09 -06:00
Adriaan de Groot
4fb8993a38
[finishedq] Add sample QML for mobile usage
...
This has a countdown-timer that automatically restarts;
the rest of the settings follow the finishedq.conf values.
FIXES #1601
2021-11-09 23:08:40 +01:00
dalto
91762e3df4
[zfs] Fix typo and add missing continue
2021-11-09 14:54:46 -06:00
dalto
90452147a3
[mount] Fix zfs code and add support for encryption
2021-11-09 14:53:44 -06:00
Adriaan de Groot
8639c9a79f
[partition] Fix up tests
2021-11-09 16:37:25 +01:00
Adriaan de Groot
7291656f19
CI: add new Python API to the linter's library, too
2021-11-09 16:26:31 +01:00
Adriaan de Groot
cd0785164b
[partition] Fix compatibility with Qt 5.12
2021-11-09 15:57:20 +01:00
Adriaan de Groot
bd4bed1438
Merge branch 'calamares' into work-3.3
2021-11-09 15:31:37 +01:00
Adriaan de Groot
737ec690b6
Changes: pre-release housekeeping
2021-11-09 15:29:23 +01:00
Adriaan de Groot
fa1b47a357
Merge branch 'pacman-progress-reporting' into calamares
...
This gives at **least** a proof-of-concept for progress
during package-installation. It's up to the package-manager
or distro to write better progress reporting.
FIXES #1582
2021-11-09 15:25:28 +01:00
Adriaan de Groot
2a86e86817
[packages] Make package-installation messages slightly less scary.
...
From a test with XeroLinux, at some point it says 'reinstalling linux...'
which is a message from pacman about the package called 'linux'.
2021-11-09 15:25:06 +01:00
dalto
06b6263c24
[zfs] Export zpool so it can later be mounted at the correct location
2021-11-09 07:42:39 -06:00
Adriaan de Groot
e4b44b5f85
[packages] Look for other progress indicators
...
- the (n/m) lines are output of specific steps, not actual package-
installation. So look for "<action> <packagename> ..." lines instead.
This means we keep some state around, and need extra machinery to
report those lines rather than the generic progress reporting
that reports on groups.
2021-11-09 14:42:12 +01:00
Adriaan de Groot
4821f450f3
[packages] Report progress by scanning pacman output
...
- during install and remove, check for (n/m) output lines which
report progress of the pacman actions and turn those into progress
reports for the *packages* module.
2021-11-09 13:07:29 +01:00
Adriaan de Groot
575654941f
[partition] Move required partition table type to Config
...
- remove from GS
- remove duplication across Config and ChoicePage
- improve translations (presumably "msdos or gpt" is the most
complicated it will get)
FIXES #1735
2021-11-09 12:25:47 +01:00
Adriaan de Groot
f62198e250
Changes: document who-what for this release
2021-11-09 11:32:06 +01:00
Adriaan de Groot
be217c6a47
Merge pull request #1823 from calamares/boot-partition
...
[partition] offer /boot also when other EFI partition was specified
2021-11-09 11:24:53 +01:00
Philip Müller
0486e48c4e
[partition] offer /boot also when other EFI partition was specified
...
- it still makes sense to offer /boot in EFI
- example: /boot ext4, /boot/efi vfat
- this partly reverts 60f8a7c5fb
2021-11-09 01:51:49 +01:00
dalto
2f145fcf44
[partition][zfs] Add support for zfs encryption
2021-11-08 17:26:08 -06:00
Adriaan de Groot
ead641c344
[summary] Prefer a step's widget over text
...
- the partition module makes a nice descriptive widget,
which includes the text it **also** has for the summary;
(the text is intended for the QML summary).
- In general, if a module has a widget for the summary, assume
that that is the **whole** summary and use it instead of text.
This resolves duplicate summaries -- showing the text of the
partitioning-step, followed by its widget -- introduced in July.
2021-11-08 14:44:12 +01:00
Calamares CI
24306efddb
i18n: [calamares] Automatic merge of Transifex translations
2021-11-07 23:23:25 +01:00
dalto
0720d56803
[bootloader] Add initial support for zfs
2021-11-07 09:32:52 -06:00
dalto
85a2160098
[mount] Improve error handling for zfs
2021-11-07 08:01:32 -06:00
dalto
858e271c8a
[mount] Add support for zfs datasets
2021-11-06 14:33:43 -05:00
dalto
e3af4f3e26
[zfs] Add delay before creating the zpool
2021-11-06 14:12:40 -05:00
dalto
51a5c4de0f
[zfs] Add datasets to global storage for other modules
2021-11-06 13:27:03 -05:00
dalto
7108d4a509
[zfs] Update to Calamares coding standards
2021-11-06 10:30:49 -05:00
dalto
69ef13ef0c
[initcpiocfg] Add support for zfs
2021-11-06 09:48:38 -05:00
dalto
e24d14c512
[zfs] Initial commit for zfs module
2021-11-06 09:44:27 -05:00
dalto
7faf4f30df
[partition] Add support for manually creating a partition for zfs
2021-11-06 09:42:07 -05:00
dalto
ac44aab74a
[partition] Add zfs to the filesystem list if the zfs modules is enabled
2021-11-06 09:16:09 -05:00
Adriaan de Groot
6130a9c51f
[unpackfs] Re-jig process-return-value in Python
...
- make the installation work,
- special case because rsync can return error 23 (which throws, from
inside the Python API) which still means "it was ok".
2021-11-05 16:52:18 +01:00
Adriaan de Groot
c79bb3cd10
[unpacks] PARTIAL conversion to newer API with callback
2021-11-05 16:33:10 +01:00
Adriaan de Groot
b9691c339e
S also docs
2021-11-05 16:32:40 +01:00
Adriaan de Groot
5e6d292235
FIXUP
2021-11-05 16:31:47 +01:00
Adriaan de Groot
faf1d68d32
[libcalamares] Tidy up processing of process output
...
- force C locale on processes
- split trailing output if output per-line-processing is active
2021-11-05 16:26:45 +01:00
Calamares CI
e8c11003e3
i18n: [calamares] Automatic merge of Transifex translations
2021-11-04 12:03:17 +01:00
Adriaan de Groot
94039c19bb
[unpackfs] Use callback instead of building giant string in memory
...
SEE #1740
By processing each line in turn (and just counting is) rather
than collecting all of the lines of output from the tools,
we end up with lower memory usage.
2021-11-03 16:09:11 +01:00
Adriaan de Groot
e8209089c6
Merge branch 'issue-1740' into calamares
...
FIXES #1740
2021-11-03 15:49:03 +01:00
Adriaan de Groot
fe582fb94d
Docs: document the Python APIs for modules
2021-11-03 15:48:26 +01:00
Adriaan de Groot
74d65d8338
Docs: touch-ups and typos
2021-11-03 13:51:17 +01:00
Adriaan de Groot
2800128a8d
[libcalamares] Expand the output-processing API
...
- support host and target runs
- add stdin and timeout values
- allow automatic output to list
2021-11-03 13:45:15 +01:00
Adriaan de Groot
3120abbce8
[libcalamares] Introduce host_env_process_output, too
...
- run commands consistently, with optional output-processing,
in host or target;
- raises exception on error, like the check_* functions.
2021-11-03 12:23:39 +01:00
Adriaan de Groot
e5323ec487
[libcalamares] Expand Runner documentation
...
- document a bit more of the methods
- provide convenience method enableOutputProcessing() alongside
an explicit setter; adjust tests to the changed API.
- add an executable() information method.
2021-11-03 12:20:36 +01:00
Adriaan de Groot
f2142bc4b3
[libcalamares] Move Python callback to utils submodule
...
- don't need the job to do the callback
- allow callable objects from Python
- doesn't actually run the process yet
2021-11-03 11:53:44 +01:00
Calamares CI
dd7767dbc5
i18n: [python] Automatic merge of Transifex translations
2021-11-03 11:16:33 +01:00
Calamares CI
f825d4fef2
i18n: [desktop] Automatic merge of Transifex translations
2021-11-03 11:16:33 +01:00
Calamares CI
aaee088fab
i18n: [calamares] Automatic merge of Transifex translations
2021-11-03 11:16:33 +01:00
Adriaan de Groot
a0cb4b63a8
[partition] Fix build for old Qt
2021-11-03 11:14:22 +01:00
Adriaan de Groot
344948b5ab
Modules: clean up QProcess (part 1)
2021-11-02 23:46:26 +01:00
Adriaan de Groot
2088502e57
[libcalamares] Don't use QProcess directly outside of Runner
2021-11-02 23:46:26 +01:00
Adriaan de Groot
57c174c37f
[libcalamares] Clean up QProcess includes
2021-11-02 23:46:26 +01:00
Adriaan de Groot
5c82cb32ab
[libcalamares] Expand tests to show last-output-line
2021-11-02 23:20:22 +01:00
Adriaan de Groot
aa315c0696
[libcalamares] Handle last-output-line without newline
2021-11-02 22:58:41 +01:00
Adriaan de Groot
0a339a5402
[libcalamares] Test Runner output-processing
2021-11-02 22:55:41 +01:00
Adriaan de Groot
953b899f75
[libcalamares] Allow Runner instances to collect output
2021-11-02 22:50:13 +01:00
Adriaan de Groot
870009e815
[libcalamares] Replace runCommand internals by Runner
2021-11-02 22:27:33 +01:00
Adriaan de Groot
89824a9e0d
[libcalamares] Fix up Runner (as a replacement for current system code)
2021-11-02 22:27:33 +01:00
Adriaan de Groot
24ca64deac
[libcalamares] Chase moved redacted-logging
2021-11-02 22:27:33 +01:00
Adriaan de Groot
85debfc69b
[libcalamares] Add Redacted logging
...
- this was an internal class for logging commands, let's lift
it up to the Logger framework where it might be more generally
useful (or not .. everything needs special-casing for actual
redaction).
2021-11-02 22:27:33 +01:00
Adriaan de Groot
f0104af1c3
[libcalamares] Expand tests on Runner internals
2021-11-02 22:27:33 +01:00
Adriaan de Groot
e5fa58b890
[libcalamares] Add tests for relativeCangeDirectory()
2021-11-02 22:27:32 +01:00
Adriaan de Groot
0b943e801c
[libcalamares] Begin implementing Runner
...
This copies a bunch of code from the System methods for running,
and then #if 0's them to get it to compile. Add some basic
directory-management.
2021-11-02 22:27:32 +01:00
Adriaan de Groot
b9dac6eef8
[libcalamares] Small step in implementation
2021-11-02 22:27:32 +01:00
Adriaan de Groot
e0fdde06c9
[libcalamares] Python API for callbacks from processes
...
This is an experiment in Python API that will allow a callback
function in the Python module to be called for each output line.
It builds on the run-a-process extensions that are being built
simultaneously.
2021-11-02 22:27:32 +01:00
Adriaan de Groot
2de09d4001
[libcalamares] Start refactor of running-a-process support
...
The background idea is that, while CalamaresUtils::System::runCommand()
is a useful general API, it is
- still missing flexibility
- lacking a way to process output from the command "as it happens"
Waiting until the process ends, and then reading all stdout, is
inconvenient for processes that produce a **lot** of output,
and also makes it impossible to report progress. One module
in calamares-extensions has its own run-a-process implementation
for reading output, and this branch aims to introduce something
similar into Calamares core.
2021-11-02 22:27:32 +01:00
Adriaan de Groot
a9a287fa59
Merge branch 'issue-1564' into calamares
...
FIXES #1564
FIXES #1817
Tested by doing an LVM installation from KDE Neon, as described
in #1817 . Installation was successful, and machine booted
successfully afterwards.
2021-11-02 15:37:24 +01:00
Adriaan de Groot
b5dba9108c
[partition] Check for LVs that will be formatted, don't close them
...
- when (manually) using an existing LV, it shouldn't be closed
prior to formatting, since that kills the volume and then the
path (/dev/myvg/mylv) no longer exists. Then creating the
filesysytem on that device path fails.
2021-11-02 15:33:34 +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
0253977778
[partition] Coding style
2021-11-02 11:50:51 +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
Adriaan de Groot
3f8078ea0f
Changes: post-release housekeeping
2021-11-01 14:54:31 +01:00
Adriaan de Groot
218c1d9344
[fstab] Weaken the prescription against / in crypttab
...
FIXES #1811
2021-11-01 14:52:04 +01:00
Adriaan de Groot
0df288f647
[welcome] Improve logging of unsatisfied requirements
...
- improve descriptive-strings in logging ("set?" is not very
meaningful)
- log only the unsatisfied entries, since the preceding
log-message suggests that that is what is happening.
2021-11-01 14:24:50 +01:00
dalto
d0100afe02
Merge branch 'calamares' of github.com:dalto8/calamares into calamares
2021-10-30 14:09:17 -05:00
Adriaan de Groot
23f6b25cfc
Merge branch 'calamares' into work-3.3
2021-10-30 15:02:53 +02:00
Adriaan de Groot
2faa791de4
Changes: avoid constant merge-conflicts by separating 3.2 changelog
2021-10-30 15:02:31 +02:00
Adriaan de Groot
8e959105c6
Changes: avoid constant merge-conflicts by separating 3.2 and 3.3
2021-10-30 15:02:03 +02:00
Adriaan de Groot
dde55471ba
Merge branch 'calamares' into work-3.3
2021-10-30 15:00:54 +02:00
Adriaan de Groot
f3a7f6cdef
Changes: pre-release housekeeping
2021-10-30 14:54:15 +02:00
Calamares CI
5e4028ec87
i18n: [calamares] Automatic merge of Transifex translations
2021-10-30 14:54:15 +02:00
Adriaan de Groot
cd56bab622
[partition] Merge pull request #1808 from dalto8/zfs-delete-fix
...
Fix for zfs partition deletion
2021-10-30 14:44:39 +02:00
dalto
13a2d25b24
Add separate functions for zfs
2021-10-29 16:54:09 -05:00
Adriaan de Groot
7f09cdca65
Changes: update description of this release
2021-10-29 16:55:17 +02:00
Adriaan de Groot
e9083ecabb
[services-systemd] Add a schema file for the configuration
2021-10-29 16:41:03 +02:00
Adriaan de Groot
7aaefa42d1
Merge pull request #1815 from dalto8/timer
...
[services-systemd] Add support for timers
2021-10-29 14:29:50 +02:00
Adriaan de Groot
9e1b8622f2
[packagechooser] Replace smartClip() with just-do-it
...
QLabel allows scaling of the Pixmap by itself, and we have a
FixedAspectRatioLabel that scales a pixmap nicely. Use that.
(The new label type needed to be introduced to designer)
The screenshot should expand more agressively, so that it
does not get margins -- that just leave space around the
name and description -- when the window expands. Adjust some
of the stretching and layout in the UI file.
2021-10-29 13:15:07 +02:00
Calamares CI
65f5db29bb
i18n: [python] Automatic merge of Transifex translations
2021-10-29 11:29:38 +02:00
Calamares CI
07e831a5bf
i18n: [desktop] Automatic merge of Transifex translations
2021-10-29 11:29:38 +02:00
Calamares CI
5cea95d5eb
i18n: [calamares] Automatic merge of Transifex translations
2021-10-29 11:29:38 +02:00
Adriaan de Groot
d3d4690a81
[libcalamares] Move const to a better spot
2021-10-29 11:25:13 +02:00
Adriaan de Groot
ebf8d63669
Merge pull request #1809 from dalto8/ismoduleenabled
...
[libcalamares] Add isModuleEnabled function
2021-10-29 11:20:07 +02:00
Jonas Strassel
5701937883
fix(greetd): deal with no existing config
2021-10-29 00:02:16 +02:00
dalto
f7d8384bff
Use key().module() instead of key().first
2021-10-28 14:49:44 -05:00
dalto
be513813e6
Clean-up from initial review
2021-10-28 14:46:38 -05:00
dalto
24fbd3ab90
More doc changes for services-systemd module
2021-10-28 07:40:05 -05:00
dalto
96f3de12b3
Update documentation for services-systemd module
2021-10-28 07:33:32 -05:00
Jonas Strassel
fbdb9e6779
feat(greetd): add more greeter fallbacks
2021-10-28 08:14:04 +02:00
Jonas Strassel
e5f5ef0d17
feat(greetd): add greetd to displaymanagers
2021-10-28 08:12:45 +02:00
dalto
a1699e28a2
Add support for timers
2021-10-26 16:05:49 -05:00
Adriaan de Groot
c2c55f03c9
Merge branch 'issue-1807' into calamares
...
FIXES #1807
2021-10-26 17:07:40 +02:00
Adriaan de Groot
c90b9786c6
[packagechooser] Also resize the introductory image
...
- resize the intro image
- when an invalid index is selected, *still* update the
images, so it shows the intro image (resized) at the
right time.
2021-10-26 17:05:31 +02:00
Adriaan de Groot
b9a243028b
[packagechooser] Make scaled screenshots nicer
...
- patch suggested by flyingcakes85
- patch tested by killajoe
FIXES #1807
2021-10-26 16:08:20 +02:00
Adriaan de Groot
748b16ba7f
[packagechooser] Look for screenshots in more places.
...
It is easier to put screenshots somewhere where
they can be searched-for, rather than requiring either
absolute paths (inconvenient to try out someone's
settings) or relative paths (because who knows where
Calamares will be run during testing).
2021-10-26 16:08:20 +02:00
Adriaan de Groot
be398d7edb
[packagechooser] Log loading of screenshots
...
- start of indirection in loading, so that we can do a little more
work searching for the screenshot.
2021-10-26 15:23:14 +02:00
Adriaan de Groot
d10a952065
[keyboard] Make debug output more readable
2021-10-26 15:19:02 +02:00
Adriaan de Groot
97ebaad81e
Changes: post-release housekeeping
2021-10-26 14:51:47 +02:00
Adriaan de Groot
68ad34e421
Merge pull request #1810 from dalto8/getlist
...
[libcalamares] Add getList function to Variant
2021-10-26 12:07:16 +02:00
dalto
5f55784137
Add getList function to Variant
2021-10-23 14:02:47 -05:00
dalto
e22efab1b3
Add isModuleEnabled function
2021-10-23 13:57:24 -05:00
dalto
be47b5e59c
Fix for zfs partition deletion
2021-10-23 13:40:47 -05:00
Adriaan de Groot
97eea9bde2
Merge pull request #1645 from dalto8/non-EOS
...
[bootloader] kernel-install changes to bootloader module
2021-10-20 11:45:10 +02:00
Adriaan de Groot
d972dab9b7
CI: changed filename in release script
2021-10-18 15:51:05 +02:00
dalto
b5f8e30093
Change additionalInitrdFiles to an array
2021-10-13 15:09:27 -05:00
dalto
9d9cd44617
Changes from review comments
2021-10-13 12:12:16 -05:00
dalto
c1f7a2c855
Fix issue with absolute paths
2021-10-13 12:12:16 -05:00
dalto
e0f40cb4a4
Remove EOS-specific changes
2021-10-13 12:12:16 -05:00
dalto
04e927e67f
EndeavourOS customizations
2021-10-13 12:12:16 -05:00
Calamares CI
132bca649e
i18n: [python] Automatic merge of Transifex translations
2021-10-04 16:06:58 +02:00
Calamares CI
87d4491395
i18n: [calamares] Automatic merge of Transifex translations
2021-10-04 16:06:57 +02:00
Adriaan de Groot
763ec6152b
Changes: pre-release housekeeping
2021-10-04 16:02:51 +02:00
Adriaan de Groot
f26f0389da
Merge pull request #1802 from calamares/issue-1801
...
[summary] Use model shared with *summaryq*
FIXES #1801
2021-10-04 15:59:34 +02:00
Adriaan de Groot
6b38985a5f
[summary] Start using the model
2021-10-04 14:52:23 +02:00
Adriaan de Groot
3bc90e6c06
[summary] Factor out widget creation
2021-10-04 14:29:54 +02:00
Adriaan de Groot
d951a9d317
[summary] Improve role names in SummaryModel
2021-10-04 12:59:50 +02:00
Adriaan de Groot
4731d79a4f
[summary] Reduce code-duplication
...
The summary page can rely on the Config object to create
lists of relevant steps; this code was declared but not
defined / implemented for Config (but also not called, so
it was ok). This is basically shuffling bits around in
preparation for using the model directly, rather than
re-implementing the widget-creation code.
While here, split off the page-resizing into a free function
so that the code reads nicer.
2021-10-04 12:48:16 +02:00
Adriaan de Groot
763f29e2b8
[summary] Improve naming, shuffle parameters
...
- the page doesn't need to remember what step it belongs to,
if the step tells it when creating widgets.
- detach naming from the viewstep API that calls it.
2021-10-04 12:23:17 +02:00
Adriaan de Groot
87af923638
[summary] Make widgets-use explicit
2021-10-04 12:15:15 +02:00
Adriaan de Groot
2fdb6fdf37
[summary] Clear model on leave
2021-10-04 12:10:17 +02:00
Adriaan de Groot
295f6f9737
Changes: intentions for this branch
2021-10-04 11:44:52 +02:00
Adriaan de Groot
8f4ba8c21f
[summary] Tighten up scope of declarations, simplify
2021-10-04 11:27:10 +02:00
Adriaan de Groot
329f21093b
[libcalamaresui] More careful in unmarginLayout
2021-10-04 00:27:03 +02:00
Adriaan de Groot
605ad788d0
[partition] Fix build against Qt deprecations
...
setMargin() has been deprecated for a long time, and
Calamares has a utility function for it anyway.
2021-09-30 00:02:43 +02:00
Adriaan de Groot
bcde8b87b1
[partition] Remove unreachable break statements
2021-09-29 23:55:40 +02:00
Adriaan de Groot
cb3b2422a9
Changes: update requirements / dependencies documentation
2021-09-28 23:59:45 +02:00
Adriaan de Groot
60cc8696e3
Remove PythonQt support -- C++ bits
2021-09-28 23:56:52 +02:00
Adriaan de Groot
ca4dbabf70
Remove PythonQt support
...
Nothing beyond the example module was ever built with the
PythonQt bindings, as far as I can tell. They have been
deprecated, defaulting OFF for over two years now.
QML modules fill the gap with customizable, run-time
interpreted UI and stronger support from the C++ side
of Calamares.
2021-09-28 23:49:08 +02:00
Adriaan de Groot
c1e1e6c3a4
Merge branch 'calamares' into work-3.3
2021-09-28 23:37:38 +02:00
Adriaan de Groot
bcad698164
Changes: post-release housekeeping
2021-09-28 23:33:43 +02:00
Adriaan de Groot
d556dae415
[partition] Document how the configurable EFI size is coordinated
2021-09-28 21:31:12 +02:00
Adriaan de Groot
05f287ebbb
[partition] Use the configured EFI size
...
The `partition.conf` file contains an EFI-size. The default is 300MiB,
but distributions might like to use a bigger (or smaller) value.
Apply the configuration consistently everywhere where we need
"the size of the EFI partition". Extend the internal method
to look at the configured size.
2021-09-28 18:23:19 +02:00
Adriaan de Groot
90eb0cd844
[partition] Fix build
2021-09-28 18:16:34 +02:00
Adriaan de Groot
a72fc06502
[partition] Fix message (use MiB instead of bytes)
...
Reported by cfinnberg.
FIXES : #1796
2021-09-28 16:55:35 +02:00
Adriaan de Groot
6b460ce440
[partition] Compare size with the canonical source of "right EFI size"
...
While here, note that the canonical source returns bytes (not MiB).
2021-09-28 16:55:35 +02:00
Adriaan de Groot
de63669cee
CI: add missing API stub-implementation for pylint
2021-09-27 21:32:43 +02:00
Adriaan de Groot
51898ea32b
[unpackfs] Fix typo
...
Apparently everyone shipping a squashfs image also has the tools
installed, because the error message reporting that the tools-are-
missing contained a reference to an undefined variable.
Fix that, and while here improve the error message so you
don't get a whole path as a title in the error message.
The slightly weird error-message construction is so that no
messages change and no translation work is needed.
2021-09-27 21:04:26 +02:00
Adriaan de Groot
16f8243fb3
[unpackfs] Move to conventional python-libcalamares use
...
All **other** modules fully specify libcalamares; only unpackfs
was importing shortcuts. Change to conventional usage (partly
because that's easier on the pylint implementation, partly because
it's then consistent with the rest).
2021-09-27 21:04:26 +02:00
Adriaan de Groot
96c89fc080
[displaymanager] Fix Python errors
...
Apparently nobody ever hit the else-branch here (because
each DM has exactly one implementation -- that's what the
check is there for!) because the logging of the error
itself would raise IndexError or ValueError.
2021-09-27 21:04:26 +02:00
Adriaan de Groot
719548213f
CMake: if pylint is available, run it as part of the test-suite
...
This introduces a stub-implementation (fake) that mimics the
API offered by libcalamares (the library is actually exposed
to Python via Boost::Python, so it doesn't act like a C-extension).
Using that stub-implementation, we can check Python modules for
validity as part of the test-suite.
The stub-implementation is needed, because otherwise every
Python module already fails at `import libcalamares`.
- stub-implement the API that is actually used by the Python modules
- in globalstorage, be slightly smart about what keys are being
requested (so that e.g. all the modules that handle partitions
information get an empty list and can manipulate that, instead of
erroring out when they get a string)
2021-09-27 21:02:18 +02:00
Adriaan de Groot
836ea55dbd
Changes: credit to Corey for fixes
2021-09-27 17:50:47 +02:00
Adriaan de Groot
f197acf8e0
CI: add stubs for libcalamares bits, to help pylint
2021-09-27 17:27:42 +02:00
Adriaan de Groot
96aa5b4532
Merge branch 'improve-loadmodule' into calamares
2021-09-27 14:27:50 +02:00
Adriaan de Groot
815bb62ae5
[calamares] Fix test-application command-line-args
...
- use C++11 uniform-initialization
- while here, remove space from name of --global option
2021-09-27 14:26:43 +02:00
Adriaan de Groot
7cda1d2edd
[calamares] Test-loader tries loading from install-dir, too
2021-09-27 13:39:27 +02:00
Adriaan de Groot
058e6cbcda
[calamares] Log failed module-load in test-application
2021-09-27 13:34:08 +02:00
Adriaan de Groot
de9e6a7d70
[calamares] Log module-searching in the test-application
2021-09-27 13:27:36 +02:00
Adriaan de Groot
657a36310b
[libcalamares] Log the Python pre-script a little better
...
- Make clear that the @ is a string-location, and how long the
pre-script is (although in practice, it will be either null
and 0, or the values set in the loadmodule executable).
2021-09-27 13:18:12 +02:00
Adriaan de Groot
8656636f01
Merge pull request #1794 from coreylang/networkcfg_replace_username_fix
...
[networkcfg] fix replace_username() undefined variables
2021-09-27 13:12:09 +02:00
Adriaan de Groot
c4034d944b
Changes: pre-release housekeeping
2021-09-27 13:08:22 +02:00
corey lang
590f16370c
[networkcfg] fix replace_username() undefined variables
2021-09-27 01:24:05 -05:00
demmm
65c1ef7cb5
[initcpiocfg] fix install failure due to extra s
2021-09-24 16:27:35 +02:00
Adriaan de Groot
723da94e75
i18n: source texts
2021-09-24 13:48:35 +02:00
Adriaan de Groot
0a0f3dd2b6
Changes: hot-fix release
2021-09-24 13:48:27 +02:00
Adriaan de Groot
0403749bf1
Changes: pre-release housekeeping
2021-09-24 12:40:38 +02:00
Adriaan de Groot
f25ff77ee2
Merge branch 'fix-nm-name' into calamares
2021-09-24 12:33:07 +02:00
Adriaan de Groot
ce5d42ce0f
[networkcfg] Refactor getting source-and-target paths of a file
2021-09-24 12:33:00 +02:00
Adriaan de Groot
13d69cb813
[networkcfg] Don't mindlessly PEP8
2021-09-24 12:30:11 +02:00
Adriaan de Groot
bf60d0576b
[networkcfg] Refactor username-replacement
...
Read, then write, the NM file. Add a note about how we might
handle this better. Rename live_user() function to give it
a verb (and avoid UnboundLocal when using a variable of the same name).
2021-09-24 12:25:33 +02:00
Adriaan de Groot
678e6f6d74
[networkcfg] Be more forgiving when getting the live username
...
- This function is intended to do whatever it takes to
get the live username.
2021-09-24 12:15:20 +02:00
Adriaan de Groot
88669a4079
Merge pull request #1777 from librewish/btrfs_additions
...
[fstab] Improve btrfs mount options
2021-09-24 11:26:41 +02:00
Adriaan de Groot
3592fe06bb
Merge pull request #1776 from librewish/consolefont
...
[initcpiocfg] add consolefont to hooks
2021-09-24 11:26:08 +02:00
librewish
e5e9e14a9f
[initcpiocfg] add consolefont to hooks
2021-09-24 12:30:42 +05:30
librewish
3f890dfb8e
[fstab] Improve btrfs mount options
2021-09-24 12:24:58 +05:30
Shrinivas Vishnu Kumbhar
528a815307
[locale] Default to English in India
2021-09-23 11:10:09 +02:00
Shrinivas Vishnu Kumbhar
9b57f402da
[keyboard] Use US-English for India
2021-09-23 11:07:43 +02:00
Adriaan de Groot
cf6c930df5
Merge remote-tracking branch 'origin/calamares' into work-3.3
2021-09-22 11:51:14 +02:00
Adriaan de Groot
8f65a644a9
[libcalamares] Rename cPointerSetter
...
This class doesn't really set a pointer -- it is a scoped assignment
through a pointer, which **can** set a value on destruction (when
it leaves scope). Rename it.
While here, extend the API so that it can do an assignment to the
underlying object **now**, while also doing a scoped assignment
later when it leaves scope. This makes some code a bit easier
to read ("in this scope, X is now <v> and then it becomes <v'>")
2021-09-22 11:29:52 +02:00
Adriaan de Groot
bba5b21873
[libcalamares] Remove cBoolSetter
...
This class was used only once, and is confusing because
the assignment happens always, but to the opposite value
as what was visible. It can be replaced with other
scoped assignment, instead.
Removes the tests for it, too.
2021-09-22 11:29:52 +02:00
Adriaan de Groot
b0149c2712
[libcalamares] Log the Python language-search process just once
...
- log the list of search paths once
- log the found-language as if from Python
- warn always if none are found
2021-09-22 11:29:52 +02:00
Calamares CI
7bdccd0ea7
i18n: [python] Automatic merge of Transifex translations
2021-09-21 15:25:51 +02:00
Calamares CI
cce8b73554
i18n: [calamares] Automatic merge of Transifex translations
2021-09-21 15:25:51 +02:00
Adriaan de Groot
744979a095
Merge branch 'issue-1603' into calamares
...
FIXES #1603
2021-09-22 01:45:36 +02:00
Adriaan de Groot
db26df311d
[libcalamares] Reduce log-spam in emergencies
...
- when an emergency strikes, log the modules that are skipped
with a Once, but if an emergency module runs, refresh that
Once so that the function header is printed again -- to
distinguish JobQueue debugging from the logging from the
emergency module.
2021-09-22 01:44:00 +02:00
Adriaan de Groot
9be9431970
[libcalamares] Give Logger::Once more flexibility
2021-09-22 01:41:28 +02:00
Adriaan de Groot
049bccbdd8
[libcalamares] Cut down log-spam from KPMManager
2021-09-22 01:28:40 +02:00
Adriaan de Groot
cf1128b719
[partition] Cut down log-spam while checking for resize
2021-09-22 01:27:33 +02:00
Adriaan de Groot
857aaa6ca4
[partition] Cut down log spam about /etc/fstab
2021-09-22 01:15:37 +02:00
Adriaan de Groot
39915db988
[libcalamares] Reduce log spam when running commands
2021-09-22 00:58:31 +02:00
Adriaan de Groot
54385b7606
[libcalamares] Cut down config-file-loading log spam
2021-09-21 16:53:09 +02:00
Adriaan de Groot
87e7233292
Merge branch 'issue-1788' into calamares
...
This is in response to the issue, and cleans up a bunch of code,
but does not actually resolve the issue (because I can't quite
tell what the issue should be).
SEE #1788
2021-09-21 15:21:52 +02:00
Adriaan de Groot
cb92e49363
[initcpiocfg] Document this module
2021-09-21 15:16:08 +02:00
Adriaan de Groot
a4c714238f
[initcpio] Refactor file-writing
...
- iterate over the lines of the source file, rather
than over indexes, and make clear that the hooks, modules and files
lines are replaced, rather than merged.
- this calls write() more often, but it's only a few lines
2021-09-21 13:39:29 +02:00
Adriaan de Groot
12cd9dd5b2
[initcpiocfg] Refactor
...
- Read the host /etc/mkinitcpio.cfg in one function rather
than hiding it inside the writer
2021-09-21 13:18:01 +02:00
Adriaan de Groot
60e495bd8c
[initcpiocfg] Refactor, improve testability
...
- don't chain directly from modify_mkinitcpio_conf() to the
function that writes the file write_mkinitcpio_lines();
split into "figure out what needs to be written" and calling
that writing-function, so that we can test / check / log
if needed between the two.
2021-09-21 13:13:21 +02:00
Adriaan de Groot
118e18ac60
[initcpiocfg] Code-shuffle
...
- put the system-information and -detection functions at top
and the "do the actual work" things below
- don't mix the boolean do-we-use-this flags with the
lists of files and modules which are the important
parts of modify_mkinitcpio_conf
2021-09-21 13:03:13 +02:00
Adriaan de Groot
7c3c7c4ff7
[initcpiocfg] Use booleans for boolean values
...
(as previous) Use False/True rather than ""/"yes" for
keeping track of does-the-system-use-lvm2.
2021-09-21 12:54:18 +02:00
Adriaan de Groot
7f7dc04e8d
[initcpiocfg] Use bools for boolean values
...
Having "" and "yes" as values is a bit shell-script-ish.
Use a regular boolean value instead; simplify code
while we're at it.
2021-09-21 12:52:16 +02:00
Adriaan de Groot
45daebd989
[initcpiocfg] Refactor CPU-characteristics determination
...
The code is still over-wrought, but the API for cpuinfo
now exposes the interesting thing (is it Intel?) in
a useful -- more readable -- way.
2021-09-21 12:42:58 +02:00
Adriaan de Groot
ee4da8fcc7
Merge branch 'issue-1786' into calamares
...
FIXES #1786
2021-09-21 12:20:12 +02:00
Adriaan de Groot
9f803905cb
Changes: post-release housekeeping
2021-09-21 12:13:25 +02:00
Adriaan de Groot
1d812f88ce
[luksbootkeyfile] Bump timeout for adding LUKS keyfile
2021-09-21 12:12:07 +02:00
Adriaan de Groot
ada13c19fd
[libcalamares] Simplify filling the entropy buffer
2021-09-21 12:02:26 +02:00
Adriaan de Groot
a393ffe126
[luksbootkeyfile] Don't dd in the target to get entropy
2021-09-21 11:58:22 +02:00
demmm
9c1e635804
[keyboardq] fix xml files, xml id has to be first
2021-09-17 15:01:27 +02:00
Adriaan de Groot
593c1ca0e2
i18n: update languages list
2021-09-17 13:12:49 +02:00
Calamares CI
8ebd69f4cf
i18n: [calamares] Automatic merge of Transifex translations
2021-09-17 12:58:10 +02:00
demmm
5a83b036b8
CHANGES: update the keyboardq improvements
2021-09-17 12:40:55 +02:00
Adriaan de Groot
8f1ec4e34a
Changes: mention keyboardq improvements
2021-09-17 11:53:44 +02:00
Adriaan de Groot
4e63390e17
Changes: pre-release housekeeping
2021-09-17 11:52:16 +02:00
demmm
65b9bb0d6b
[keyboardq] set proper SPDX headers
...
rename wrongly named shift.license
2021-09-16 15:01:37 +02:00
Adriaan de Groot
e1df2a2450
Changes: document Python work and other deps-updates
2021-09-16 14:15:12 +02:00
Vitor Lopes
bd3f89fb57
[grubcfg] tidy code + pep8
2021-09-16 14:11:46 +02:00
Vitor Lopes
f9dc932f62
[initcpiocfg] fix english in human-visible string
2021-09-16 14:11:29 +02:00
Vitor Lopes
4b08aebe7f
[initcpiocfg] Use F strings, python3.6 only
2021-09-16 14:11:29 +02:00
Vitor Lopes
1fe27effe5
[initcpiocfg] rework swap_uuid statement and filesystem hook
2021-09-16 14:11:21 +02:00
Vitor Lopes
453e760709
[initcpiocfg] use format instead of %
2021-09-16 14:11:11 +02:00
Vitor Lopes
0ad9242ab7
[initcpiocfg] mkinitcpio.conf might not understand single quotes
2021-09-16 14:11:01 +02:00
Vitor Lopes
5da736466c
[initcpiocfg] rework is_intel_cpu
2021-09-16 14:10:56 +02:00
Vitor Lopes
df256b608a
[initcpiocfg] code tidy up
2021-09-16 14:10:45 +02:00
Adriaan de Groot
1f5bdef96e
CMake: bump Python requirements
...
- Python 3.6 for f-string support
- Boost 1.67 because it has consistent library naming and some CMake support
2021-09-16 13:50:51 +02:00
Adriaan de Groot
261c3587a5
[calamares] Use DBus activation instead of KDSAG
2021-09-16 13:48:56 +02:00
Adriaan de Groot
a6ba3dfce0
[license] Adjust to Qt 5.15 deprecations
2021-09-16 12:08:14 +02:00
Adriaan de Groot
1bd5628256
[libcalamaresui] Redundant call, not available in Qt 5.15 anyway
2021-09-16 12:04:50 +02:00
Adriaan de Groot
714605ebaa
[libcalamaresui] Missing header, needed in Qt 5.15
2021-09-16 12:04:29 +02:00
Adriaan de Groot
5975ff9e42
CMake: drop NAME option from add_test
...
- drop the unused "NAME" option for calamares_add_test
- while here reformat the module with the CMake style tool
2021-09-16 11:52:01 +02:00
Adriaan de Groot
a27b72e893
CMake: introduce consistent CMake style
...
The tool "gersemi" [1] formats CMake code. It is an opinionated
and slightly simplistic "just work" formatter. Let's see how
it does on Calamares CMake code.
[1] https://github.com/BlankSpruce/gersemi
2021-09-16 11:52:01 +02:00
Adriaan de Groot
396746acc1
[libcalamares] Warnings-- for renamed enum value
...
Remove the before-Qt 5.15 ifdeffery and just keep the current
flags for NetworkManager.
2021-09-16 11:12:57 +02:00
Adriaan de Groot
adc3af0345
CMake: explicitly suppress old API
2021-09-16 11:11:27 +02:00
Adriaan de Groot
5a82c8123b
CMake: require Qt 5.15 (the LTS, all current distro's have it)
2021-09-16 11:11:27 +02:00
Adriaan de Groot
8ab1a4fb30
CMake: require 3.16
...
This is just prep-work: from here, we can re-work FindBoost usage
and the FindPython things as well.
2021-09-16 11:09:24 +02:00
Adriaan de Groot
72701aae21
CMake: pick a build type (if none given explicitly)
2021-09-16 11:04:38 +02:00
Adriaan de Groot
419be4df25
3.3: start a new changelog
2021-09-16 11:01:30 +02:00
Calamares CI
252ec6bcf2
i18n: [python] Automatic merge of Transifex translations
2021-09-16 10:57:53 +02:00
Calamares CI
51f400d8bb
i18n: [calamares] Automatic merge of Transifex translations
2021-09-16 10:57:53 +02:00
Adriaan de Groot
2988f9a651
Merge pull request #1782 from killajoe/patch-1
...
[shellprocess] fix typo in conf
2021-09-15 14:27:13 +02:00
Adriaan de Groot
d3bd4f49fa
Changes: document fixes and contributors
2021-09-15 13:33:58 +02:00
Adriaan de Groot
f49627f417
[libcalamaresui] Improve sizeLimit handling in log upload
...
The log sizeLimit can be 0 (disable log upload) but that's
not so clear in the code. While here, tidy up and add
some comments to surprising bits.
2021-09-15 13:30:06 +02:00
Adriaan de Groot
b587358b11
Merge pull request #1785 from killajoe/patch-1
...
Branding: improve sizeLimit docs
2021-09-15 13:24:37 +02:00
Johannes Kamprad
e189faabe5
Update branding.desc
...
hint on sizeLimit must be set to have the log option work.
2021-09-14 16:54:29 +02:00
Calamares CI
34b4661268
i18n: [python] Automatic merge of Transifex translations
2021-09-13 12:53:36 +02:00
Calamares CI
9562100580
i18n: [calamares] Automatic merge of Transifex translations
2021-09-13 12:53:36 +02:00
Johannes Kamprad
e98bf0da72
Update shellprocess.conf
...
a minor typo
2021-09-12 13:47:38 +02:00
Adriaan de Groot
cefe3dd4ff
[tracking] Add Q_OBJECT, sanitize API
2021-09-08 13:31:17 +02:00
Adriaan de Groot
8d71e67a75
Add Q_OBJECT macro where it's missing
...
- Transifex tools complain about missing Q_OBJECT (which makes
some sense -- you end up with a different context for calls
to tr(), of the base class).
2021-09-08 13:23:20 +02:00
Calamares CI
b933485394
i18n: [python] Automatic merge of Transifex translations
2021-09-08 13:09:16 +02:00
Calamares CI
11c79ee537
i18n: [calamares] Automatic merge of Transifex translations
2021-09-08 13:09:16 +02:00
Adriaan de Groot
3380da638e
Merge pull request #1774 from demmm/calamares
...
[keyboardq] add interactive keyboard preview
2021-09-08 11:58:36 +02:00
Adriaan de Groot
87eb5300d2
Merge branch 'load-qtbase' into calamares
...
FIXES #1688
2021-09-08 11:29:15 +02:00
Adriaan de Groot
e47dc4aa78
[partition] Fix build with translated buttons
2021-09-08 11:28:38 +02:00
Adriaan de Groot
4a6753c867
[packagechooser] Restore (renamed) include that is needed after all
2021-09-08 11:26:21 +02:00
Adriaan de Groot
226419f794
[partition] Translate button texts in warning boxes
2021-09-08 11:15:12 +02:00
Adriaan de Groot
6e0a8d8ca1
[libcalamaresui] Translate button texts for paste-message
2021-09-08 11:15:12 +02:00
Adriaan de Groot
7516740bbf
[interactiveterminal] Fix up standard buttons
2021-09-08 11:15:12 +02:00
Adriaan de Groot
dcfbb766dc
[libcalamaresui] Use fixed standard-buttons labels
...
Move some of the texts to the new TranslationFix, from ViewManager,
and use them. Keep them in ViewManager, too, so that the translations
with context ViewManager are not removed just now.
2021-09-08 11:14:46 +02:00
Adriaan de Groot
8c84ae9ff6
[license] Remove unused header
2021-09-08 11:14:46 +02:00
Adriaan de Groot
683bad19fc
i18n: introduce a "TranslationFix"
...
This is intended to apply translations to some common Qt UI components.
Example: a QMessageBox with standard buttons OK and Cancel; the text
for that is determined at startup using the system locale, and later
changes to the current locale or the current translation catalog,
do not affect OK and Cancel. It might be possible to load a catalog
with the right translation strings, except that there is no way to
know what the context or catalog **is** for the strings that are
used to label standard buttons: they can come from Qt base, or
the platform, or the theme. Merely loading the Qt Base translations
for the correct language does not help, because those translations
do not contain an "OK" string with the context used for standard
buttons.
Do the translation by hand; then we have all of the Calamares
languages covered, too, which is more than the Qt translations do.
2021-09-08 11:14:46 +02:00
Adriaan de Groot
438302fcf5
i18n: Shuffle the build so that all the bits are in lang/
...
Move the CMake code responsible for building the translations from
the src/calamares directory (yeah, yeah, the translations need to
link into the executable) into lang/ (which is where the source
and other infrastructure lives).
2021-09-08 11:14:46 +02:00
Adriaan de Groot
06d12fc924
[packagechooser] Remove unneeded include
2021-09-08 11:04:35 +02:00
Adriaan de Groot
24162cb162
i18n: repair language names for Chinese
...
Prompted by Linlinger, I've reconsidered the names of languages
in the drop-down in the welcome page. We already have the
infrastructure for assigning specific names / locales to
"Calamares locale names" (which match Transifex names, not
necessarily Qt names). Use that to put exactly two Chinese-
language translations in the drop-down:
- Simplified Chinese (code zh_CN)
- Traditional Chinese (code zh_TW)
Drop zh (which is a peculiar locale name anyway) and zh_HK
(which is Traditional Chinese, but using the geographic
boundary is a bit weird; we're going to ignore the
minor orthographic differences with Traditional Chinese
written elsewhere for now).
Note that this makes the drop-down show "Chinese"
in the English column, twice; the difference is visible
only in the native-language representation.
SEE #1741
2021-09-07 15:47:30 +02:00
Adriaan de Groot
e11b42ce50
Merge branch 'refactor-translation' into calamares
2021-09-07 15:35:43 +02:00
Adriaan de Groot
4e60f8af13
[libcalamares] Use strong types for locale Ids
...
Change the API to force strong type for more methods.
This cascades to a couple of consumers.
2021-09-07 12:51:57 +02:00
Adriaan de Groot
3ff5896dc6
[libcalamares] Remove unused method
2021-09-07 12:35:47 +02:00
Adriaan de Groot
5f4e65bc77
[libcalamares] Code-format Retranslator, hide internal symbols
2021-09-07 12:35:37 +02:00
Adriaan de Groot
ad1a4b6479
[libcalamares] APIdox on Translation
2021-09-07 11:42:32 +02:00
Adriaan de Groot
73bfc6ca32
[libcalamares] Use structured bindings to unpack a std::pair
2021-09-07 11:38:54 +02:00
demmm
79cc616de2
[keyboardq] add interactive keyboard preview
...
rewrite of keyboardq.qml, reduce stackview to 2, use a combobox for
keyboard models list
colors set to configurable
.xml files used for keyboard layouts, about a dozen added now
builds, runs, actions record as intended, GS filled correctly
2021-09-06 19:25:16 +02:00
Adriaan de Groot
5e7746668e
Merge branch 'calamares' into refactor-translation
2021-09-06 15:38:42 +02:00
Adriaan de Groot
ada9a99804
Changes: post-release housekeeping
2021-09-06 15:16:40 +02:00
Adriaan de Groot
0aa2603a23
[libcalamares] Fix network-connectivity check on old Qt
...
With old Qt, Calamares could only run one check on a thread,
because the NAM would be switched to NotAccessible --
subsequent checks would fail because the NAM is already
hard-set to NotAccessible, so it could never be turned back
on by Calamares code.
Reset the accessible flag for the NAM while checking if
the internet is there.
2021-09-06 14:44:52 +02:00
Adriaan de Groot
0851a8a6a4
Merge branch 'issue-1769' into calamares
...
FIXES #1769
2021-09-06 13:23:59 +02:00
Adriaan de Groot
44e66c1318
[keyboard] Fix mapping for India + English
...
- India (when in English) should use the English variant, not Hindi
- While here, fix up minor items in code:
- Typo in comment
- Asturian doesn't need a special case (which didn't match, anyway)
- Don't debug-log a country-name that might be entirely wrong
(the layout is English, variant "in" but "in" interpreted as
a country is Indonesia, and the actually-desired name is eng_in
which isn't a QLocale name at all -- just like the Hausa and Igbo
special cases)
2021-09-06 13:18:12 +02:00
Adriaan de Groot
b237c73a04
[shellprocess] Fix test
...
The test was loading the config file (for testing) either from the
build directory or possibly the source directory; if the config
in the build-dir was edited (for other testing purposes) then
the test would fail. Load only the source-dir version of the file.
2021-09-06 12:49:49 +02:00
Adriaan de Groot
563c149217
i18n: update english sources, too
2021-09-06 12:39:37 +02:00
Adriaan de Groot
6017420dde
[welcome] Fix up and expand tests
...
- improve logging
- fix failing tests -- the observed and expected behavior is
to fill in a fallback check-URL, not change to an empty list,
- **except** if there's no requirements key in the config
at all; this is a bit weird, but let's make the tests
document existing behavior so we can notice if it changes.
2021-09-06 12:35:24 +02:00
Adriaan de Groot
4948f634ed
[keyboard] Code tidy
...
- complain just once (globally) if ckbcomp is not found, rather than
at every update to the layout.
- tighten up QStringList constructor.
2021-09-06 12:06:11 +02:00
Adriaan de Groot
a1fce99a05
i18n: update language lists
...
Keep zh_HK in 'ok' even if technically it doesn't qualify.
2021-09-06 11:39:01 +02:00
Calamares CI
37bdfb9faa
i18n: [python] Automatic merge of Transifex translations
2021-09-05 14:20:31 +02:00
Calamares CI
9c435e0173
i18n: [calamares] Automatic merge of Transifex translations
2021-09-05 14:20:30 +02:00
Adriaan de Groot
07572d36c0
Changes: pre-release housekeeping
2021-09-05 14:18:52 +02:00
Adriaan de Groot
42bc197f67
Merge branch 'fix-pckq' into calamares
2021-09-06 11:27:09 +02:00
Adriaan de Groot
ea32c12938
Changes: credits for recent work
2021-09-06 11:26:59 +02:00
Adriaan de Groot
c24b2b1a8b
Merge branch 'issue-1773' into calamares
...
FIXES #1773
2021-09-06 10:51:38 +02:00
Adriaan de Groot
5a6e033e82
[bootloader] Flags for root-on-BTRFS
...
This is directly derived from Anke Boersma's KaOS code in module
*bootldr*, which adds the same kernel parameter via a slightly
different route.
2021-09-05 13:34:38 +02:00
Adriaan de Groot
e311d7a893
[packagechooser] Remove 'id' configuration setting
...
- Setting 'id' (which changes the Global Storage key that
gets used) is a kludge when the existing module-instance
name can be used instead -- and **was** already used, as
a fallback when 'id' is not set. There's no point in having
two places to set a particular name.
- Rip out the docs for 'id' as well.
- Add documentation on the difference between single-selection
(the QML implementation) and model-selection (what the Widgets
version does).
2021-09-03 23:59:11 +02:00
Adriaan de Groot
6def41fab4
[packagechooserq] Remove debug-output in QML
2021-09-03 22:57:17 +02:00
Adriaan de Groot
33e7e8da58
[packagechooser] Massage API
...
- use updateGlobalStorage() for both single-selection and
model-based approaches, although the model-based one
needs extra parameters.
- complain about inconsistent settings and API calls (e.g.
setting a model and single-selection at the same time)
2021-09-03 22:41:13 +02:00
Adriaan de Groot
8a49fde016
[packagechooserq] Apply renaming also to distro-visible code
...
- The distro-visible key is renamed *pkgc* to *packageChoice*
- Read *packageChoice* only if there are no items to use
2021-09-03 21:21:44 +02:00
Adriaan de Groot
8b703ba6a3
[packagechooserq] More docs for the config file
2021-09-03 21:21:44 +02:00
Adriaan de Groot
c367731c42
[packagechooser] Rename internals
...
- pkgc -> packageChoice and similar for methods, variables
- document that this is the convenience value for one-selection
QML modules, not a full model
- use std::optional to keep track of which one is being used.
2021-09-03 21:21:44 +02:00
Adriaan de Groot
47c504df5d
[welcome] add SPDX-tags to test-data
2021-09-03 21:21:44 +02:00
Adriaan de Groot
1a1009a2a9
[summaryq] add SPDX-tags
2021-09-03 21:21:44 +02:00
Adriaan de Groot
61ee55db6a
Merge pull request #1770 from dr460nf1r3/calamares
...
[fstab] Dont set fsck check for BTRFS in fstab
2021-09-03 21:00:00 +02:00
dr460nf1r3
35156574b8
Dont set fsck check for BTRFS in fstab
2021-09-03 20:49:08 +02:00
demmm
57f2a4c9eb
update CHANGES with what was done for QML modules
2021-08-31 22:38:48 +02:00
Adriaan de Groot
638c9feeb6
Merge branch 'issue-1767' into calamares
...
FIXES #1767
2021-08-31 14:04:05 +02:00
Adriaan de Groot
2f88ba0d3f
[partition] Coding style
2021-08-31 14:03:04 +02:00
Adriaan de Groot
09491e4cbb
[partition] expect failures when kpm can't read the disk
2021-08-31 13:58:23 +02:00
Adriaan de Groot
1554c3a07c
[partition] Create KPM backend at start of test
2021-08-31 13:54:23 +02:00
Adriaan de Groot
3d0709c779
[partition] Avoid crash when there is no KPM backend
2021-08-31 13:46:25 +02:00
Adriaan de Groot
ede19c8a61
[partition] Fix build of devices test
2021-08-31 13:45:15 +02:00
Adriaan de Groot
3519697d0e
[libcalamares] Slightly more memory-safe
...
Use unique_ptr to ensure Private is always deleted.
SEE #1758
2021-08-31 12:54:51 +02:00
Adriaan de Groot
0899eefde7
[packagechooserq] Fix build on Debian, openSUSE with AppStream
2021-08-31 11:33:05 +02:00
Adriaan de Groot
d7767afe1b
Merge branch 'extra_qml' into calamares
2021-08-30 23:17:36 +02:00
Adriaan de Groot
6831fac76b
Changes: document newly-merged
2021-08-30 22:34:57 +02:00
Adriaan de Groot
6f16d3db83
Merge remote-tracking branch 'origin/issue-1761' into calamares
...
FIXES #1761
2021-08-30 22:33:03 +02:00
Adriaan de Groot
b9a1d090ec
Merge pull request #1762 from demmm/calamares
...
[localeq] redo i18n.qml
2021-08-30 13:57:17 +02:00
Adriaan de Groot
bcfd9ec355
Merge pull request #1765 from waneon/pr
...
[partition] Fix invalid variable name
2021-08-29 02:11:15 +02:00
waneon
4bf3afac48
[partition] Fix invalid variable name
2021-08-27 19:18:09 -04:00
Adriaan de Groot
da49becac3
[partition] Tailor warning message about ESP
...
- tell the user all the things that are wrong with the
(proposed) ESP; a missing one gets all the suggestions.
2021-08-27 17:28:07 +02:00
Adriaan de Groot
6324fa3eb9
[partition] Disentangle questions of suitability of ESP
...
- split into size, type, flags so the warning message can
be tailored to what is wrong.
2021-08-27 17:27:26 +02:00
Adriaan de Groot
7d08770806
[partition] Apply code style
2021-08-27 17:26:50 +02:00
Adriaan de Groot
52a82ea1e6
[partition] Improve warning message in log
2021-08-26 17:39:06 +02:00
Adriaan de Groot
46ca4d93e7
[partition] Improve constness, naming
2021-08-26 17:30:55 +02:00
Adriaan de Groot
4e8d67052f
Changes: describe partition changes
2021-08-26 17:24:19 +02:00
Adriaan de Groot
ad9306d7bb
Merge pull request #1749 from LordTermor/calamares
...
[partition] Disable delete button for extended partition
2021-08-26 17:18:09 +02:00
Adriaan de Groot
51c18baedb
Merge branch 'issue-1669' into calamares
2021-08-26 17:15:03 +02:00
Adriaan de Groot
f376b42c31
[welcome] Add a handful of tests for different URL configs
2021-08-26 16:58:46 +02:00
Adriaan de Groot
ad76a2cbe8
[welcome] [welcomeq] Move requirements to Config
...
The Config object can hold all of the configuration information,
including also the requirements-checking parts. Move requirements-
checking configuration there, so it is shared and consistent
across welcome and welcomeq, regardless.
This repairs the test that expects the Config object to handle
**all** of the configuration, too.
2021-08-26 16:39:55 +02:00
Adriaan de Groot
67d2b5568d
[welcome] Fix test, check that the internet check URLs are loaded
2021-08-26 14:40:52 +02:00
Adriaan de Groot
0538881447
[libcalamares] Handle multiple invalid URLs at once
...
- expand tests with example where more than one URL is invalid
- fix the call to the wrong overload of QVector::erase()
2021-08-26 14:32:57 +02:00
Adriaan de Groot
653359d815
[libcalamares] Fix up multiple URLs for checkinternet
...
- was filtering out the wrong URLs
- was not actually removing the invalid URLs
- extend API to make it possible to count / confirm the settings
- extend tests to demonstrate that API and the issues
2021-08-26 12:57:40 +02:00
demmm
7bfb769288
[localeq] redo i18n.qml
...
set colors as vars, mostly kirigami colors, to make it work for boths dark & light themes
highlights now full width and on hover
currentindex still at -1, not implemented in cofig.cpp/h, possible to use js, or is
https://github.com/calamares/calamares/blob/calamares/src/modules/locale/LCLocaleDialog.cpp#L43 accessible to QML?
2021-08-26 12:05:38 +02:00
Adriaan de Groot
d5e6e1075d
[welcome] Expand stub tests to check that crashes are gone
2021-08-24 13:37:02 +02:00
Adriaan de Groot
e0ee2d9514
[welcome] Handle nullptrs nicely in Config
...
- Branding, Settings, and ModuleManager may all be nullptr,
in which case the corresponding code shouldn't call methods
of those instances -- this is demonstrated by just creating
a Config object
2021-08-24 12:50:03 +02:00
Adriaan de Groot
1e05e7996b
[libcalamares] Avoid cError + SubEntry
...
The combination of Error and SubEntry loses the indentation.
2021-08-24 12:32:48 +02:00
Adriaan de Groot
14c26d01af
[libcalamares] Warnings for nullptr Settings
2021-08-24 12:30:44 +02:00
Adriaan de Groot
e9a98f35ad
[welcome] Avoid crash when no Branding available
...
- don't install translators twice -- do it in setLocaleIndex only
- avoid crash if the branding instance is nullptr
2021-08-24 11:58:24 +02:00
Adriaan de Groot
38c65e80f3
[libcalamaresui] Warn when asking for nonexistent Branding instance
2021-08-24 11:57:37 +02:00
Adriaan de Groot
f1a47a9f0a
[welcome] Add (stub) test for the Config object
...
This crashes because there's no translations object yet,
but that is an internal issue.
2021-08-24 10:24:11 +02:00
Adriaan de Groot
c79fc2e6d9
[libcalamares] Add urls only if valid, add tests to check that
2021-08-24 10:00:42 +02:00
Adriaan de Groot
b9f22a7526
Changes: mention the networkcfg improvement
2021-08-23 17:37:08 +02:00
demmm
bf677df6ca
Merge pull request #1755 from demmm/calamares
...
[networkcfg] add setting the correct target user in copied file
Fixes https://github.com/calamares/calamares/issues/1754
2021-08-16 20:33:08 +02:00
demmm
805fed559c
[networkcfg] use os.getlogin()
...
cala running as root returns root for live_user otherwise
2021-08-16 20:17:07 +02:00
demmm
8913317a44
[networkcfg] add setting the correct target user in copied file
...
see https://github.com/calamares/calamares/issues/1753
2021-08-16 14:06:13 +02:00
Artem Grinev
74a3a2da78
[partition] Fix Delete button for extended
...
Extended partition can't be removed when contains children. This commit
adds missing check.
2021-08-12 02:13:16 +04:00
Adriaan de Groot
854eb845d2
[partition] Fix build of layoutstest
...
This test needs UI because the devicemodel uses GUI parts.
2021-08-05 15:49:29 +02:00
Adriaan de Groot
22ba21f937
[partition] Stub of a test of scandevice
2021-08-31 13:16:45 +02:00
Adriaan de Groot
e294221a2d
[partition] Rename test executables
...
- all partition tests are now named partition<thing>test
2021-08-31 13:08:54 +02:00
Adriaan de Groot
8a2f60a03a
Changes: post-release housekeeping
2021-08-05 15:29:23 +02:00
Adriaan de Groot
b7a3f58df4
[partition] Update waiting widget only if it (still) exists
2021-08-05 14:51:31 +02:00
Adriaan de Groot
a1690ac2d6
[partition] Set up swap-choice texts correctly
2021-08-04 01:47:55 +02:00
Adriaan de Groot
0be4c38a87
[partition] Remove useless parameter
...
- previously, updateSwapChoicesTr() wanted to be a static free function,
but it needs QObject::tr() ; drop the unnecessary parameter (since it
is a member function).
2021-08-04 01:45:22 +02:00
Adriaan de Groot
390acd41b2
[partition] Factor out manual partitioning translation
...
- needs to be called when the button is created, too
2021-08-04 01:42:00 +02:00
Adriaan de Groot
c5fa6383d7
[welcome] Remove annoying debug message
2021-08-05 14:25:20 +02:00
Adriaan de Groot
2820316d16
Partition: don't set text if button doesn't exist
2021-08-05 14:23:11 +02:00
Adriaan de Groot
670d8089bc
Changes: pre-release housekeeping
2021-08-05 14:16:28 +02:00
Adriaan de Groot
1452b74740
[welcome] Load potentially a list of URLs to check
2021-08-01 23:52:27 +02:00
Adriaan de Groot
2f3062f4c2
[libcalamares] Fix typo in comment
2021-08-01 23:49:33 +02:00
Adriaan de Groot
81fe8b1488
[libcalamares] Expand API for setting URLs to check
2021-08-01 22:37:13 +02:00
Adriaan de Groot
b8583a1e59
[libcalamares] Expand the number of URLs to check for connectivity
...
- introduce a list of URLs instead of just one
- ping each of them, in turn, until one responds
2021-08-01 22:07:51 +02:00
Adriaan de Groot
12a361556b
Changes: post-release housekeeping
2021-08-01 21:26:06 +02:00
Adriaan de Groot
07a9e3dd46
CHANGES: release date
2021-07-31 00:41:27 +02:00
Adriaan de Groot
1297845e31
i18n: update language lists
...
I'm specifically putting zh_HK in the 'ok' list so it is selectable,
because that's what we need to be able to improve it most quickly,
2021-07-31 00:39:37 +02:00
Adriaan de Groot
559c53b09c
[libcalamares]: stronger type for translation name
...
QString -> Id for translations in the external API, to avoid
accidentally converting a QLocale name (e.g. ca_ES) into a
Calamares translation name. This preserves special-cases
like ca@valencia and sr@latin.
2021-07-28 14:22:28 +02:00
Adriaan de Groot
bc9d8fb13a
[libcalamares] Rename files Label -> Translation
2021-07-28 14:22:28 +02:00
Adriaan de Groot
bf9f1c95bc
[libcalamares] Rename classes describing Translations
...
- the name 'Label' was a relic of the class being UI-centered
2021-07-28 14:22:28 +02:00
Adriaan de Groot
d6825c4986
[libcalamares] Fix linking with renamed targets
2021-07-28 13:20:35 +02:00
Adriaan de Groot
3596b48c7a
[libcalamares] Factor out common string in Python logging
...
- enforce consistent [PYTHON JOB]
- use CDebug() constructor, because the convenience macro's
introduce the function name -- that's the C++ function, so
it isn't useful for logging.
2021-07-28 13:13:39 +02:00
Adriaan de Groot
fc2286117d
[packages] Move package-list-logic into PM base class
2021-07-28 13:13:39 +02:00
Calamares CI
e577cd4495
i18n: [python] Automatic merge of Transifex translations
2021-07-26 20:56:52 +02:00
Calamares CI
9bf7212458
i18n: [calamares] Automatic merge of Transifex translations
2021-07-26 20:56:52 +02:00
Adriaan de Groot
54d31c85e7
Merge branch 'issue-1744' into calamares
...
FIXES #1744
2021-07-31 00:27:49 +02:00
Adriaan de Groot
2b485a5e59
[keyboard] Only guess layouts until the user picks one
...
- when activating the page, the "guess" functions do their
work and afterwards the config is left in a "guessable"
state, but if the user makes a specific choice, then
the config leaves the "guessable" state and the user's
explicit choice is preserved.
FIXES #1744
2021-07-31 00:24:10 +02:00
Adriaan de Groot
a65723d4da
[libcalamares] Extend cPointerSetter with initial-value
...
This is a convenience for "set <some variable> to <some value>
at end of scope".
2021-07-31 00:20:27 +02:00
Adriaan de Groot
12b23db286
[keyboard] Re-phrase API
...
- expose only intended API, guessLayout() becomes internal and static
- rename onActivate() since it was *called* for activation, but does
something totally different.
2021-07-30 22:17:26 +02:00
Adriaan de Groot
f38b518e86
[keyboard] Factor out lambdas to regular slots
...
- Long and complicated, nested, lambdas are not convenient for reasoning.
- The debug messages from the innermost lambda have a totally useless
function name, which makes debugging harder.
2021-07-30 13:22:40 +02:00
Adriaan de Groot
7e0e063c3f
Changes: pre-release housekeeping
2021-07-30 12:54:47 +02:00
Adriaan de Groot
e8cb5c621a
[partition] Fix build
2021-07-26 20:54:43 +02:00
Adriaan de Groot
616f3d4fd7
[partition] Simplify retranslation of swap choices and manual partitioning
2021-07-26 16:18:31 +02:00
Adriaan de Groot
e0b8942242
[partition] Introduce retranslate slot for ChoicePage, code style
2021-07-26 16:12:41 +02:00
Adriaan de Groot
954e8ee3f8
[libcalamares] warnings-- with a deduction guide
2021-07-26 15:18:21 +02:00
Adriaan de Groot
4114a2bbe8
CMake: chase renamed YAMLCPP
2021-07-26 15:08:29 +02:00
Adriaan de Groot
ce67712009
CMake: rename imported yamlcpp library
...
- call it yamlcpp::yamlcpp
This is source-incompatible if targets link explicitly to yamlcpp
2021-07-26 15:04:46 +02:00
Adriaan de Groot
03e621f4a2
Modules: clean up linking
...
- do not link (explicitly) to Calamares libraries, the CMake
functions do that automatically.
- while here, tidy and remove commented-out-bits
- while here, remove unneeded includes
2021-07-26 15:04:43 +02:00
Adriaan de Groot
4d1630bf8b
CMake: tidy up automatic linking of Calamares libraries
...
- Modules and plugins don't need to mention libcalamares themselves
for linking -- we can do that automatically. Use the IMPORTED names
so that it works in Calamares main repo and external repositories.
- Complain about unknown module types.
2021-07-26 14:27:52 +02:00
Adriaan de Groot
cbb1a5ef36
CMake: within Calamares repo, use the (eventual) imported names of libraries
2021-07-26 14:22:28 +02:00
Adriaan de Groot
a1fb83bdc4
i18n: fix typo and code-style
2021-07-26 11:16:26 +02:00
Adriaan de Groot
53fb16437f
i18n: factor out special cases
...
- allow special Locale or special Name for a translation (or both)
2021-07-25 23:38:09 +02:00
Adriaan de Groot
0e977a7e42
i18n: introduce special case for ca@valencia
2021-07-25 23:18:05 +02:00
Adriaan de Groot
740f1e7fe5
i18n: simplify Label handling of sr@latin
2021-07-25 23:13:44 +02:00
Adriaan de Groot
85a1eb95ee
[welcome] Some translation / label fixes
...
- the message had been arbitrarily changed; change it back
- update (warning) message when there is progress in checking the
model, so it doesn't stay at "unchecked" until you change language
- minor clean-ups
2021-07-25 00:08:47 +02:00
Adriaan de Groot
243c4e6b02
Merge branch 'fix-retranslate' into calamares
...
Improve the Retranslator framework so it also affects Config objects.
2021-07-24 23:27:18 +02:00
Adriaan de Groot
59f11e9b67
i18n: make retranslator more consistent
...
- Improve naming.
- Both lambda and slot versions call the code immediately.
2021-07-24 23:26:02 +02:00
Adriaan de Groot
613d076a60
i18n: re-do the whole Retranslator infrastructure
...
Just have **one** Retranslator object, and install it as event-filter
(this needs to be done manually on a top-level widget) and use
signals / slots to do the actual work, rather than filtering
in multiple places and doing our own mediocre version of binding-
signal-to-lambda.
2021-07-24 23:18:03 +02:00
Adriaan de Groot
51c5c9ba26
[welcome] Switch to using the message from the Config object
...
- The Config object owns the requirements model, and has messages /
strings describing the state of the model. Use that message,
dropping the duplicate message from the requirements widget.
- Re-jig to pass the Config object around rather than the model
that it owns.
- This does not work, because translation events do not arrive
(and the slot isn't called automatically either).
2021-07-24 23:15:05 +02:00
Adriaan de Groot
b81bc17560
[welcome] Log when translation events arrive
2021-07-24 16:59:38 +02:00
Adriaan de Groot
f32671ebab
libcalamares: remove declaration that was never implemented
2021-07-23 22:51:08 +02:00
Adriaan de Groot
604535f65a
CMake: find YAMLCPP when asked to find Calamares
2021-07-23 17:37:12 +02:00
Adriaan de Groot
4b2b74bdbd
[libcalamaresui] Do not link publicly to yamlcpp
2021-07-23 17:23:30 +02:00
Adriaan de Groot
949f9e466f
[summary] createContentWidget is called exactly once, refactor
2021-07-20 16:24:29 +02:00
Adriaan de Groot
d6fe30dfdb
[summary] No need for widget-creation to be a method of the Page
2021-07-20 16:21:59 +02:00
Adriaan de Groot
5de99d53d2
[summary] Move title to Config object
...
Rather than Config asking its (owning) ViewStep what the title
is -- all existing implementations have a prettyName() for that --
move the title into Config and re-do-the ViewSteps to use it.
Rename init() to something meaningful.
2021-07-20 16:00:53 +02:00
Adriaan de Groot
4e588584d7
[summary] Hook up Config message to page
...
- the Page displays a simple message describing what the
summary is all about; Config has the same message,
use that. Needed some re-jigging to get the signals
and slots right.
2021-07-20 15:49:03 +02:00
Adriaan de Groot
9eee00c286
[summary] Create Config object
...
- Create Config object, even if it's not used just yet
- Introduce onLeave() for the Page, better name than
(re-)creating the content (!?) when leaving
2021-07-20 15:17:35 +02:00
Adriaan de Groot
aba212d700
[summary*] Move Config to the non-QML module, so it can be shared
2021-07-20 14:57:09 +02:00
Adriaan de Groot
f8c3b76367
[summary] Stylistic fixes before moving Config objects around
2021-07-20 14:49:08 +02:00
Adriaan de Groot
6c7e7a6d55
[summaryq] a handful of code-style fixes
2021-07-20 14:45:55 +02:00
Adriaan de Groot
401a090cae
Merge remote-tracking branch 'origin/fix-usersq' into calamares
...
Repair the colors, since the basic Kirigami theme does not
look nice at all. While at it, refactor to put the colors
of the usersq module all in one place, so easy to changes
consistently (e.g. to Kirigami colors if you know your theme
is a good one).
2021-07-17 15:52:04 +02:00
demmm
c98b5d7667
[usersq] replace one more (missed) kirigami color
2021-07-16 18:19:10 +02:00
demmm
6bdc655719
[usersq] complete using names for colors
...
add line breaks
add negative outline color
2021-07-15 19:30:43 +02:00
Adriaan de Groot
1bf73c29c4
[usersq] Use a name instead of a magic number
2021-07-15 17:05:49 +02:00
Adriaan de Groot
56f71501cc
[usersq] Back out color-scheme merge
2021-07-15 16:54:02 +02:00
Adriaan de Groot
e361f52415
Merge pull request #1738 from Nitrux/calamares
...
[usersq]: use system colorscheme instead of hardcoded colors
2021-07-14 16:41:35 +02:00
Calamares CI
ec99079cdf
i18n: [python] Automatic merge of Transifex translations
2021-07-14 13:03:42 +02:00
Calamares CI
8f13e7abb4
i18n: [calamares] Automatic merge of Transifex translations
2021-07-14 13:03:42 +02:00
Adriaan de Groot
3a5334071d
[packages] Fix wording problem
2021-07-14 12:54:07 +02:00
Adriaan de Groot
bc77478b2a
[calamares] Expand test-mocks for Python
...
- the rawfs module uses more parts of the subprocess Python module
and so needs more things mocked for testing.
2021-07-14 09:29:20 +02:00
Adriaan de Groot
0d2763f68a
Changes: pre-release housekeeping
2021-07-14 09:02:16 +02:00
Adriaan de Groot
9051faf062
CMake: update language list
...
The list suggests things are not-so-good because of recently-pushed
changes to the translations and teams haven't had time to react.
There are also some new duplicate languages.
2021-07-14 00:08:55 +02:00
Calamares CI
afedc8475d
i18n: [python] Automatic merge of Transifex translations
2021-07-14 00:08:55 +02:00
Calamares CI
293844072d
i18n: [calamares] Automatic merge of Transifex translations
2021-07-14 00:08:55 +02:00
Adriaan de Groot
235db9f961
[summaryq] No need to be a ParserStatus object
...
Config classes, which intend to be shared between widgets-
and QML-based view-steps, should not tie closely to internals.
None of the ParserStatus methods are used in a meaningful
way (init() can be called by the view step).
2021-07-13 22:07:06 +02:00
Adriaan de Groot
768760793a
[summaryq] Hide internals of building the summary model
2021-07-13 22:04:01 +02:00
Adriaan de Groot
792ba8c0af
[summaryq] Nothing uses the derived type of the model
...
(This assertion may be dialed back if the Config object is used
in the summary ViewStep, which will want to get at the widget
pointers, but that's for later)
2021-07-13 21:29:17 +02:00
Adriaan de Groot
a658e88575
[summaryq] Nothing in the Config is specific to this QML view-step
2021-07-13 21:25:57 +02:00
Adriaan de Groot
a316f1b40d
[summaryq] Repair translatable properties
...
- doesn't make sense to have NOTIFY and CONSTANT
- connect to translation signals
- document the properties
2021-07-13 20:42:19 +02:00
demmm
1570105ddb
[usersq] correct plural form as reported in IRC
2021-07-13 12:46:04 +02:00
Adriaan de Groot
3b7c2b2221
[summaryq] Remove memory leak
...
Don't use a vector of pointers, it is too easy (like when calling clear())
to leak memory.
2021-07-13 11:02:24 +02:00
Adriaan de Groot
d2e11dd5d1
[summaryq] Apply coding style
2021-07-13 10:36:05 +02:00
Adriaan de Groot
c2d0a247a3
[partition] Simplify code for overloads
2021-07-12 16:52:24 +02:00
Adriaan de Groot
b43759c6a5
[partition] Apply coding style
2021-07-12 15:42:54 +02:00
Adriaan de Groot
e8b17b9878
[partition] Factor out the descriptions per-disk
2021-07-12 15:39:45 +02:00
Adriaan de Groot
400a5751f9
[partition] Factor out description of action in status and widget
2021-07-12 15:17:34 +02:00
Adriaan de Groot
535f81ba8a
[partition] Factor out gather job-descriptions
...
Since prettyStatus() and the summaryWidget share a lot of
strings and code, start factoring that out.
2021-07-12 15:02:24 +02:00
Adriaan de Groot
7094c7bf39
[partition] Minor stylistic bits
2021-07-12 14:56:04 +02:00
Adriaan de Groot
fedfed5619
i18n: update english originals
2021-07-12 14:31:04 +02:00
Calamares CI
c2585749ac
i18n: [python] Automatic merge of Transifex translations
2021-07-12 14:13:49 +02:00
Adriaan de Groot
a624d91433
Merge branch 'fix-btrfs-default-layout' into calamares
...
FIXES #1682
2021-07-07 13:12:59 +02:00
Adriaan de Groot
6b9a1530f8
[mount] Add test exercising partial-filtering
2021-07-07 13:08:11 +02:00
Adriaan de Groot
eb4ffe737e
[mount] Fix logic
...
- filter() returns the items for which the predicate is True;
we want to keep the subvolumes that do not have an explicit
partition already associated.
- need list() to hammer it back into a list for appending swap subvol.
2021-07-07 12:57:08 +02:00
Adriaan de Groot
995646936f
[mount] Add test exercising refactored btrfs code
2021-07-07 12:38:41 +02:00
Camilo Higuita
6ea73a8ca2
usersq: use system colorscheme instead of hardcoded colors
2021-07-06 18:56:45 -05:00
demmm
373b94b968
[packagechooser] Config files adjusted for new QML modules
...
function added to store selections from packagechooserq
line 103 in Config.cpp needs adjusting to restore working regular widget based packagechooser
prettyStatus added, made visible in packagechooserq only, ViewStep not altered in packagechooser for this yet
2021-07-06 19:37:28 +02:00
demmm
6ccdf79f77
[packagechooserq] adding packagechooserq
...
QML is not using a model as is now, pkgc option is used for setting the default state
2021-07-06 19:30:50 +02:00
demmm
6bb7df918d
[summaryq] adding summaryq
...
initial work done by Nitrux/Camilo Higuita in 2020, reflected in license headers
C++ adjusted to make it build & work
as noted in the inline comments e80618ef1c
there are quite a few errors in the C++, but it builds, runs and shows the correct output
2021-07-06 19:09:20 +02:00
demmm
6388b41e6c
[partition] adding prettyStatus
...
will be used in summaryq, reading from widgets not an option
section probably better suited for Config.cpp/h, since quite a bit of duplicated code from
createSummaryWidget
2021-07-06 18:59:58 +02:00
Adriaan de Groot
e800b2da2d
[mount] Factor out swap-subvolume setting
2021-07-06 16:48:46 +02:00
Adriaan de Groot
cc357140e5
[mount] Factor out the subvolume-filtering for partitions
2021-07-06 16:43:56 +02:00
Adriaan de Groot
6b2088c94e
[mount] Restore @home subvolume
...
In 942221c764 the fixed-setup
(with /@ and /@home) was replaced by the configurable btrfs
layout, but the default went away. Restore the two-subvolume
layout if nothing is configured.
2021-07-06 15:34:13 +02:00
Adriaan de Groot
3531896892
[mount] Factor out the default btrfs configuration
2021-07-06 15:31:00 +02:00
Adriaan de Groot
96c2c62470
[partition] Fix build on older KPMCore
2021-07-06 12:59:01 +02:00
Adriaan de Groot
a4fadcd9be
[partition] Introduce check for EFI partition type-and-size
...
Re-use the existing message about partition type and size,
since I don't want to introduce another message with all the
specifics; give a works-always message instead.
The check itself is also straightforward, avoiding all of the
nuances and technically-this-might-work cases: FAT32, 300MiB+.
FIXES #607
2021-07-06 12:54:25 +02:00
Adriaan de Groot
b5c56fd579
[partition] Clarify comments on boot-flags
2021-07-05 13:33:09 +02:00
Adriaan de Groot
1a542d3afe
[partition] Write out type rather than aliasing to T
2021-07-05 13:11:00 +02:00
Adriaan de Groot
7ea6768852
[partition] Pick slightly more sensible defaults for FS selection
2021-07-05 12:39:56 +02: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
6a7a486b8c
[partition] Document interactions between defaultFS and layout
2021-07-05 12:28:17 +02:00
Adriaan de Groot
f1c46d01e9
Merge pull request #1737 from demmm/calamares
...
[usersq] use validator for login & hostname
2021-07-05 11:28:48 +02:00
demmm
8b561a29f5
[usersq] add close button to all password message fields
2021-07-03 14:23:01 +02:00
demmm
fce798dadf
[users] add an OK message to password message fields
...
empty text box on all good status in usersq is confusing
2021-07-03 14:21:07 +02:00
demmm
a156d2e63f
[usersq] working password validity check
...
kirigami inlinemessages adjusted for password fields
coding style, break lines in variables
add closing button for root password inline message, needed bc of
re-use root password option does not remove all messages
2021-07-03 00:10:31 +02:00
demmm
ce699d8e3d
[usersq] add warnings for forbidden names
...
root & localhost set as forbidden in loginname & hostname
2021-06-30 22:29:32 +02:00
demmm
00b6694073
[usersq] use validator for login & hostname
...
pallette for colors
inline warning messages now work, password fields checks included
left to implement are password validation inline messages
2021-06-30 18:29:32 +02:00
Adriaan de Groot
453d533d2c
[partition] Use default FS for layout items with type Unknown
2021-06-29 23:47:33 +02:00
demmm
70df0b0bc8
[localeq] prevent MouseArea from stealing all map interaction
...
bug introduced with Qt 5.15 KDE patches makes near impossible to set location
adding - 5 seems to fix, otherwise the coordinates label will have to be removed
2021-06-29 17:41:07 +02:00
Adriaan de Groot
c3528e4e40
[partition] Document that the default FS is used, also when erasing
2021-06-29 14:52:16 +02:00
Adriaan de Groot
67fafa04ac
[partition] Move fs-type handling into Config
...
- the defaultFileSystemType interacts with availableFileSystemTypes
so set them together.
2021-06-29 14:47:09 +02:00
Adriaan de Groot
f494440895
[partition] Don't run bool allowManualPartitioning through GS
...
It's a bit over-wrought to store a bool in a QVariant in GS for
consumption **only** by ChoicePage, so drop that GS key and store
it locally.
2021-06-29 13:21:46 +02:00
Adriaan de Groot
5e3a0eda73
[partition] Reduce confused naming
2021-06-29 13:01:21 +02:00
Adriaan de Groot
ebecfb9f8b
[partition] Simplify config-reading (now the variant-docs are better)
2021-06-29 12:21:14 +02:00
Adriaan de Groot
88be947f6c
[libcalamares] Expand tests for Variant access
...
- document that getStringList() also handles strings as 1-element lists
2021-06-29 12:13:37 +02:00
Adriaan de Groot
46f2d72b4c
[partition] requiredPartitionTableType: improve docs
2021-06-29 11:48:53 +02:00
Adriaan de Groot
5f7cfefed7
[partition] Migrate EFI settings-setting to Config object
2021-06-29 11:43:20 +02:00
Adriaan de Groot
c3bc305bb6
[partition] Shuffle Config and ViewStep to top
...
Modules nearly always have a Config and either a Job or ViewStep
as their "top level" components. Everything else is implementation-
detail. The *partition* module was unusual in that those two
"top level" components were tucked away in subdirectories.
Shuffle them to the top: this makes it more clear that these
two files are there to coordinate the module.
2021-06-29 11:22:47 +02:00
Adriaan de Groot
cba5b9e4fb
[partition]: restore defaultFileSystemType in config
...
Add the old key back, document the new key, expand schema.
2021-06-28 22:25:54 +02:00
Adriaan de Groot
e5f93d3563
Changes: credits for recent PRs
2021-06-28 21:59:13 +02:00
Adriaan de Groot
015f644acf
[calamares] More attributes in injected Python script
...
Fake a little more of the subprocess module.
2021-06-28 21:56:49 +02:00
Adriaan de Groot
5d54a08581
[calamares] Allow disabling the Python pre-script
...
The test-application injects a script into Python code
to render harmless functions in the subprocess module
(eg to avoid Python code from running the package manager
for real). There are cases, though, where that injection
should be skipped (eg because the whole point of test-
loading some Python is to check commands that are run).
Add a -P option to the test-application to do that.
2021-06-28 17:17:19 +02:00
Adriaan de Groot
a86ffd105a
[bootloader] factor out GRUB EFI determinations
2021-06-28 17:16:53 +02:00
Adriaan de Groot
d068371e62
Merge pull request #1733 from CC2130/aarch64-support
...
[bootloader] add support for aarch64
2021-06-28 15:50:18 +02:00
Adriaan de Groot
2f25173ac3
Merge pull request #1734 from demmm/calamares
...
[usersq] add inline messages, adjust layout
2021-06-28 15:47:57 +02:00
demmm
2f7d251000
[usersq] empty length is starting color
2021-06-27 12:05:44 +02:00
demmm
1554646a38
Changes: add QML modules changes
2021-06-26 18:29:22 +02:00
demmm
989d08c70a
[usersq] add inline messages, adjust layout
...
warning messages implemented for user & host names
move root password option box inline with password section
adjust background color according to text.length
hardcode color instead of kirigami colors
usersq is now usable, sets user, hostname & password correctly on install
warning messages & color changes not fully done yet
2021-06-26 18:14:19 +02:00
Adriaan de Groot
e5aa90d3a8
Changes: credit for patch
2021-06-25 23:57:59 +02:00
Adriaan de Groot
d102750b13
Merge pull request #1731 from omeritzics/patch-1
...
[keyboard] Add Hebrew and Arabic to the non-ASCII layouts list
2021-06-25 17:07:30 +02:00
Jia Chao
3dce393dcc
bootloader: add-support_for_aarch64
2021-06-25 17:42:36 +08:00
Omer I.S
e1bf7ae96f
Add Hebrew and Arabic
2021-06-24 14:13:30 +03:00
Adriaan de Groot
b54b486ee8
Merge branch 'issue-1724' into calamares
...
FIXES #1724
2021-06-22 01:03:16 +02:00
Calamares CI
2b37c41b08
i18n: [python] Automatic merge of Transifex translations
2021-06-22 00:31:58 +02:00
Adriaan de Groot
131352ca03
[partition] Apply coding style
2021-06-22 00:21:01 +02:00
Adriaan de Groot
e2bf717ea0
[partition] Rewrite new-partition API
...
The existing API required calling the one constructor with
specific pointers (nullptr for a partition-from-free-space)
followed by calling one of the initFrom*() functions. This
is fragile design.
Use tag-classes to distinguish create-from-free-space and
edit-another-freshly-created-partition cases, refactor
to merge the initFrom*() methods into the constructors
and factor out the shared UI creation.
Callers can now use the tag-class to distinguish. While
here, adjust both callers to use QPointer, avoiding some
very specific dialog-on-the-stack crash possibilities.
2021-06-22 00:17:46 +02:00
Adriaan de Groot
dbfd8bea03
[partition] Newly-created (fresh) partitions don't have flags yet
...
When a partition is set as "freshly created", the dialog was
passing in newFlags() as the **already-active** flags on the
partition; then the caller was setting those same flags as
"set these in the future", so that afterwards, no flags would
actually be set (because they're already active -- see the
first sentence).
Now, fresh partitions have no flags.
2021-06-22 00:11:46 +02:00
Adriaan de Groot
f06766085a
[partition] Rename function, to track down consumers
2021-06-22 00:11:46 +02:00
Adriaan de Groot
acb731d823
[libcalamaresui] Provide the logFile path
...
This is intended for consumption by QML; the ViewManager object
acts as a proxy for a handful of global Settings values already,
so throw in global Logger values as well. A QML module that would
like to read the log file (e.g. for tailing it as part of a
slide-show) can get the path via this property.
2021-06-21 22:21:06 +02:00
Adriaan de Groot
54e66ff1c0
[calamares] Python pre-script only if Python is enabled
...
If Python support isn't enabled, you can include the PythonJob header,
but the symbols aren't in libcalamares so fails at link time.
FIXES #1729
2021-06-21 10:09:44 +02:00
Adriaan de Groot
60f8a7c5fb
[partition] Don't offer /boot if EFI wants something else
...
- Don't leave /boot in the list always; EFI might be configured
for /boot/efi on this system
- While here, apply coding style.
2021-06-18 22:20:11 +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
432154e50a
[libcalamares] Improve Once-logging
...
Sending a Once to a logger that isn't enabled should not "consume"
that Once; it's still available for a subsequent logger that **is**
enabled (useful if you're using more than one log-level in a function).
2021-06-18 16:10:13 +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
fb7e6101ff
[partition] Hook erase-fs-type changes to the config-object
2021-06-18 13:53:47 +02:00
Adriaan de Groot
7ce2a87644
[partition] Fix build
...
- fsName was a QString (a copy) so it could be modified;
- the modification isn't really necessary.
- While here, pick up new PointerSetter convenience class.
2021-06-18 13:49:39 +02:00
Adriaan de Groot
ef436ac4d7
[libcalamares] add a convenience optional-setter for use with pointers
2021-06-18 13:49:08 +02:00
Adriaan de Groot
2a0d4e5a23
[partition] Initialize pointers in declaration
2021-06-18 12:35:15 +02:00
Adriaan de Groot
26cabbb3e4
[partition] refactor config-reading from availableFileSystemTypes
2021-06-18 12:18:04 +02:00
Adriaan de Groot
cd804470b5
[partition] Canonicalize the FS choice for erase
2021-06-18 11:51:33 +02:00
Adriaan de Groot
d8a862ec82
[partition] Use Q_EMIT
2021-06-18 11:31:53 +02:00
Adriaan de Groot
4fa61249a8
[partition] Make the fs type used for erase, a config property
2021-06-18 11:29:36 +02:00
Adriaan de Groot
9fa5ab04e5
[partition] Apply coding style to core/
2021-06-18 11:23:27 +02:00
Adriaan de Groot
f9659989b1
[partition] rename findFS
...
Rename findFS -> canonicalFilesystemName because that's what it actually
does. While here, apply coding style to the files that are affected.
2021-06-18 11:09:11 +02:00
Adriaan de Groot
546253d750
[partition] Apply coding style
2021-06-18 11:00:15 +02:00
Adriaan de Groot
b29f3e919b
Merge branch 'improve-btrfs-default-layout' into calamares
...
Avoids a broken btrfs installation in the face of missing
configurations, and makes testing a little more safe by
neutering parts of the subprocess module in Python job-tests.
2021-06-15 23:59:02 +02:00
Adriaan de Groot
cc0e39db56
[calamares] Inject a pre-script when testing Python modules
...
Co-opt the subprocess module and replace call and check_call
functions with something that logs the call and does nothing.
2021-06-15 23:56:58 +02:00
Adriaan de Groot
629fc83f21
[libcalamares] Add a pre-script for PythonJobs
...
This allows injecting arbitrary Python code before
the script of a module is even run. For testing
purposes, that gives us a chance to modify existing
(internal) modules before the script (e.g. to test
subprocess calls).
2021-06-15 21:50:59 +02:00
Adriaan de Groot
69cad09a00
[calamares] Tighten debug-output from module-loader test executable
2021-06-15 21:23:57 +02:00
Adriaan de Groot
7b297a0e16
[mount] Rename test file, re-jig tests for mount
2021-06-15 21:11:07 +02:00
Adriaan de Groot
846936357b
[mount] If no btrfs layout at all, use something reasonable
...
This is related to https://invent.kde.org/neon/neon/calamares-settings/-/merge_requests/1
which adds .. the default things from the example configuration to the
configuration file KDE neon ships. The default layout doesn't add
any subvolumes at all, which seems to be non-functional.
If nothing is configured, complain and use /@ as the lone subvolume.
2021-06-15 20:43:44 +02:00
Adriaan de Groot
9ef22f4168
Merge branch 'calamares' of https://github.com/LordTermor/calamares into pr-1667
2021-06-15 11:48:33 +02:00
Adriaan de Groot
6ee0da41c8
[libcalamares] Avoid deprecation warning in network attributes
2021-06-15 11:45:29 +02:00
Adriaan de Groot
f0a25bd397
[libcalamares] Avoid warnings from deprecated country codes.
...
The Qt documentation does not mention @since for these values,
so we're going to let CI catch them.
2021-06-15 11:41:17 +02:00
Adriaan de Groot
fa1c848faf
Docs: do not use freenode
2021-06-15 11:29:49 +02:00
Adriaan de Groot
dba346be7a
[partition] Fix build in non-debug settings
2021-06-08 19:51:25 +02:00
Calamares CI
d71e0a009c
i18n: [python] Automatic merge of Transifex translations
2021-06-08 17:50:10 +02:00
Calamares CI
619a6a3f97
i18n: [calamares] Automatic merge of Transifex translations
2021-06-08 17:50:10 +02:00
Adriaan de Groot
4e1b6f89c7
Merge branch 'improve-partition' into calamares
...
FIXES #1700
2021-06-08 17:46:33 +02:00
Adriaan de Groot
983e32c9d9
CI: fine, encode the whole label name
2021-06-08 16:49:06 +02:00
Adriaan de Groot
185c5d8b51
Docs: add link and badge for 'current issue'
2021-06-08 16:37:01 +02:00
Adriaan de Groot
8d9c3c428d
Docs: there is no Coverity or Travis status to speak of
2021-06-08 16:26:29 +02:00
Adriaan de Groot
242572f57d
CI: don't encode label name in URL beforehand; let curl do it
2021-06-08 16:20:03 +02:00
Adriaan de Groot
d75439e711
CI: bump all to @v3 actions from Calamares
...
- prep for the nightlies (only openSUSE affected)
- notifications (slightly more secure)
- fix unlabeling issues on close
2021-06-08 15:58:29 +02:00
Adriaan de Groot
7019b6d663
CI: remove in-progress label when closing an issue
2021-06-08 15:37:23 +02:00
Adriaan de Groot
4f70568c65
[partition] Remove unneeded includes
2021-06-08 15:05:44 +02:00
Adriaan de Groot
63c6a8bac8
[partition] Remove unneeded includes
2021-06-08 14:18:28 +02:00
Adriaan de Groot
f67c7f900c
[partition] Make the expanded (pop-up) icon sizes for devices a bit smaller
2021-06-08 14:14:11 +02:00
Adriaan de Groot
df634573bf
[partition] Resize combo box to show whole pop-up
...
The (collapsed) combo box should be wide enough to show the
entire pop-up (expanded) box data.
FIXES #1700
2021-06-08 14:09:31 +02:00
Adriaan de Groot
eb627bc055
[partition] Avoid crash when PARTITION_UNSAFE is on
...
PARTITION_UNSAFE is a debug mode. It is not used in
production, because it allows you to pick an install
device that would be dangerous (e.g. the current / device).
Existing code kept two copies of a list of pointers,
and deleted pointers from one of the lists and returned
the other -- which now contains dangling pointers.
Refactor by applying suitable lambdas to a single
copy of the list; this avoids copying the list so
there is no danger of dangling pointers.
2021-06-08 13:22:56 +02:00
Adriaan de Groot
8f81fd7188
CI: bump openSUSE
...
- needs newer dependency installation
- try out the slightly-hardened notifications
2021-06-08 11:50:09 +02:00
Adriaan de Groot
154396f80a
CI: drop support for clang-format10 and later
...
The only acceptable versions of clang-format are 8 and 9 for now
(until another round of big-churn-from-formatting, at which point
we'll update the required version).
clang-format-9 says:
SpacesInSquareBrackets (bool)
If true, spaces will be inserted after [ and before ]. Lambdas
or unspecified size array declarations will not be affected.
clang-format-10 changes part of that to:
Lambdas without arguments or unspecified size array
declarations will not be affected.
This means that 9 will only allow `[name]` for captures, and 10
will only allow `[ name ]` for captures, so they ping-pong all
the lambda's in the codebase back and forth. Just don't.
2021-06-04 14:55:11 +02:00
Adriaan de Groot
f3c57723df
CI: make clang-format wrangling more flexible
...
Various clang-format versions have different defaults and
don't understand the same options, so adjust to having
files per-formatting-version to patch things up.
2021-06-04 14:47:26 +02:00
Adriaan de Groot
236bd0eb96
CI: adjust clang-formatting
...
- duplicate the file to .base
- drop 10-and-later setting that was commented out
- specific setting for lambda-formatting (this seems to be the default)
2021-06-04 14:46:00 +02:00
Adriaan de Groot
a57a1fdbd8
[partition] Improve logging while collecting devices
2021-06-04 13:32:22 +02:00
Adriaan de Groot
78af510535
Merge pull request #1708 from demmm/calamares
...
[localeq], working Offline.qml
2021-05-31 11:48:10 +02:00
Adriaan de Groot
b68e535131
[libcalamares] Log to file and stdout consistently
...
- The log **file** got every QDebug object, while stdout only
got the ones of sufficient logging level. A CDebug object checks the
logging level before writing anything -- so those already were
consistent, but any qDebug() in the program (not cDebug()!) would
reach the writing-function anyway, and so log to the file.
Fix this weird inconsistency by checking log-level just once,
for both writes.
2021-05-31 11:39:13 +02:00
Adriaan de Groot
716328cafb
[libcalamares] Un-clog Logging
...
- Map QtMsgType -- used by qDebug() and qWarning() -- to levels used
by Calamares in a consistent fashion.
- Drop unused log levels (INFO, EXTRA unused in any Calamares code).
2021-05-31 11:26:49 +02:00
Adriaan de Groot
ddcfd861cc
Changes: note communications
2021-05-31 11:03:24 +02:00
Adriaan de Groot
1825ae1de4
Docs: IRC links to Libera.Chat
2021-05-31 10:41:49 +02:00
Adriaan de Groot
a72d59d23b
[partition] Don't mention IRC support for weird configs
2021-05-31 10:38:37 +02:00
Adriaan de Groot
516c8bf7b6
CI: fix artifact-building
...
The generic-build step runs an install to the host system; for artifact-
generation, we need it all centralized in a stage/ directory. Do that
separately for the KDE neon builds that produce the artifact.
2021-05-30 14:46:13 +02:00
Adriaan de Groot
241c1840aa
CI: chase new actions
2021-05-28 17:38:30 +02:00
Adriaan de Groot
fe78ec494f
CI: use shared prepare and build steps
2021-05-28 17:06:12 +02:00
Adriaan de Groot
1021db053d
CI: switch to shared Calamares actions entirely
2021-05-28 12:55:52 +02:00
Adriaan de Groot
2d8cf6aabf
[partition] Fix build against KPMCore3
2021-05-26 16:36:28 +02:00
Adriaan de Groot
03b2c8054b
CI: opensuse doesn't have curl installed by default
2021-05-26 16:12:17 +02:00
Adriaan de Groot
2107efdd75
CI: remove Matrix script (it's now a regular action)
2021-05-26 16:11:58 +02:00
demmm
72f97ac163
[localeq] Offline.qml visual improvements
2021-05-26 12:38:08 +02:00
Philip Müller
2c99a8c6f8
[displaymanager] add cutefish
...
- more info at https://cutefishos.com/
2021-05-26 09:36:02 +02:00
demmm
ffe3209121
[localeq], working Offline.qml
2021-05-25 22:52:10 +02:00
Adriaan de Groot
cf341c53fa
Merge branch 'calamares' into improve-partition
2021-05-25 17:37:15 +02:00
Adriaan de Groot
74c8f34b79
CI: move nightlies reporting to Matrix
2021-05-25 16:27:12 +02:00
Adriaan de Groot
e15db9a68c
CI: move issues notification to Matrix
2021-05-25 16:25:30 +02:00
Adriaan de Groot
b419f5a3c3
CI: fix up quotes in command
2021-05-25 16:23:59 +02:00
Adriaan de Groot
93221da5ea
CI: fix up notifications to Matrix
2021-05-25 15:47:44 +02:00
Adriaan de Groot
e2d6e63fe6
Merge remote-tracking branch 'origin/issue-1701' into calamares
...
FIXES #1701
There's now a check in place that suppresses the GPT-for-BIOS
message if the user is going to follow its advice already.
2021-05-25 15:45:07 +02:00
Adriaan de Groot
d8b8d17e86
CI: try simpler action
2021-05-25 15:01:18 +02:00
Adriaan de Groot
5bf118409a
CI: try to use actions-metadata rather than local script
2021-05-25 14:39:09 +02:00
Adriaan de Groot
c333b9bb0a
CI: want jq for actions in the nightlies, too
2021-05-25 14:38:40 +02:00
Adriaan de Groot
01911beccc
[partition] Expand debugging output
...
The partition path isn't set yet, so is probably 'empty'. Try logging the device, too.
2021-05-25 14:16:28 +02:00
Adriaan de Groot
252a88cb7f
[partition] Check for suitable bios_grub partition.
2021-05-25 14:07:58 +02:00
Adriaan de Groot
43c172f54d
[partition] Tighten up types
...
Don't return the generic Abstract model for bootloader, but
the subclass pointer, so that consumers can use the convenience
API on the subclass.
2021-05-25 13:23:28 +02:00
Adriaan de Groot
d0276fd25f
[partition] Look up bootloader by name, method
...
The bootloader model knows about both rows and
devices, so we can look up both at once. The
existing implementation as a non-member was rather
sketchy and wasn't used except as support for
restoreSelectedBootLoader().
2021-05-25 13:05:45 +02:00
Adriaan de Groot
dabd895755
[partition] Use type alias consistently
2021-05-25 12:33:12 +02:00
Adriaan de Groot
d630c2aadf
[partition] Introduce a check if the GPT-on-BIOS popup should be shown
...
The check is bogus right now, and it still always warns; but if
the `shouldWarnForGPTOnBIOS()` function is implemented, this will
fix issue 1701.
2021-05-25 12:00:35 +02:00
Adriaan de Groot
e773fb65a8
CI: migrate push notification to helper script
2021-05-25 11:21:41 +02:00
Adriaan de Groot
a73ad23b9f
CI: need jq for JSON-formatting of matrix message data
2021-05-25 10:40:20 +02:00
Adriaan de Groot
ded7991dd6
CI: different tactic for notifications
2021-05-25 09:55:45 +02:00
Adriaan de Groot
dd670f7c44
Merge branch 'issue-1702' into calamares
...
FIXES #1702
2021-05-24 23:08:14 +02:00
Adriaan de Groot
aa4569b55b
[packages] Convert command-failures into readable error messages
...
If the pakcage manager fails in some way, convert to a readable
error message instead of leaking the exception to the caller
(which produces a traceback, which is harder to read and less
informative)
2021-05-24 23:07:11 +02:00
Adriaan de Groot
bb1df38caa
[bootloader] Convert command-failures into readable error messages
...
Avoid leaking errors to the caller, because that gets us a
traceback and generic Python Error message, which is less-than-helpful.
2021-05-24 23:05:46 +02:00
Adriaan de Groot
e186e54434
[fstab] Don't fail with a KeyError in misconfigured installations
...
Use get() instead of [] to avoid KeyError when the host system
confuguration is entirely missing a setting for *mountOptions*.
FIXES #1702
2021-05-24 22:16:54 +02:00
Adriaan de Groot
98ebb6f8d1
CI: send push-related CI notifications to Matrix
2021-05-21 16:24:56 +02:00
Adriaan de Groot
7830461ac5
Docs: one more round of badging
2021-05-19 15:21:05 +02:00
Adriaan de Groot
caea146840
Docs: styling, badge for matrix
2021-05-19 14:57:33 +02:00
Adriaan de Groot
b48de5b908
Docs: mention Matrix consistently
2021-05-19 14:28:24 +02:00
Adriaan de Groot
e4c97cac2b
Docs: link to the website user-guide, not the wiki version
2021-05-19 14:25:10 +02:00
Adriaan de Groot
efe41da24d
Docs: mention Matrix channel, too
2021-05-19 14:25:10 +02:00
Adriaan de Groot
d731e12456
[libcalamares] Add an extra job-failure enum value
2021-05-15 07:46:03 +02:00
Adriaan de Groot
ea8f5afc3c
CI: clang-format 7 is no longer supported
2021-05-15 06:24:32 +02:00
Adriaan de Groot
ce5b5c6734
Merge pull request #1692 from edupals/copy_link_resolvconf
...
[networkcfg] copy resolvconf as link
2021-05-17 12:14:24 +02:00
Calamares CI
38293b0f09
i18n: [python] Automatic merge of Transifex translations
2021-05-14 17:49:46 +02:00
Calamares CI
a4ad440403
i18n: [calamares] Automatic merge of Transifex translations
2021-05-14 17:49:45 +02:00
Raul Rodrigo Segura
a888156deb
copy resolvconf as link
2021-05-12 16:20:13 +02:00
Adriaan de Groot
27f965deb6
[summary] Name widgets for styling
2021-05-10 21:55:52 +02:00
Adriaan de Groot
5d577371e7
[welcome] Name widgets for styling
...
Widgets are easier to style if they have a name, and easier to spot
in the widget tree as well. Give the requirements-checker
parts meaningful names.
SEE #1685
2021-05-10 21:55:52 +02:00
Adriaan de Groot
da2fff1256
Changes: credits
2021-05-10 21:55:52 +02:00
Philip Müller
4543feccca
[displaymanager] add ukui
2021-05-07 15:44:25 +02:00
Adriaan de Groot
439d537ca2
Merge pull request #1684 from eamanu/patch-1
...
Docs: Fix minor Typo on README
2021-05-02 18:37:11 +02:00
Emmanuel Arias
97184dc498
Fix md link
2021-05-02 12:43:11 -03:00
Emmanuel Arias
1a3dc7d386
Fix minor Typo on README
...
a `)` is missing.
2021-05-01 20:58:30 -03:00
Adriaan de Groot
e6568667c4
[packagechooser] Sanitize includes
...
- build was broken due to AppStream moving around
- unnecessary includes
- change name HAVE_XML -> HAVE_APPDATA for meaning
2021-04-24 17:41:51 +02:00
Adriaan de Groot
eee536046b
[packagechooser] Sanitize includes
...
- build was broken due to AppStream moving around
- unnecessary includes
- change name HAVE_XML -> HAVE_APPDATA for meaning
2021-04-24 17:40:37 +02:00
Adriaan de Groot
df20aa9ddb
Merge branch 'calamares' into improve-partition
2021-04-23 23:33:49 +02:00
Adriaan de Groot
fb6e65613b
Changes: document contributors
2021-04-23 23:11:06 +02:00
Adriaan de Groot
cd7d109114
[packages] Fix trivial indent problem
2021-04-23 23:04:51 +02:00
Adriaan de Groot
a3b84fa674
Merge pull request #1680 from jcfrosty/patch-1
...
[packages] Add Luet PackageManager support
2021-04-23 23:02:21 +02:00
Adriaan de Groot
f024cb7370
[packages] Document and add new key to schema
...
FIXES #1676
2021-04-23 23:01:28 +02:00
Adriaan de Groot
42888cece6
Changes: document contributions and features
2021-04-23 22:49:26 +02:00
Adriaan de Groot
bac1108781
Merge branch 'issue-1550' into calamares
...
FIXES #1550
2021-04-23 22:37:12 +02:00
Adriaan de Groot
f4fe0881b9
[packagechooser] Be more clear on the resulting GS keys
...
- in legacy mode, *id* can have an effect and leads to
"packagechooser_<id>"; if unset, uses the the module
instance id instead, still as "packagechooser_<instanceid>".
- in packages mode, *id* is not used and only the whole
module Id (generally, "packagechooser@<instanceid>")
is used, but in packages mode there's no need for other
packages to mess with GS settings for this packagechooser.
2021-04-23 22:36:25 +02:00
Adriaan de Groot
aa3633e43a
[packagechooser] Delay initialization of default Id
...
When the module is loaded and the viewstep created, it doesn't have a
module Id **yet**. That is set after reading more of the configuration
file. It **is** set by the time setConfigurationMap() is called,
so pass it on to the Config object then. This means that packagechooser
modules can skip the *id* config key and use the module Id.
2021-04-23 22:04:15 +02:00
Adriaan de Groot
6ce1a49f1c
[packagechooser] Store *method* configuration in Config object
2021-04-23 21:46:46 +02:00
Adriaan de Groot
7521be3c5f
[libcalamares] Add find() to namedenumtable that takes a default value
2021-04-23 18:03:24 +02:00
Adriaan de Groot
64eafe35d4
Merge pull request #1666 from deprov447/Limit_log_upload_size
...
[logUpload] Limit upload size
2021-04-23 17:33:40 +02:00
Adriaan de Groot
108ba28c43
Merge branch 'extend-packages-service' into calamares
2021-04-23 12:48:45 +02:00
Adriaan de Groot
192d307d39
[netinstall] Warnings-- for unused variable
2021-04-23 12:48:25 +02:00
Adriaan de Groot
61557cf805
[packagechooser] Connect UI to model
...
The model needs to be attached to the widget; because of changes
in the order that widget() and setConfigurationMap() are called,
the model is created earlier, but needs to be connected later.
2021-04-23 12:41:50 +02:00
Adriaan de Groot
049b9f9c74
[libcalamares] Test the packages service API
...
- check that the variant and the string-list version of
the API do the same thing, check independence of
settings for different instance keys.
2021-04-23 11:49:06 +02:00
Adriaan de Groot
e400f79673
[libcalamares] Extend packages service API
...
- convenience method to install a (string) list of packages
(doesn't do the installation, but adds to GS the list, so
that the packages module can handle it).
2021-04-23 10:25:29 +02:00
Jerrod Frost
4299ea1d4f
Add Luet PackageManager support
...
Sabayon is being rebuilt into MocaccinoOS with a new packagemanager.
2021-04-22 11:18:41 -05: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
Adriaan de Groot
788c84dc41
[netinstall] SPDX-tag the syntax-error file
2021-04-18 13:37:58 +02:00
Adriaan de Groot
e4e041df7e
Merge branch 'extend-translation-strings' into calamares
2021-04-18 13:37:03 +02:00
Adriaan de Groot
1af8796b2b
[libcalamares] Refactor translations-for-a-test CMake code
...
- turn the translations-QRC phase into a function, just in
case other tests need translations as well.
- This CMake code might work as the base of translation-wrangling for
plugins (externally).
2021-04-18 13:35:18 +02:00
Adriaan de Groot
cfbe722350
[libcalamares] Test the translated string with real translations
...
- introduce a bogus translation context, load translations,
and check that the context-enabled translator does its job.
2021-04-18 13:19:55 +02:00
Adriaan de Groot
0143aa5515
[libcalamares] Make the branding-loading messages follow same format as the others
2021-04-17 22:13:16 +02:00
Adriaan de Groot
d72e42f7ba
[libcalamares] Extend (configuration) translated string with context
...
Make it possible to pass in a context for strings not-from-config
maps, to allow programmatically set, but translatable, strings.
2021-04-17 14:41:08 +02:00
Adriaan de Groot
65e78e5915
[packagechooser] Use packages list instead of ids
...
- don't pass the item IDs to packages module, use the
packages lists for each item
- document the item list in more detail (including the packages member
and new install-method item)
2021-04-17 14:39:24 +02:00
Adriaan de Groot
91a29c5885
[packagechooser] Add getters for the *packages* members to the model
2021-04-17 14:36:33 +02:00
Adriaan de Groot
5e77d65424
[packagechooser] Add install-method to pick *packages* module
2021-04-16 14:53:13 +02:00
Adriaan de Groot
ed14c49a03
[libcalamares] Extend (configuration) translated string with context
...
Make it possible to pass in a context for strings not-from-config
maps, to allow programmatically set, but translatable, strings.
2021-04-16 14:38:39 +02:00
Adriaan de Groot
35f4a81768
[libcalamares] Extend packages service API
...
- convenience method to install a (string) list of packages
(doesn't do the installation, but adds to GS the list, so
that the packages module can handle it).
2021-04-16 14:29:39 +02:00
Adriaan de Groot
a7f983db5f
[packagechooser] Add *packageNames* to package items
...
This is prep-work for connecting to the *packages* module by
simply installing packages straight from packagechooser, rather
than using a workaround.
2021-04-16 13:46:19 +02:00
Adriaan de Groot
dd52e10839
[packagechooser] Introduce a Config object
...
Rip out most of the ViewStep that deals with configuration,
move it to a Config object (not one that supports QML yet,
though), and massage the model a little.
2021-04-16 13:24:51 +02:00
Adriaan de Groot
59ea88f1ad
[packagechoose] Remove the *package* member
...
The single-values *package* member in a PackageItem was not used,
so remove it -- to show that it really isn't used. This is prep-
work for putting the package name *back*, as multi-valued,
and using the *packages* module.
2021-04-16 13:24:51 +02:00
Adriaan de Groot
2a9205ebd9
Merge branch 'issue-1673' into calamares
...
FIXES #1673
2021-04-16 11:55:57 +02:00
Adriaan de Groot
165e559866
[netinstall] Extend tests with mixed fallbacks
...
- insert bad or empty URLs in between successful loads,
check tail end of loading process.
2021-04-16 11:54:18 +02:00
Adriaan de Groot
21d24eeb8d
[netinstall] Add tests for fallback loading
...
- first success that has data is kept
2021-04-16 11:47:37 +02:00
Adriaan de Groot
4dd6ecd54e
[netinstall] Edge cases of zero, or unset, groups urls
...
- consumers may wait for loadingDone(), so always emit that
even if no URL list is set.
2021-04-16 11:41:04 +02:00
Adriaan de Groot
9569105575
[netinstall] Extend tests with YAML syntax error and no-files-at-all
2021-04-16 11:35:10 +02:00
Adriaan de Groot
850825f70f
[netinstall] Leave the last status on the queue
...
- Reaching the end means there's no data, but leave the last load result
(presumably bad-something) around rather than overwriting.
2021-04-16 11:32:04 +02:00
Adriaan de Groot
bd2fb552b5
[netinstall] let queue finish properly
...
- if the queue is emptied, there was no usable data; set
failure to NoData rather than BadData.
- FetchNextUnless::done() is done only if the parameter is true (that
is, it's done!); otherwise should continue.
2021-04-16 11:20:04 +02:00
Adriaan de Groot
3e26ae5ad6
Merge branch 'release-3.2.39.x' into calamares
2021-04-16 10:25:38 +02:00
Adriaan de Groot
cf0119ed4a
[initcpiocfg][plymouthcfg] Consistent find-plymouth code
...
- drop the debugging line because that has already been
logged by the call to `runCommand()` that backs
`target_env_call()`.
- use the same (top-level) function rather than having a
function and elsewhere a very-similar method.
2021-04-16 10:23:29 +02:00
Adriaan de Groot
039370d410
Merge pull request #1675 from erikdubois/calamares
...
Display manager module adding fvwm3 to main.py
2021-04-14 13:17:56 +02:00
Adriaan de Groot
af12583122
Merge branch 'calamares' into calamares
2021-04-14 13:17:34 +02:00
Adriaan de Groot
fea9886683
Merge pull request #1674 from killajoe/patch-1
...
[displaymanager] Add sway
2021-04-14 13:16:45 +02:00
Adriaan de Groot
5241e25ae8
Changes: pre-release housekeeping
2021-04-14 13:05:11 +02:00
Adriaan de Groot
67effe4214
[netinstall] check in test that loading did not time out
2021-04-14 13:05:11 +02:00
Adriaan de Groot
bd118bb457
[netinstall] Massage test data
...
- hidden groups aren't counted at all
- count() at top-level of the model counts groups
2021-04-14 13:05:11 +02:00
Adriaan de Groot
dfedc0fb21
[netinstall] Extend tests
...
- add an "empty" groups file
- run an event loop to give the loader the opportunity to load
2021-04-14 13:05:11 +02:00
Adriaan de Groot
a21665011f
[netinstall] The status is ready (done) when the queue is done
...
- Don't signal ready every time data is sent to the model, since
if the model ends up empty, loading will continue with the next
fallback entry.
2021-04-14 13:05:11 +02:00
Adriaan de Groot
294d07db7b
[netinstall] When starting to load YAML data, set appropriate status
...
- if a list is required, then we don't have data yet and should complain;
otherwise we're OK even if no data is ever added.
2021-04-14 13:05:11 +02:00
Adriaan de Groot
5af37b0be3
[netinstall] Stub of tests for fallback-loading
2021-04-14 13:05:11 +02:00
Adriaan de Groot
3c398bd15e
[netinstall] Only wrap-up if the packages list is OK
...
Avoid situation where the YAML is ok but doesn't contain
a list of netinstall packages, so the packages list (the model)
is still empty.
FIXES #1673
2021-04-14 13:05:11 +02:00
Erik Dubois
9651cc0cd7
Update main.py
2021-04-13 17:47:02 +02:00
Erik Dubois
0cbbbf811a
Merge pull request #1 from calamares/calamares
...
updating
2021-04-13 17:45:27 +02:00
Johannes Kamprad
44ec9d14a6
Update main.py
...
adding sway to desktop_environments
2021-04-13 17:27:23 +02:00
Adriaan de Groot
3f1d12ccd8
[users] One more capitalization fix for autologin
...
FIXES #1672
2021-04-13 16:12:22 +02:00
Adriaan de Groot
2b8309eb04
[users] Add tests for autologin settings
...
- four possibilities for old and new keys
- 6e is the check for not-actually-set, to track defaults
2021-04-13 16:11:57 +02:00
Adriaan de Groot
adb9f37cca
[locale] Set *locale* GS key when needed
...
The code path for setting the locale / language automatically
emits currentLanguageStatusChanged(), but the code that updates
GS connects to currentLanguageCodeChaged(). This was altered in
the 3.2.28 release cycle. Since then, automcatic locale selection
wasn't setting *locale* in GS, so that a click-through kind of
locale selection would not set it; then the packages module
has no *locale* setting for localization packages.
The combination of status and code signals (machine- and human-
readable) is ok. Introduce a setter to the language that does
the necessary signalling, so that setting the language automatically
also DTRT.
FIXES #1671
2021-04-13 14:03:31 +02:00
Adriaan de Groot
ea61ac4386
[locale] Set *locale* GS key when needed
...
The code path for setting the locale / language automatically
emits currentLanguageStatusChanged(), but the code that updates
GS connects to currentLanguageCodeChaged(). This was altered in
the 3.2.28 release cycle. Since then, automcatic locale selection
wasn't setting *locale* in GS, so that a click-through kind of
locale selection would not set it; then the packages module
has no *locale* setting for localization packages.
The combination of status and code signals (machine- and human-
readable) is ok. Introduce a setter to the language that does
the necessary signalling, so that setting the language automatically
also DTRT.
FIXES #1671
2021-04-12 17:21:33 +02:00
Adriaan de Groot
4912de5893
[partition] reduce warnings with unsafe-option
...
- Move variables closer to where they are needed
- Do the winnowing / selection always, but in unsafe mode return
the un-winnowed list of devices
- Massage build documentation a little
2021-04-09 13:32:48 +02:00
Adriaan de Groot
a6406ac41b
Merge branch 'release-3.2.39.2' into calamares
2021-04-06 11:49:48 +02:00
Anubhav Choudhary
5691f95833
[logUpload] Added one more test
2021-04-02 23:50:41 -06:00
Calamares CI
3444546159
i18n: [python] Automatic merge of Transifex translations
2021-04-02 16:32:15 +02:00
Calamares CI
9230bd1842
i18n: [desktop] Automatic merge of Transifex translations
2021-04-02 16:32:15 +02:00
Calamares CI
6bcf4995c9
i18n: [calamares] Automatic merge of Transifex translations
2021-04-02 16:32:14 +02:00
Adriaan de Groot
5c5c7f28dc
Changes: cut down changelog to just this release
2021-04-02 16:30:15 +02:00
Adriaan de Groot
db51e813fb
Merge branch 'release-3.2.39.2' into calamares
2021-04-02 16:25:31 +02:00
Adriaan de Groot
8a413866a1
[calamares] Make --version print extended versioning information
2021-04-02 16:05:26 +02:00
Adriaan de Groot
21f52f9dc1
[calamares] Remove overly-spaced debug (SubEntry does the right thing)
2021-04-02 15:56:42 +02:00
Adriaan de Groot
18b805d43f
[keyboard] Set initial values for model, layout, variant
...
When loading the lists, no initial string-value was being
set for the model, layout and variant; the configuration
could pass right through and pick up empty strings instead.
If the user does not change the model, the UI would show
"pc105" but the internal setting would still be empty.
FIXES #1668
2021-04-02 15:51:24 +02:00
Anubhav Choudhary
b897619558
[logUpload] Added some basic tests
2021-04-02 07:40:03 -06:00
Adriaan de Groot
b191f39bdf
[keyboard] Simplify config-loading
...
The machinery in `setConfigurationMap()` was just duplicating
checks already in place in the `getString()` and `getBool()`
methods, and there's no special need for efficiency here,
so prefer the more readable and short code.
("efficiency" here means "we're saving one method call in
case the configuration is not set")
2021-04-02 15:38:41 +02:00
Adriaan de Groot
e7b39303e4
Changes: pre-release housekeeping
2021-04-02 13:13:36 +02:00
Adriaan de Groot
8949b079e1
[users] Fix autologin-setting from config file
...
SEE #1668
2021-04-02 13:11:16 +02:00
Anubhav Choudhary
c73e9ec89f
[logUpload] Ran styleScript
2021-04-01 01:05:55 -06:00
Anubhav Choudhary
c1aa0b581e
[logUpload] suggestionsAndFixes-part3
...
- Resolved the problem of incomplete log upload
- sizeLimit = 0 fixed (turns off paste functionality)
- Documentation update
- sizeLimit < 0 now needs no hardcoded upper limit
- Calamares::Branding::uploadServerFromMap() serves sizeLimit in bytes
2021-04-01 00:25:37 -06:00
Artem Grinev
9302ad1468
[partition] Erase disk FS choice
2021-03-31 20:15:02 +04:00
Anubhav Choudhary
b42f86f20f
[logUpload] suggestionsAndFixes-part2
2021-03-30 08:28:30 -06:00
Anubhav Choudhary
d109fc5856
[logUpload] suggestionsAndFixes
2021-03-30 08:13:29 -06:00
Adriaan de Groot
13abe2a5de
Merge branch 'release-3.2.39.1' into calamares
2021-03-30 12:07:46 +02:00
Adriaan de Groot
c013036f31
CI: automate signing the tag and tarball
...
- Get a signature on CHANGES at the start, so that the key
is cached by gpg; that way the tag-signing has the key, and
will not time-out (which breaks tarball generation, and
means that I need to **watch** the release script, rather
than fire-and-forget).
2021-03-30 11:52:05 +02:00
Adriaan de Groot
1184229c4a
Changes: pre-release housekeeping
2021-03-30 11:29:38 +02:00
Adriaan de Groot
9d4c2bf1c7
[displaymanager] Fix mismatch in spelling of "autologinUser"
...
In 4ffa79d4cf , the spelling
was changed to consistently be "autoLoginUser" in the *users*
module, but that changed the Global Storage key as well,
and the *displaymanager* module wasn't changed to follow.
2021-03-30 11:27:51 +02:00
Erik Dubois
d19c3b5458
Update main.py
...
Typo
2021-03-30 11:27:51 +02:00
Erik Dubois
f8494f27d5
displaymanager from arcolinux
2021-03-30 11:27:51 +02:00
Anubhav Choudhary
6a6557e320
[logUpload] fixes
2021-03-29 13:22:56 -06:00
Anubhav Choudhary
6726a926a4
[logUpload] Configurable upload size limit
...
A key 'sizeLimit' added to uploadServer field in branding.desc to limit the size of logFile to upload.
2021-03-29 12:44:34 -06:00
Adriaan de Groot
7a26143fbc
[partition] All action-changes should update next
2021-03-29 15:52:55 +02:00
Adriaan de Groot
bf7b41f548
[libcalamares] Document the Once class for logging
2021-03-29 15:31:41 +02:00
Adriaan de Groot
1fe337d6ed
[partition] Improve logging of device-checking
...
- Avoid lots of function headers between the checks applied to
each individual device.
2021-03-29 15:25:57 +02:00
Adriaan de Groot
d4f28e863f
[libcalamares] Allow rvalue Once to be used in logging
2021-03-29 15:23:55 +02:00
Adriaan de Groot
785042ccf3
[partition] Improve formatting of logging while loading configuration
2021-03-29 14:41:56 +02:00
Adriaan de Groot
0446f03613
[partition] Remove overly-chatty debugging from fs-name-lookup
2021-03-29 14:38:39 +02:00
Adriaan de Groot
7b09344a8b
[partition] Update next-button
...
You'll need a VM with 2 disks to demonstrate:
- Configure Calamares to pick "none" as initial action on
the partition page (this is a safe choice),
- Enter partition page,
- No action is selected, and the next> button is greyed out.
- Click erase; notice next> is now available.
- Change devices, notice no action is selected, but next>
is still available. Clicking on it, though, does nothing.
When changing to "no action", update the next-button's
availability.
2021-03-29 14:24:56 +02:00
Adriaan de Groot
70bf033dc0
[partition] Improve logging readability
...
- The entire queue is one long output, so print them with SubEntry
2021-03-29 14:17:40 +02:00
Adriaan de Groot
1155b6fc3d
[partition] Improve debug-output a little
2021-03-29 14:14:05 +02:00
Calamares CI
4d0cae4a9b
i18n: [python] Automatic merge of Transifex translations
2021-03-29 14:06:43 +02:00
Calamares CI
74ce0ba84d
i18n: [desktop] Automatic merge of Transifex translations
2021-03-29 14:06:43 +02:00
Calamares CI
777b582e5b
i18n: [calamares] Automatic merge of Transifex translations
2021-03-29 14:06:42 +02:00
Adriaan de Groot
0ec77f5d85
[partition] Warnings-- (uninitialized value)
2021-03-29 11:06:16 +02:00
Adriaan de Groot
df1d7dea61
[partition] Warnings--
...
Avoid the extra indirection through the otherwise-unused
prettyGptType(const QString&), construct table of names
only on first call to avoid static-initialization order
(though that's not important here).
2021-03-29 11:03:37 +02:00
Adriaan de Groot
0ccd55e33f
[libcalamares] Warn (python only) about unknown GS keys
...
This makes it easier to spot problems where key-names are mis-spelled
in Python (or other modules change a name and it's not applied
to consumers)
2021-03-29 10:50:32 +02:00
Adriaan de Groot
b04d59ba2e
[libcalamares] More variant->python translations
...
- There's still 49 enumeration values not handled, leading to
an annoying Clang warning, but there's just no **point**
in listing them all: that's what 'default' is for.
2021-03-29 10:46:28 +02:00
Adriaan de Groot
42d00ffe38
[displaymanager] Fix mismatch in spelling of "autologinUser"
...
In 4ffa79d4cf , the spelling
was changed to consistently be "autoLoginUser" in the *users*
module, but that changed the Global Storage key as well,
and the *displaymanager* module wasn't changed to follow.
2021-03-29 10:30:56 +02:00
Adriaan de Groot
af282e092d
Changes: document partition fslabel
2021-03-29 10:24:39 +02:00
Adriaan de Groot
53beea6061
CMake: partial revert of updated versioning
...
- Keep the project() version as literal, drop the script-mode changes,
to keep existing (weird?) build-and-packaging hacks working.
- Do switch to unified versioning-git-annotations CMake module,
do drop the "rc" from version numbers.
2021-03-29 10:08:20 +02:00
Adriaan de Groot
94bd17ecf5
Merge pull request #1664 from erikdubois/patch-1
...
[displaymanager] Update main.py
2021-03-28 21:30:58 +02:00
Adriaan de Groot
b95b3dbc78
Merge branch 'ff-fslabel' into calamares
...
Fix build with newer KPMCore (still builds on Netrunner 19).
2021-03-28 18:28:28 +02:00
Adriaan de Groot
22dbe60bb9
[partition] Use operations-API (available in all supported KPMCore versions)
2021-03-28 18:07:32 +02:00
Adriaan de Groot
47c167c043
[partition] KPMCore removed some headers
2021-03-28 17:56:54 +02:00
Adriaan de Groot
e2113eda38
[partition] trust in AutoMoc
2021-03-28 17:52:44 +02:00
Erik Dubois
51d414d6ef
Update main.py
...
Typo
2021-03-28 17:07:09 +02:00
Adriaan de Groot
71dc9349ad
Merge branch 'improve-versioning' into calamares
2021-03-27 15:49:31 +01:00
Adriaan de Groot
fac0c90de1
Merge branch 'ff-fslabel' into calamares
...
This was a PR from Lisa Vitolo a long time ago, to expose
FS labels in the UI, and it got lost in transition.
Five-years-too late thanks.
2021-03-27 15:44:56 +01:00
Adriaan de Groot
3c7d97403e
[plasmalnf] Apply coding style
2021-03-27 15:44:26 +01:00
Adriaan de Groot
1eba562d07
[partition] Apply coding style
2021-03-27 15:43:32 +01:00
Adriaan de Groot
9c2a26bed5
[libcalamares] Apply coding style
2021-03-27 15:41:58 +01:00
shainer
1007680931
Fix error handling in ChangeFilesystemLabelJob
2021-03-27 15:40:07 +01:00
shainer
c035029f38
Make sure we always set the filesystem label.
...
In particular, we need a separate Job class to set the label; this
is invoked after we formatted a partition, and when no other changes
to the partition have been requested in the Edit dialog.
2021-03-27 15:38:46 +01:00
Adriaan de Groot
3d49379bec
[partition] Chase API change in createNewPartition()
...
The partition- and filesystem-label setting code was already there,
but not in the call to createNewPartition(); now we set the
FS label twice (once in the call, once afterwards)
2021-03-27 14:45:34 +01:00
shainer
b602d423c7
Allow users to set/edit filesystem labels.
...
When creating or editing a new formatted partition, allow
to set a filesystem label (16 chars maximum). Modify
the KPMHelpers to accept it as a new parameter. Partitions
created by default may get a meaningful label too.
2021-03-27 14:31:06 +01:00
Adriaan de Groot
ac8f99a206
[libcalamares] Don't double-include FileSystem
...
The partitioning header 'FileSystem.h' is for KPMCore support;
it is already included by Global.h and guarded by ifdefs for
KPMCore. Do not unconditionally include it from the implementation.
2021-03-27 02:38:45 +01:00
Adriaan de Groot
38ec357bd5
CMake: simplify development-version string
...
- merge the (not-installed) date-stamp and git-version
files into ExtendedVersion, turn things into functions
- drop support for CVS (wut?)
- don't mention the branch, in git-versioning, because the
hash is enough to find whatever
- don't need external program to find date, use `string(TIMESTAMP...)`
2021-03-26 18:25:51 +01:00
Adriaan de Groot
2be9aece3f
CMake: tweak version-handling
...
- separate out the version into a variable (again -- this was moved **into**
project() long ago, but now there's a desire to have the value before
reaching the project() command)
- rename CALAMARES_VERSION_RC to something more sensible.
2021-03-26 18:25:51 +01:00
Adriaan de Groot
61f579b591
CMake: drop rc from version number
...
In current development, RC is effectively 0 (for a release)
or 1 (during development). It doesn't add anything to suffix
'rc1' to the version number. While here, remove the BUILD_RELEASE
check (because nothing ever sets it) and instead rely on
the RC setting instead to decide for long-calamares-version
2021-03-26 14:44:28 +01:00
Adriaan de Groot
c2d759f11e
CMake: make show-version available in all builds
2021-03-26 14:33:44 +01:00
Adriaan de Groot
2ebf9124d1
CMake: move check for skipped-modules to all subdirs
...
The check for skipping a subdirectory was applied to Python subdirs,
not to C++ subdirs. This meant that a skipped module would notice
only in calamares_add_plugin() that it should be skipped. The **rest**
of the CMakeLists.txt in the to-be-skipped modules' subdirectory
was not skipped, and so a test might be added for a module that
was skipped. Depending on how the test consumes the code/module
under test, that might fail to link.
Example module is *initramfs*. Reported by yonggan.
2021-03-26 13:37:02 +01:00
shainer
1cfdc8044c
Display current filesystem label as a column in the main partition view.
2021-03-23 16:30:31 +01:00
Adriaan de Groot
405fc3dfc2
Changes: document new merges
2021-03-23 12:28:00 +01:00
Adriaan de Groot
7e8ef85dc9
Merge branch 'issue-1635' into calamares
...
FIXES #1635
2021-03-23 12:10:49 +01:00
Adriaan de Groot
559b79f920
[partition] Use (better documented) filesystem-use API
2021-03-23 12:09:06 +01:00
Adriaan de Groot
10bec1d970
[libcalamares] Expand API to allow clearing out the filesystem use
2021-03-23 12:09:01 +01:00
Adriaan de Groot
9665af0e5a
[libcalamares] Make keys case-insensitive (as documented)
2021-03-23 12:09:01 +01:00
Adriaan de Groot
48541629f9
[libcalamares] Extend tests to handle case-insensitive
2021-03-23 12:09:01 +01:00
Adriaan de Groot
f3681a533e
[libcalamares] Rearrange filesystem-use API
...
- make the functies that take a GS* first-class
- use the convenience functions from JobQueue for the others
- inline so only the explicit-GS* functions are in the library
2021-03-23 12:09:01 +01:00
Adriaan de Groot
488631824d
[libcalamares] Make the KPMCore global storage filesystem handlers inline
2021-03-23 12:09:01 +01:00
Adriaan de Groot
75eb2c3cd4
[libcalamares] Add tests for filesystem_use service
2021-03-23 12:08:52 +01:00
Adriaan de Groot
afdf431b77
[libcalamares] Add partition service for managing global storage
...
- the global storage key filesystem_use has a structured meaning,
so give it a (trivial-ish) API for reading and writing.
2021-03-23 12:08:52 +01:00
Adriaan de Groot
1e1b7b7ece
[libcalamares] Introduce a convenience getter for GlobalStorage
2021-03-23 12:07:11 +01:00
Adriaan de Groot
cc6a598c61
Merge pull request #1658 from erikdubois/calamares
...
displaymanager from arcolinux
2021-03-23 12:04:06 +01:00
Adriaan de Groot
88aa1755ce
CMake: split out skip-module-checking to its own cmake module
...
The skip-checking is now in the functions for adding plugins and
subdirectories, so that third-party building should get it
as well, for free. Since AddModuleSubdirectory and AddPlugin
use the newly split-out module, handling SKIP_MODULES and USE_*
consistently across module repositories is now easier.
While here, make accumulating-the-skipped-modules explicit.
2021-03-23 01:47:10 +01:00
Adriaan de Groot
a64a54ff04
CMake: split out global skip-modules checking
...
There are two ways to skip building a module:
- SKIP_MODULES (individually listed)
- USE_* (pick one from a collection)
Move the handling for those ways to a separate function, so that it
can be re-used in the calamares-extensions module too, or other
external module repositories.
2021-03-23 01:45:03 +01:00
Adriaan de Groot
0bf1df72cd
CMake: report Python module name without subdirectory
...
FIXES ##1641
2021-03-22 13:49:04 +01:00
Adriaan de Groot
dc0164d508
[libcalamares] Also install the version header
2021-03-22 13:36:52 +01:00
Adriaan de Groot
b5788d4b17
CMake: be more verbose on developer machines
...
This change is relevant only if you build Calamares and some out-of-tree
modules (e.g. calamares-extensions) on the same machine where CMake
caches files in the developer's ~/.cmake/packages . If the user
packages registry kicks in the include files won't be found, and
the targets are not defined.
2021-03-22 13:26:40 +01:00
Adriaan de Groot
3600c67485
CMake: remove mention of the os-modules
...
The modules (and the need for a specific USE_os) have moved to
calamares-extensions.
2021-03-22 12:09:05 +01:00
Adriaan de Groot
6d4a0a1ba3
i18n: update the English source files
2021-03-19 14:38:13 +01:00
Adriaan de Groot
ba89f03d8e
Changes: post-release housekeeping
...
- mention the *packages* service in CHANGES for the previous release
2021-03-19 14:37:38 +01:00
Calamares CI
4243d5f41a
i18n: [python] Automatic merge of Transifex translations
2021-03-19 14:23:08 +01:00
Calamares CI
64f9a2df26
i18n: [calamares] Automatic merge of Transifex translations
2021-03-19 14:23:07 +01:00
Adriaan de Groot
779e5ecf8f
[libcalamaresui] Factor out the pastebin UI
...
- offer a convenience method for showing a popup and
URL information and copying the URL to the clipboard
- use that from ViewManager (on failure) and DebugWindow (on demand)
2021-03-19 14:17:34 +01:00
Adriaan de Groot
981e96ea7f
[calamares] Redo debug window tools
...
- make the tools tab buttons along the bottom row
- show the global storage tab by default
This costs little screen real-estate, makes the tools much more
visible and useful.
2021-03-19 13:51:30 +01:00
Adriaan de Groot
c54e417ff3
[calamares] Add a 'send log' button to the debug window
...
FIXES #1660
2021-03-19 13:38:06 +01:00
Adriaan de Groot
668921543a
[libcalamaresui] Convenience method to check if paste would do anything
2021-03-19 13:36:40 +01:00
Adriaan de Groot
63e61e9924
Changes: pre-release housekeeping
2021-03-19 13:25:45 +01:00
Adriaan de Groot
5ed1dff655
Merge branch 'issue-1579' into calamares
...
FIXES #1579
2021-03-19 13:13:27 +01:00
Adriaan de Groot
3588f06767
[netinstall] Document groupsUrl with multiple entries
2021-03-19 12:49:37 +01:00
Adriaan de Groot
fdfe52efe2
[netinstall] Improve loader queue API a bit
...
- use load() to start loading
- the FetchNextUnless class is useful in more spots in
the loading process
- set status explicitly on success (otherwise, a failure in a
previous URL would leave a failure message lying around even
when the module shows something useful)
2021-03-19 12:30:09 +01:00
Adriaan de Groot
03d086a233
[netinstall] Missing initialisations, split out slot
...
- m_queue was not initialized to nullptr, crashes
- split queue-is-done to a separate slot rather than a lambda
- prefer queueing calls to fetchNext(), for responsiveness
2021-03-19 11:46:46 +01:00
Erik Dubois
0379fa9b7d
displaymanager from arcolinux
2021-03-17 14:58:50 +01:00
Adriaan de Groot
404a9ef98a
[netinstall] Split off requesting netinstall data into a queue-manager
...
This is the actual "meat" of the branch, which makes the
netinstall module request one URL at a time until one succeeds.
2021-03-17 00:09:15 +01:00
Adriaan de Groot
186d32ebee
[partition] More missing ;
2021-03-16 16:11:02 +01:00
Adriaan de Groot
2b4bc7adf4
[partition] Apply newer formatting tool
2021-03-16 16:08:13 +01:00
Adriaan de Groot
3b9c0bdf91
CI: don't allow clang-format 7 any more
2021-03-16 16:06:46 +01:00
Adriaan de Groot
bb426ebac4
[partition] Add missing ; (and apply coding style)
2021-03-16 16:01:25 +01:00
Adriaan de Groot
9341a84820
[libcalamares] Make the RETRANSLATE macros more statement-line
...
Require a ; after RETRANSLATE macros. They are statement-like;
this makes it easier for some of them to be recognized by
clang-format and resolves some existing weird formatting.
2021-03-16 14:55:26 +01:00
Adriaan de Groot
603a7106b3
[netinstall] Move package-listing wrangling to the Config object
...
Now all the business logic is in Config, the door is open to
building a QML-ified netinstall module. I'm not sure that
would be worth it: packagechooser offers more space for a
nice UI and should be QML'ed first.
2021-03-16 14:51:01 +01:00
Adriaan de Groot
9acd2fe458
[netinstall] Use the packages service
2021-03-16 14:38:52 +01:00
Adriaan de Groot
f1446736f8
[libcalamares] Expand tests a little
...
- do some additions and check they work
- drop the ";add" annotation on the source, this is not
needed in the current situation with only adds available.
2021-03-16 14:37:13 +01:00
Adriaan de Groot
5b609565e2
[libcalamares] Make Packages API more flexible
...
- pass in the GS object; this makes mostly **testing** much easier
2021-03-16 14:14:02 +01:00
Adriaan de Groot
b868894371
[libcalamares] Start a packages service for netinstall and others
2021-03-16 13:50:15 +01:00
Adriaan de Groot
6662cb5f2d
[netinstall] Swap parameters to makeSourceItem and document it
2021-03-16 13:17:33 +01:00
Adriaan de Groot
79b4f918fc
[netinstall] Apply coding style
2021-03-16 13:10:35 +01:00
Adriaan de Groot
8e8525a941
[netinstall] Simplify slots in the UI page
2021-03-16 13:10:09 +01:00
Adriaan de Groot
a90f510b85
[libcalamares] Convenience for logging subentries
...
For methods that log a bunch of things, and which want to
consistently use SubEntry, but don't know when the **first**
log entry is within the method, Logger::Once can be used
to log one regular message (with function info) and the
rest are subentries.
2021-03-15 22:45:29 +01:00
Adriaan de Groot
72f67286a4
[libcalamares] Preserve type CDebug() if possible.
2021-03-15 21:41:27 +01:00
Adriaan de Groot
8fe2e1f68a
[finished] Make the debug-log less cryptic
2021-03-15 21:22:20 +01:00
Adriaan de Groot
a3a1350dc7
[libcalamares] Don't complain if there isn't a preset
...
- If the module knows about a preset, then it should be registered
even if there is not a value set for it specifically; this avoids
complaints from isEditable() for fields that are known, but
do not have a preset. (Reported by Anke)
2021-03-15 21:18:10 +01:00
Adriaan de Groot
a4c1f07521
[libcalamares] Reduce indentation-depth in apply() through early-return
2021-03-15 21:11:01 +01:00
Adriaan de Groot
33fec86ef6
[welcome] Improve logging of requirements-checking
...
- less chatty when 0-results come in
- compress the welcome debug to one output chunk
2021-03-15 20:53:59 +01:00
Adriaan de Groot
f8afb15c4c
[libcalamaresui] Improve logging for QML modules
...
- mention which instance produces warnings
- tag additional debugging from the same method with Logger::SubEntry
2021-03-15 20:47:27 +01:00
Adriaan de Groot
6556f96442
Merge branch 'calamares' into issue-1579
...
Bring the branch up-to-date with the past few releases,
so it can be merged more easily once complete.
2021-03-15 13:10:21 +01:00
Adriaan de Groot
416c2c9689
[usersq] Reflect editable in the QML
...
- if presets prevent a field from being editable, don't allow
the user to edit the field
- while here, mention the changes in usersq
2021-03-15 12:51:42 +01:00
Adriaan de Groot
44ac33845d
Merge branch 'fix-usersq' into calamares
2021-03-15 12:41:01 +01:00
Adriaan de Groot
46f7e6c131
Merge branch 'hotfix-38' into calamares
2021-03-15 12:39:41 +01:00
Adriaan de Groot
8348bd2bb7
[usersq] Call setters for checkboxes
2021-03-15 12:36:54 +01:00
Adriaan de Groot
202fe46182
Changes: describe other fixes as well
2021-03-15 12:02:45 +01:00
Adriaan de Groot
d2c0c8d638
[users] Grab hostname from config on creation
2021-03-15 11:53:14 +01:00
Adriaan de Groot
b17e01edff
[usersq] Call setters to move values back from QML to the C++ side
2021-03-15 11:45:57 +01:00
Calamares CI
df67f2bb59
i18n: [desktop] Automatic merge of Transifex translations
2021-03-15 10:34:25 +01:00
Calamares CI
f02cb1a8ea
i18n: [calamares] Automatic merge of Transifex translations
2021-03-15 10:34:25 +01:00
Adriaan de Groot
1c8a72dcac
Changes: pre-release housekeeping
2021-03-15 10:28:57 +01:00
Adriaan de Groot
b9ad701a5c
[calamares] Change .desktop invocation
...
FIXES #1653
2021-03-15 10:25:25 +01:00
Adriaan de Groot
b96ad4b166
[usersq] Hook up QML fields and the Config object
...
For properties, we can bind directly to the Config properties
for loginName, fullName, and also to checkbox-style (bool)
properties and passwords.
2021-03-15 00:24:10 +01:00
Adriaan de Groot
e60f8bcd06
[usersq] Tidy job creation and unnecessary code
2021-03-15 00:24:10 +01:00
Adriaan de Groot
4ffa79d4cf
[users] In code, consistently [aA]utoLogin as name
...
There was a mix of autologin and autoLogin, leading to confusion
in the code. QML is sensitive to this, so go to one consistent name.
(Although the names of the settings in the `.conf` file are
different again)
2021-03-15 00:24:10 +01:00
Adriaan de Groot
287047fe1a
[users] Tidy up job creation -- leave it to Config
2021-03-14 23:52:12 +01:00
Adriaan de Groot
e9908c84c2
Changes: document mount/fstab changes
2021-03-14 23:46:11 +01:00
Adriaan de Groot
98d42719e1
Merge pull request #1622 from Chrysostomus/btrfs-subvol
...
[fstab][mount] Create and mount btrfs subvolumes in generalized manner
2021-03-14 23:38:30 +01:00
Adriaan de Groot
413e160368
Changes: post-release housekeeping
2021-03-14 23:36:31 +01:00
Adriaan de Groot
a5091c8c3b
Docs: massage the release-howto notes
2021-03-14 21:49:15 +01:00
Adriaan de Groot
1998405dbb
[libcalamaresui] Fix up test for logfile
...
- this test would fail if the logfile already exists for
any reason (including "I just ran the test")
- remove the file before expecting an empty logfile
- improve messages; a missing logfile is not a "things cannot
work" situation, it's a warning
2021-03-14 21:37:31 +01:00
Adriaan de Groot
cdbc5a7b4b
Merge pull request #1652 from Conan-Kudo/rm-urpmi
...
[packages] Drop urpmi support
2021-03-14 17:41:10 +01:00
Adriaan de Groot
f62bb70b28
CI: add -m <module> shortcut to test individual modules
2021-03-14 16:36:00 +01:00
Adriaan de Groot
cc310a04b8
[users] Fix schema to match actual field names
2021-03-14 16:32:02 +01:00
Calamares CI
d9ab35f4cc
i18n: [python] Automatic merge of Transifex translations
2021-03-14 16:17:09 +01:00
Calamares CI
3fafeaf09a
i18n: [dummypythonqt] Automatic merge of Transifex translations
2021-03-14 16:17:09 +01:00
Calamares CI
8625847866
i18n: [desktop] Automatic merge of Transifex translations
2021-03-14 16:17:09 +01:00
Calamares CI
d3f84980b3
i18n: [calamares] Automatic merge of Transifex translations
2021-03-14 16:17:09 +01:00
Adriaan de Groot
0716f92f62
CMake: update translations lists
...
- ne_NP, id_ID and zh seem to duplicate existing languages, and
I'm not sure why they were requested in the first place.
2021-03-14 16:12:55 +01:00
Adriaan de Groot
8c7e214376
[users] Make the example config usable
...
Although the example configurations shouldn't really be used
as a sample of how to configure **your** Calamares for your
distro, many distro's do just copy the examples. So leave
traces of the OEM-configuration settings in the example,
and give the standard configuration a 'nothing changed'
set of presets.
2021-03-14 16:07:04 +01:00
Adriaan de Groot
b4485f4dc9
Changes: mention the .desktop file
2021-03-14 16:05:04 +01:00
Adriaan de Groot
9ae87b7fb7
[calamares] Change .desktop invocation
...
FIXES #1653
2021-03-14 15:56:22 +01:00
Calamares CI
d3a27f3c3c
i18n: [python] Automatic merge of Transifex translations
2021-03-14 15:51:01 +01:00
Calamares CI
b30eaaddec
i18n: [calamares] Automatic merge of Transifex translations
2021-03-14 15:51:01 +01:00
Adriaan de Groot
c767311062
Changes: pre-release housekeeping
2021-03-14 14:37:52 +01:00
Adriaan de Groot
9295c91128
Merge branch 'issue-942' into calamares
...
FIXES #942
2021-03-14 14:29:26 +01:00
Adriaan de Groot
caf18321df
[users] Adjust UI to is-field-editable based on presets
2021-03-14 14:20:10 +01:00
Adriaan de Groot
7bae625f46
[users] Pick up UI changes based on the values from Config
2021-03-14 14:14:29 +01:00
Adriaan de Groot
b4a21d7aca
[libcalamares] Add macro CONFIG_PREVENT_EDITING to handle uneditable fields
...
Boilerplate code for avoiding accidental setting of an internal
field when the UI is editable and the underlying data isn't.
2021-03-14 13:30:26 +01:00
Adriaan de Groot
3ea796d009
[users] 'undo' changes to values if the UI is wonky
...
- you can still call set*(), eg. from the UI, when the field is
not editable. Although the code previously ignored the change,
this would lead to a mismatch between what the UI is showing
(the changed value) and what the Config has (old value).
Emit a changed-signal (notify) with the old value so that the
UI is changed *back* as soon as possible.
2021-03-14 12:27:59 +01:00
Adriaan de Groot
9fcf9b5fa8
[users] Pick up values from Config object on startup
...
- Previously, we 'knew' that the values in Config were empty,
so didn't have to set them from the Config when building
the (widget) page
2021-03-14 12:14:33 +01:00
Adriaan de Groot
941cc9c48b
[users] Match presets to the actual name of fields
2021-03-14 12:14:33 +01:00
Adriaan de Groot
2e90a8d829
[libcalamares] Report preset mis-configurations
...
- warn about fields applied twice (program error)
- warn about fields not used (configuration error)
- add operator<< for "clean" looking preset application
2021-03-14 12:14:33 +01:00
Adriaan de Groot
d8dff3dc65
[libcalamares] Replace loadPresets() with an applicative style
...
Build up the list of known presets by what the Config-object
expects, not by what the Config file provides. This allows
early detection of mis-matched configurations.
Presets can only apply to Q_PROPERTY properties, and the
preset must match the property name.
2021-03-14 12:14:33 +01:00
Adriaan de Groot
8b10a9cfc2
[libcalamares] Add isEditable() check
...
This adds support for checking whether a field is editable;
Config objects should reject changes if the field is not
editable. There is an "unlock" setting to override the
check, although this is currently always locked.
2021-03-14 12:14:33 +01:00
Adriaan de Groot
448e478b6d
[users] Use base Config and its Preset-handling
2021-03-12 13:54:06 +01:00
Adriaan de Groot
0be5e04c2e
[libcalamares] Add a base class for Config-objects
...
This is an optional (until 3.3) base class, which can handle
Presets consistently for configurations.
2021-03-12 13:49:37 +01:00
Adriaan de Groot
381a4f9b53
[users] Add preset to users module Config
2021-03-12 13:25:16 +01:00
Adriaan de Groot
d9f2f5e988
[libcalamares] Start a 'presets' configuration datastructure
2021-03-12 13:16:36 +01:00
Adriaan de Groot
63fc1ecca3
Changes: document intention of this branch
2021-03-12 13:10:48 +01:00
Neal Gompa
d39f2b8c3e
[packages] Drop urpmi support
...
This code is essentially untested and unused, as OpenMandriva has been
using DNF for three years now.
Reference: https://www.openmandriva.org/en/news/article/switching-to-rpmv4
2021-03-11 06:32:49 -05:00
Adriaan de Groot
cb67c79203
Merge pull request #1651 from demmm/calamares
...
[finishedq] add license for svg file
2021-03-09 20:35:22 +01:00
demmm
a7b46a02eb
[finishedq] add license for svg file
2021-03-09 19:45:32 +01:00
Adriaan de Groot
98524708cc
[partition] Chase namespace change for Units
2021-03-09 19:45:12 +01:00
Adriaan de Groot
9f17d3fd12
[libcalamaresui] Paste the last 16KiB of the log file
...
- If Calamares is run more than once, reading the log file
can get you older / not relevant log messages. Get the tail
end instead.
2021-03-09 18:25:10 +01:00
Adriaan de Groot
980e5e13f8
Merge branch 'fixup-log-upload' into calamares
2021-03-09 18:22:51 +01:00
Adriaan de Groot
ea63f48c31
[libcalamares] Put the units in a nested namespace
...
- this makes it much easier to use the literal suffixes
by using the namespace rather than individual operators.
2021-03-09 18:21:58 +01:00
Adriaan de Groot
a1ed303820
[libcalamaresui] Add test for Paste
...
This tests only the termbin ("fiche") paste by sending it
a derpy fixed string. Prints the resulting URL, doesn't
verify in particular.
It'd be rude to run this test too often.
2021-03-09 17:55:10 +01:00
Adriaan de Groot
44ec8a7c0b
[libcalamaresui] Improve testability
...
- mark functions with STATICTEST so they can be compiled into a test
- move logfile-reading so we can call the pastebin-upload functions
with an arbitrary payload.
2021-03-09 17:22:48 +01:00
Adriaan de Groot
846d6abaa8
[libcalamaresui] Move message- and clipboard handling
...
- The Paste API promises just a (string) URL back, not
a whole message, so return just the URL from the
abstract API and the concrete (fiche) implementation.
- Set clipboard contents from the UI
- Build (translated) message in the UI code
2021-03-09 15:51:24 +01:00
Adriaan de Groot
81badc36f4
[libcalamaresui] Implement abstract doLogUpload() API
...
This is a "do the right thing" function, which then calls
the implementation-specific code for each type.
2021-03-09 15:42:21 +01:00
Adriaan de Groot
1ff854f05d
[libcalamaresui] Push upload to a more abstract API
...
- have a namespace Paste with just one entry point, which will handle
untangling type &c.
This doesn't compile, but indicates the direction to take the API
2021-03-09 15:32:46 +01:00
Adriaan de Groot
efec12d001
[libcalamares] Read structured upload-server info
...
- Use just type and url, since port can be specified in
a URL. Note that we only use host and port, not the
scheme (or the path, for that matter).
- Factor out understanding the *uploadServer* key to a function.
2021-03-09 15:24:02 +01:00
Adriaan de Groot
bce6f3f1b7
[libcalamaresui] Adjust paste code to desired API
...
Still doesn't compile because consumers are not ready.
2021-03-09 14:56:37 +01:00
Adriaan de Groot
3c6683bd98
[libcalamaresui] Rip out untyped data about upload server
...
This doesn't compile, but indicates the **type** information
desired about the (a) upload server.
2021-03-09 14:51:59 +01:00
Adriaan de Groot
f72436aa0a
[libcalamaresui] Drop RE-wrangling, compare hosts instead to detect valid paste URL
2021-03-09 14:41:58 +01:00
Adriaan de Groot
8af5fb5da5
[libcalamaresui] Simplify getting URL response
...
- get a QByteArray rather than going through a char[] buffer
- bytes-read is not important since the RE can only match if
there **are** that many characters.
2021-03-09 14:38:43 +01:00
Adriaan de Groot
1bf95eacb0
[libcalamaresui] Tidy the logging some more
2021-03-09 14:33:47 +01:00
Adriaan de Groot
260862fabc
[libcalamaresui] Move the format-string closer to where it is used
2021-03-09 14:31:46 +01:00
Adriaan de Groot
844831751d
[libcalamaresui] Factor out the reading of the log file
...
- this will be needed for other pastebins, too
2021-03-09 14:30:20 +01:00
Adriaan de Groot
92e36558fa
[libcalamaresui] Remove unnecessary shadowing in lambda
2021-03-09 14:25:40 +01:00
Adriaan de Groot
bc2435eb7d
[libcalamaresui] Apply coding style
2021-03-09 14:23:52 +01:00
Adriaan de Groot
fc8830ae4a
[libcalamaresui] Tidy logging
2021-03-09 14:23:27 +01:00
Adriaan de Groot
9154228421
Changes: adjust description of pastebin
2021-03-09 14:22:13 +01:00
Adriaan de Groot
1ebb807624
[calamares] Drop #warning about KDSAG
...
- it might not be very current, and it's *probably* better to
use dbus-activation / kf5dbus, but let's not call it
deprecated until very sure that the dbus version does the
right thing.
2021-03-09 13:57:21 +01:00
Adriaan de Groot
430b3b0722
REUSE: tag the schema file (badly, missing an email address)
2021-03-09 13:55:20 +01:00
Adriaan de Groot
5349e03ea9
REUSE: the CI actions are uninteresting
2021-03-09 13:52:13 +01:00
Adriaan de Groot
0b8ef49e7e
[calamares] Make debug-window available to QML
...
- Add a toggle() to the debug-window manager, for convenience
- Make the manager available to QML
- Use the debug-window manager (code imported from KaOS)
2021-03-06 23:11:41 +01:00
Adriaan de Groot
c00a382aea
[calamares] Refactor debug-window handling
...
Move the management of the (a?) DebugWindow to a separate
class, and hang on to that manager in CalamaresWindow.
This is prep-work towards making it available from QML as well.
2021-03-06 22:55:48 +01:00
Adriaan de Groot
992c673951
[calamares] Document how to hide the Quit button
...
The Quit button can have its own logic at a QML level for
show/hide. It **ought** to follow the *quitVisible* property,
but can do additional work. Here, document how a distro might
choose to hide the Quit button on the last page (generally,
that's the "finished" page).
2021-03-06 22:08:35 +01:00
Adriaan de Groot
44602d0237
[finishedq] CMake: missing keyword
2021-03-06 15:33:15 +01:00
Adriaan de Groot
83e6476be8
[finishedq] Tighten up requirements
2021-03-06 15:23:23 +01:00
Adriaan de Groot
e9384deb5d
[finishedq] Document the meaningful settings of the config file
2021-03-06 15:20:24 +01:00
Adriaan de Groot
bd775a16e2
[finished] Add a restart-anyway API to Config
...
It's possible to ignore the "user setting" for restart-now
and call doRestart(true) directly. This is intended for
use with specific UIs that make that choice clear for the user.
Hook up both [finished] and [finishedq] to the "traditional"
restart-if-the-box-is-ticked logic although the example
QML doesn't expose that box.
2021-03-06 13:51:45 +01:00
Adriaan de Groot
aa004503c5
[finished] Expand Config object's repertoire of notification-API
2021-03-06 13:38:02 +01:00
Adriaan de Groot
f8258f671b
[calamares] Navigation getting the wrong side
2021-03-06 13:14:40 +01:00
Adriaan de Groot
6f15b69917
Merge branch 'qml-resizing' into calamares
...
Make panel sizes consistent, so the QML-navigation can be used better.
2021-03-05 23:20:47 +01:00
Adriaan de Groot
08df3183dc
Merge branch 'qml-finished' into calamares
...
Improves the [finishedq] module &c to better support restart.
2021-03-05 23:20:23 +01:00
Adriaan de Groot
19874ebc3a
[finished] Document doRestart() better
...
- move all the 'really want restart' logic to restartNowWanted()
2021-03-05 23:19:56 +01:00
Adriaan de Groot
f94853eb28
[finishedq] Always restart if possible
2021-03-05 23:17:57 +01:00
Adriaan de Groot
075a28a06d
[finished] Log the doRestart() attempt
2021-03-05 22:59:53 +01:00
Adriaan de Groot
0d7c1ec130
[finishedq] Port QML back to using Config object
2021-03-05 22:59:04 +01:00
Adriaan de Groot
5b376b41bf
[finishedq] Chase business logic in Config object
2021-03-05 22:40:38 +01:00
Adriaan de Groot
3ad3a9adfc
[finished] Move the business logic to the Configt object
2021-03-05 22:27:24 +01:00
Adriaan de Groot
04145f49f8
[calamares] Factor out size-setting for QML panels
...
- Either orientation needs to have the same generic size-setting
code, for both navigation and progress panels.
2021-03-05 16:59:54 +01:00
Adriaan de Groot
82223431fa
[calamares] Pass orientation into panel-creation
...
- Add function for mapping panel sides to an orientation (H/V)
- Pass that into the creation functions
This is prep-work for handling vertical navigation and horizontal
progress reporting cleanly.
2021-03-05 14:21:19 +01:00
Adriaan de Groot
0f50085bb9
[calamares] Refactor sidebar creation
...
- None of these need to be methods of the main window,
and it can all be put tidy away as static free functions.
2021-03-05 14:01:28 +01:00
Adriaan de Groot
a8463a8763
[calamares] Prefer to expand main panel
...
- Don't let the navigation items grow if they are QML
(the Widget ones don't either) so the main panel takes
most of the space.
2021-03-05 13:35:00 +01:00
Adriaan de Groot
ab7f6abf02
[calamares] Decouple debug-window button
...
- Provide slots and signals for managing the debug-window,
so it can be used from QML as well.
2021-03-05 13:20:47 +01:00
Adriaan de Groot
473576991d
Changes: document contributors this round
2021-03-05 12:28:19 +01:00
Adriaan de Groot
1739d8f15f
Merge pull request #1647 from demmm/calamares
...
[finishedq] adding QML finished module
2021-03-05 12:24:16 +01:00
Adriaan de Groot
6a1e46d7f6
[libcalamaresui] Add properties to ViewManager to expose Settings
2021-03-03 16:06:53 +01:00
Adriaan de Groot
849da3f322
[libcalamaresui] The ViewManager is a UI component for QML, not core
2021-03-03 15:54:11 +01:00
Adriaan de Groot
c3860849c1
[libcalamaresui] Notify step number when modules are all loaded
...
- using the QML sidebar would not highlight the first step on startup,
only after next / prev would the highlight show up. Now, notify
when all the modules are loaded (and number 0 is active).
2021-03-03 15:43:11 +01:00
Adriaan de Groot
1496173b2c
CI: Add -Og for debug builds, for better ABI checking
2021-03-02 00:34:04 +01:00
Adriaan de Groot
3d58127234
CI: enable CPack
2021-03-02 00:34:04 +01:00
demmm
7acc8bcec3
[finishedq] adding QML finished module
...
module builds & runs, config connections are not registering
no errors
finishedq.qml is offering a different option though, running commands directly in qml
plasma-framework executer is used for that
2021-02-27 22:04:30 +01:00
Adriaan de Groot
cc3017be53
Merge pull request #1619 from deprov447/Upload_Install_Log
...
[libcalamaresui] Implementing LogUpload functionality from branding
2021-02-26 13:13:16 +01:00
Adriaan de Groot
0f87a4a91a
Changes: post-release housekeeping
2021-02-23 21:32:59 +01:00
Calamares CI
46ab3ac277
i18n: [python] Automatic merge of Transifex translations
2021-02-23 16:36:31 +01:00
Calamares CI
f9a8a9f588
i18n: [calamares] Automatic merge of Transifex translations
2021-02-23 16:36:31 +01:00
Adriaan de Groot
108e227eec
Changes: pre-release housekeeping
2021-02-23 16:33:47 +01:00
Adriaan de Groot
b30bb7ae0b
CI: note Linuxisms in the script
2021-02-23 16:33:38 +01:00
Adriaan de Groot
24e129a413
Merge branch 'issue-1634' into calamares
...
FIXES #1634
2021-02-23 16:17:57 +01:00
Adriaan de Groot
d3acc39d2d
Merge branch 'qml-finished' into calamares
2021-02-23 16:17:14 +01:00
Adriaan de Groot
a4682db987
[finished] Tidy up notification-at-end (and allow failed notifications)
2021-02-23 16:05:48 +01:00
Adriaan de Groot
5af614daf7
[finished] Allow positive and negative notifications at end.
2021-02-23 15:59:40 +01:00
Adriaan de Groot
ec4b6752d6
[finished] Move notification to Config
2021-02-23 15:54:19 +01:00
Adriaan de Groot
76a2791b12
[finished] Clean up includes
2021-02-23 15:42:14 +01:00
Adriaan de Groot
7d024cf72b
[finished] Move restart handling to Config
2021-02-23 15:36:44 +01:00
Adriaan de Groot
9d6d8ecaea
[finished] Heavy refactor
...
- move most of the business logic to Config
- make retranslate of the page more robust (e.g. changing language
after failure would restore the un-failed message)
There's still some bits left.
2021-02-23 15:03:16 +01:00
Adriaan de Groot
288fe5b274
[finished] Rename and document following coding style
2021-02-23 12:50:52 +01:00
Adriaan de Groot
40961f21a7
Merge pull request #1624 from benne-dee/schema-netinstall
...
[netinstall] Schema for groups in netinstall.schema.yaml
2021-02-23 12:31:47 +01:00
benne-dee
f0aa515c8b
[netinstall] Schema validates also groups file
2021-02-22 22:17:06 +05:30
Adriaan de Groot
9c8194402b
[keyboard] Add ASCII mapping for Greek
...
FIXES #1642
2021-02-19 14:33:38 +01:00
Adriaan de Groot
cdbf45b5d3
[libcalamaresui] Remove unused include
2021-02-19 14:29:46 +01:00
Adriaan de Groot
3a4dcb6913
[libcalamaresui] Give slideshow (ExecutionViewStep) widgets names
2021-02-17 14:34:33 +01:00
Adriaan de Groot
7e6c3a2309
[libcalamaresui] Give the slideshow-widgets a name
...
- this is the *working* part of the slideshow, not its background
2021-02-17 14:25:06 +01:00
Adriaan de Groot
49f4e7b8e1
[calamares] Make the widget-tree more informative, mention class name
2021-02-17 14:19:45 +01:00
Adriaan de Groot
ce6fae900f
CI: massage message a bit and adjust naming scheme
2021-02-17 10:41:55 +01:00
Adriaan de Groot
6bf82e9c65
[welcome] Update .conf documentation
...
- fix typo
- don't suggest google as internetCheckUrl
- mark TODOs for #1384
2021-02-16 16:32:34 +01:00
Adriaan de Groot
d0a65641e2
CI: rename the scheduled, nightly builds again
2021-02-16 14:25:10 +01:00
Adriaan de Groot
112b51756b
CI: keep a tarball of the scheduled neon build
2021-02-16 13:03:22 +01:00
Adriaan de Groot
f15a599bbd
CI: shuffle workflow naming, add a nightly neon build as well
2021-02-16 12:45:34 +01:00
Anubhav Choudhary
9738851261
YAML list for uploadServer key
2021-02-15 20:51:41 +05:30
Anubhav Choudhary
7057081bdf
QUrl for serverURL + renames
2021-02-10 14:38:26 +05:30
Adriaan de Groot
e49f0cf3ba
[libcalamares] Document NamedEnum in much more detail
2021-02-09 17:03:19 +01:00
Adriaan de Groot
04f4441182
[netinstall] Build up a list of urls, rather than just one
...
- the list is unused, and doesn't drive the loading of groups either;
the existing one-string entry is used.
2021-02-09 15:06:53 +01:00
Adriaan de Groot
ca1ae6fd1d
[netinstall] Support retranslation in the Config object
2021-02-09 11:06:59 +01:00
Adriaan de Groot
335ccbc149
[netinstall] Move other translation parts to Config
2021-02-09 10:58:11 +01:00
Adriaan de Groot
cf7391696e
[netinstall] Continue moving settings to the Config object
2021-02-08 22:57:38 +01:00
Adriaan de Groot
dd8b893ee8
Changes: mention what this branch is for
2021-02-08 15:36:27 +01:00
Adriaan de Groot
f045e4f00e
[libcalamares] Switch default language in Belarus
...
*If* the distro has GeoIP enabled and auto-selects the language for
Calamares, then Belarus now selects Russian, rather the Belarusian.
This is based on some personal input, mostly, and Wikipedia census data.
FIXES #1634
2021-02-07 22:35:32 +01:00
Chrysostomus
16eff98a06
Don't use f-strings yet.
2021-02-07 15:39:38 +02:00
Chrysostomus
0c92a36a53
Remove unnecessary comment
2021-02-07 15:29:30 +02:00
Chrysostomus
6d55005da0
Mount subvolumes to correct mountpoints
2021-02-07 00:16:26 +02:00
Chrysostomus
b16bd6bb23
Fix name error
2021-02-06 20:03:30 +02:00
Chrysostomus
67aedd5582
Move comments closer to where they are used
2021-02-06 19:54:29 +02:00
Chrysostomus
16bf7925a2
Adjust comments
2021-02-06 19:48:09 +02:00
Chrysostomus
1896a38ccc
Fix a typo
2021-02-06 01:38:03 +02:00
Adriaan de Groot
fc034828c7
Changes: post-release housekeeping
2021-02-05 13:10:12 +01:00
Chrysostomus
1e0295dc65
Fix name error
2021-02-03 22:55:11 +02:00
Adriaan de Groot
84240683f5
[finished] Apply coding style
2021-02-03 17:16:22 +01:00
Adriaan de Groot
cb4248e56d
[finished] Move config from viewstep to config object
...
- the configuration is still duplicated in the widget, and
functionality still needs to move to the Config object
- the ViewStep is cut down to almost nothing
2021-02-03 17:14:49 +01:00
Adriaan de Groot
c82b802f4e
[libcalamares] Typo in documentation
2021-02-03 17:12:33 +01:00
Adriaan de Groot
4ae3a7af61
[finished] Start Config-ification
...
- Introduce a Config class with suitable properties for use in QML,
read configuration; this is unused right now.
2021-02-03 16:54:18 +01:00
Adriaan de Groot
b8a9c4c3b7
[users] Be more forgiving in tests
...
- the host system's /etc/group is being read, and that varies between
host OS versions; since I was doing today's release on KaOS, the
test was failing because of arbitrary differences between the
default groups on each Linux flavor.
2021-02-03 13:48:01 +01:00
Calamares CI
2f7790d691
i18n: [python] Automatic merge of Transifex translations
2021-02-03 12:05:46 +01:00
Calamares CI
0d1355d457
i18n: [calamares] Automatic merge of Transifex translations
2021-02-03 12:05:46 +01:00
Adriaan de Groot
39cae1f0fb
CI: change notification usernames and messages a little
2021-02-03 11:57:24 +01:00
Adriaan de Groot
3fbca3ab4c
Changes: pre-release housekeeping
2021-02-03 11:51:19 +01:00
Adriaan de Groot
144b51f00e
[partition] Use automount control
...
FIXES #1604
(Admittedly, this fixes the problem only when there's Plasma Solid automount
present, and not any of the other kinds; but none of those have been reported
yet, and adding them into AutoMount.cpp is opaque to the rest of the
system)
2021-02-03 01:31:37 +01:00
Adriaan de Groot
17f73b1294
[partition] Test automount job in a queue
2021-02-03 01:26:49 +01:00
Adriaan de Groot
38fa1d9567
[libcalamares] Distinguish logging raw, shared and unique pointers
...
- It shouldn't be necessary to explicitly .get() pointers for
logging, and it's convenient to know when a pointer is smart.
* no annotation means raw (e.g. @0x0)
* S means shared
* U means unique
2021-02-03 01:06:25 +01:00
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
c98a330bf9
[libcalamares] Store DBus reply value, drop debug-logging
2021-02-03 00:46:00 +01:00
Adriaan de Groot
aae815cf3b
[partition] Add trivial test for automount management job
2021-02-02 23:01:59 +01:00
Chrysostomus
fcf6e2fb25
fix typos
2021-02-02 23:07:35 +02: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
f3752e200a
[libcalamaresui] Display first 6, last 2 lines of long error messages, preserve newlines
2021-02-02 16:40:01 +01:00
Adriaan de Groot
c3d27be103
Changes: patch up the credits
2021-02-02 16:36:56 +01:00
Adriaan de Groot
b9210721e6
Merge branch 'issue-1613' into calamares
...
The popup now cuts down messages to a manageable length.
Hopefully the part that is preserved, will still show
something meaningful for the user (8 lines of text should
be sufficient for the kind of things we do).
FIXES #1613
2021-02-02 16:35:10 +01:00
Adriaan de Groot
eafb8149b3
[libcalamares] Test some degenerate truncation cases
2021-02-02 15:35:53 +01:00
Adriaan de Groot
a383aa974a
[users] Need <memory> for unique_ptr
...
- Although unique_ptr is only used when ICU is enabled, include it
always because it is likely that we'll use more unique_ptr
in the implementation at some point.
2021-02-02 13:38:52 +01:00
Adriaan de Groot
e99c60728b
CI: the 'DIFF' line does not make sense for scheduled builds
2021-02-02 13:36:05 +01:00
Adriaan de Groot
18cc4b5c6f
CI: add a scheduled openSUSE build, too
2021-02-02 12:56:04 +01:00
Adriaan de Groot
d4a5640446
CI: Debian 9 is too old, stick with 10, update dependencies
2021-02-02 12:34:23 +01:00
Adriaan de Groot
4acf0d4d34
CI: show slightly more information on neon CI runs
2021-02-02 12:04:45 +01:00
Adriaan de Groot
45fb77fbf3
CI: split Debian package installation
2021-02-02 00:49:58 +01:00
Adriaan de Groot
3d72fb1bbe
CI: notify about issues consistently with CI-builds
2021-02-02 00:49:38 +01:00
Adriaan de Groot
a215871da8
CI: Debian doesn't come with sudo pre-installed
2021-02-02 00:39:45 +01:00
Adriaan de Groot
74eada048b
CI: allow manually starting Debian builds, too
2021-02-02 00:33:01 +01:00
Adriaan de Groot
81e5bf4e6e
CI: update Debian-build notifications, too
2021-02-02 00:13:07 +01:00
Adriaan de Groot
455cc29bc3
CI: restore build steps
2021-02-02 00:11:50 +01:00
Adriaan de Groot
fa258e3100
CI: try again to avoid trailing blank lines
2021-02-02 00:04:33 +01:00
Adriaan de Groot
6743de076f
CI: frustrated by weird Python failures now
2021-02-01 23:56:42 +01:00
Adriaan de Groot
73ab41c572
CI: partial back-out to chase IRC message failure
2021-02-01 23:42:10 +01:00
Adriaan de Groot
343f4cefc8
CI: build on older Debian on a schedule
2021-02-01 23:15:15 +01:00
Adriaan de Groot
a34ca69d52
CI: run CI everywhere, but notify us only when building the upstream version
2021-02-01 23:14:06 +01:00
Adriaan de Groot
7a0e91f076
CI: shorten the notification stanzas
2021-02-01 23:12:14 +01:00
Adriaan de Groot
14dcbb94a3
CI: fix typo, tighten up messages
2021-02-01 17:18:44 +01:00
Adriaan de Groot
2f18921db9
CI: compress steps
...
- don't need multiple prepare steps
- try to use git output for SHA and log message
2021-02-01 17:09:50 +01:00
Adriaan de Groot
3692988b17
CI: cut down expression context
2021-02-01 16:57:05 +01:00
Adriaan de Groot
f2bd956b89
CI: try a different form of if()
2021-02-01 16:28:20 +01:00
Adriaan de Groot
1742c10f7d
CI: remove if entirely
...
- expression context is not enough
2021-02-01 15:05:33 +01:00
Adriaan de Groot
eee5674f6d
CI: remove if-expression, it triggers a syntax error
...
- unclear why this wasn't evaluated in expression context before
2021-02-01 15:04:13 +01:00
Adriaan de Groot
1da84ca09b
CI: restore full build, restrict to 'our' repo
...
- this should prevent forks from duplicate-reporting builds
2021-02-01 14:41:07 +01:00
Adriaan de Groot
9af44a3c8d
CI: one more with shorter notifications
2021-02-01 14:25:02 +01:00
Adriaan de Groot
5643c5cdc7
CI: another try at notification on build
2021-02-01 14:09:52 +01:00
Adriaan de Groot
c5729b861f
CI: fix YAML typo
2021-02-01 13:57:28 +01:00
Adriaan de Groot
bd6aa58322
CI: another try at notification on build
2021-02-01 13:52:55 +01:00
Adriaan de Groot
3ca770aa63
CI: another round of CI-wrangling
2021-02-01 13:27:33 +01:00
Adriaan de Groot
413614e14b
CI: massage the issues-messages a little more, fix logic
2021-01-31 23:07:48 +01:00
Adriaan de Groot
a289518a8a
CI: munge the issues-notifications
2021-01-31 22:01:41 +01:00
Adriaan de Groot
0592d40bc2
CI: rename neon build (to make it obvious there are other possibilities)
2021-01-31 21:50:33 +01:00
Adriaan de Groot
caff0176b1
[libcalamares] Need <memory> for unique_ptr
...
FIXES #1631
2021-01-31 21:40:41 +01:00
Kevin Kofler
0d44d2838f
Changes: document Neal Gompa's fix from #1628
2021-01-31 00:55:20 +01:00
Kevin Kofler
2ebfae134b
Merge pull request #1628 from Conan-Kudo/fix-efi-install
...
modules/bootloader: Use the correct names for the shim binaries
2021-01-31 00:52:18 +01:00
Neal Gompa
e56bdd019f
modules/bootloader: Use the correct names for the shim binaries
...
Ever since signed shim binaries for multiple architectures became
available, the shim binaries installed in Linux distributions have
been renamed to include the EFI architecture in the binary names.
This started in Fedora, but is now used in openSUSE and Ubuntu too.
Reference for shim binary names comes from shim spec in Fedora:
d8c3c8e392/f/shim.spec (_23-32)
2021-01-30 05:37:41 -05:00
Adriaan de Groot
7ab9c63903
[libcalamares] Extend test with some degenerate cases
2021-01-29 11:53:36 +01:00
Adriaan de Groot
5c402ffd66
[libcalamares] Truncate to a character count as well
2021-01-28 22:13:44 +01:00
Adriaan de Groot
1542bad224
[libcalamares] Truncate strings without trailing newline properly
2021-01-28 15:30:00 +01:00
Adriaan de Groot
9b15df595e
CI: update IRC notifications
2021-01-28 15:29:44 +01:00
Adriaan de Groot
8e3ed3c933
[libcalamares] Remove redundant variable, use NEWLINE instead of character-literal
2021-01-28 15:24:05 +01:00
Adriaan de Groot
721748bed3
CI: extend the jobs, also notify for issues
2021-01-28 15:00:45 +01:00
Adriaan de Groot
3623e9aefc
[libcalamares] Extend tests of string-truncation
2021-01-28 14:47:03 +01:00
Adriaan de Groot
67e96d2ce6
CI: show badge of recent build
2021-01-28 14:21:57 +01:00
Adriaan de Groot
88128e91fe
CI: try IRC notifications
2021-01-28 14:11:21 +01:00
Adriaan de Groot
b85e5b52c2
[libcalamaresui] Apply coding style
...
- Some minor bits snuck in with the string-truncation code
- While here, make UPDATE_BUTTON_PROPERTY more statement-like
so it doesn't confuse code-formatters.
2021-01-28 13:52:48 +01:00
Adriaan de Groot
db5f3bc309
Merge branch 'issue-1613' into calamares
2021-01-28 01:07:03 +01:00
Adriaan de Groot
319a720d1b
[libcalamares Expand tests
2021-01-28 01:06:09 +01:00
Adriaan de Groot
b144d81979
[libcalamares] Fix up smart-string-truncation
...
- off-by-one when source ends with a newline
- lastNewLine was being calculated as a left-index into the string,
then used as a count-from-right
2021-01-28 01:02:46 +01:00
Adriaan de Groot
3be360e433
[libcalamares] Add tests to string truncation
...
- check that basic manipulations succeed
- trailing-lines selection fails, though
2021-01-28 00:23:13 +01:00
Adriaan de Groot
8cc114bf2c
[libcalamares] Move smart-string-truncation to library
...
Expand the API a little to support first-lines, last-lines,
and something of both. Use strong types to make the names
clear for each.
2021-01-27 23:51:03 +01:00
benne-dee
f8385d2cb8
Fix https in URL
2021-01-27 23:12:29 +05:30
benne-dee
13181a52ee
Define schema for groups in netinstall.schema.yaml
2021-01-27 22:38:40 +05:30
Chrysostomus
8c0c84f162
Create all fstab entries one way instead of having special handling
2021-01-27 15:41:01 +02:00
Adriaan de Groot
cd1a4adaf8
Merge pull request #1623 from benne-dee/schema-shellprocess
...
Create shellprocess.schema.yaml
2021-01-27 12:36:35 +01:00
Adriaan de Groot
d267d4ab7b
Merge pull request #1620 from boredland/calamares
...
ci: move from travisci to github actions
2021-01-27 12:33:11 +01:00
benne-dee
938edf5bd6
Create shellprocess.schema.yaml
2021-01-27 11:41:53 +05:30
Chrysostomus
14fbbd92dc
Get configured subvolumes from the global storage
2021-01-26 22:56:31 +02:00
Chrysostomus
092374d08c
Add modified list to global storage
2021-01-26 22:48:02 +02:00
Chrysostomus
f53f43ad03
Remove some unnecessary bits
2021-01-26 22:42:35 +02:00
Chrysostomus
4b6718b354
Further generalize subvolume handling
2021-01-26 22:35:42 +02:00
Chrysostomus
942221c764
Generalize subvolume handling
2021-01-26 22:24:50 +02:00
Chrysostomus
945effb048
Amend subvolumes to include path
2021-01-26 22:13:29 +02:00
Chrysostomus
b5cfa5109e
Add schema definition
2021-01-26 21:34:11 +02:00
Chrysostomus
4ab30569c2
Add default configuration
2021-01-26 21:31:33 +02:00
Adriaan de Groot
4f78afe67e
[libcalamaresui] Display a reduced amount of details
...
Cut the error message from down to a maximum of 8 lines
so that the messagebox does not hopelessly overflow.
2021-01-26 00:37:08 +01:00
Adriaan de Groot
f0fd47eeb3
[libcalamares] Simplify logging-manipulators
...
Writing `Logger::NoQuote{}`` has annoyed me for a while, so
switch it to a constant, like SubEntry, so it looks more
like a regular manipulator object.
2021-01-26 00:13:10 +01:00
Jonas Strassel
dbd8f361d1
chore: remove unused DESTDIR and superfluous test cmd
2021-01-25 16:13:28 +01:00
Adriaan de Groot
c1064c5e08
Merge pull request #1597 from Chrysostomus/btrfs-swap
...
[fstab][mount] Btrfs swapfile handling
2021-01-25 15:19:45 +01:00
Jonas Strassel
3cc50d8ac4
chore: remove disfunct coverity checks
2021-01-25 12:25:35 +01:00
Jonas Strassel
58afa92298
refactor: move coverage and script steps into gh ci
2021-01-25 02:07:01 +01:00
Jonas Strassel
9dd58b9a22
refactor: move ci-config into workflow
2021-01-25 00:51:09 +01:00
Jonas Strassel
7c175f5005
ci(gh): add basic workflow installing dependencies
2021-01-25 00:29:58 +01:00
Anubhav Choudhary
b4078f3634
Changed branding keynames + minor fixes
2021-01-25 01:09:20 +05:30
Anubhav Choudhary
186c065b4c
PasteURL sent to clipboard
2021-01-23 22:49:23 +05:30
Anubhav Choudhary
a2c930a714
Code-formatted and Copyright-text added
2021-01-23 21:16:32 +05:30
Anubhav Choudhary
ff66e4b3d5
Redirecting logUpload vars to pasteUtility
2021-01-23 20:47:33 +05:30
Anubhav Choudhary
f6cb879929
branding.desc updated
2021-01-23 20:43:55 +05:30
Adriaan de Groot
9a4c599e22
[libcalamares] Tidy logging a little for Python errors
2021-01-22 14:49:20 +01:00
Adriaan de Groot
2a3e616b0e
Changes: correct description of automount (thanks Kevin)
2021-01-20 15:08:06 +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
Adriaan de Groot
1ec886e8cb
Changes: document newly-merged
2021-01-18 16:44:23 +01:00
Adriaan de Groot
3ade1fd84a
Merge branch 'add-automount-control' into calamares
2021-01-18 16:28:12 +01:00
Adriaan de Groot
b709ba7a5b
Merge pull request #1590 from deprov447/Back/Next_buttons_at_installation
...
Navigation buttons hideability during installation
2021-01-18 16:24:10 +01:00
Adriaan de Groot
9482935034
Merge pull request #1572 from gportay/partition-output-more-things-in-overiew
...
[partition] output more things in overiew
2021-01-18 15:08:19 +01:00
Adriaan de Groot
478af25cec
Merge pull request #1571 from gportay/unpackfs-skip-overlay-extended-attributes
...
[unpackfs] Skip overlay extended attributes
2021-01-18 15:00:12 +01:00
Anubhav Choudhary
0ff32784d1
hooked backAndNextVisible signal to nonQML navigation
2021-01-13 22:41:25 +05:30
Anubhav Choudhary
a9539018e9
[fixed] backAndNextVisbility logic
2021-01-13 22:15:22 +05:30
Calamares CI
d15aa2bfc3
i18n: [python] Automatic merge of Transifex translations
2021-01-13 01:03:42 +01:00
Calamares CI
dd7a5c45ed
i18n: [calamares] Automatic merge of Transifex translations
2021-01-13 01:03:41 +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
bf9c9a64f1
[libcalamares] Introduce new function getPartitionTable
2021-01-08 08:54:02 -05:00
Adriaan de Groot
132ff59d9c
[libcalamares] Make running commands less chatty
...
If there's no output, don't mention it; don't mention failure modes
if the command was successful.
2021-01-06 00:07:35 +01:00
Adriaan de Groot
a3eae323f1
[libcalamares] Rename test-executable: avoid clashes with 'cala<tab>'
2020-12-22 22:08:23 +01:00
Adriaan de Groot
d74bdbcfd0
[libcalamares] coding-style, logging in calautomount
2020-12-22 22:07:17 +01:00
Adriaan de Groot
3150785ff1
[libcalamares] Use shared_ptr instead of unique_ptr
...
The value inside a unique_ptr can't be opaque, it needs to be known
at any site where the pointer may be deleted. shared_ptr does not
have that (deletion is part of the shared_ptr object, which is larger
than the unique_ptr) and so can be used for opaque deletions.
2020-12-22 21:29:49 +01:00
Adriaan de Groot
1c4bf58fb4
[libcalamares] automount-manipulation test-program
2020-12-22 21:25:00 +01:00
Adriaan de Groot
f0a33a235c
[libcalamares] Make automountDisable() more flexible
2020-12-22 21:24:30 +01:00
Adriaan de Groot
9e6bddf31a
[partition] Add new AutoMount-manipulating helpers
2020-12-22 16:05:20 +01:00
Adriaan de Groot
1c285f011b
[libcalamares] Export partition-syncer symbols
2020-12-22 16:03:51 +01:00
Adriaan de Groot
c963d8905f
[netinstall] Merge the two descriptions of *immutable*
2020-12-21 17:24:06 +01:00
Chrysostomus
271122865f
define global storage
2020-12-20 01:27:45 +02:00
Adriaan de Groot
2ccd5a2043
Docs: explain about loadmodule
...
The Python-specific `testmodule.py` was replaced by the more
general `loadmodule`.
FIXES #1596
2020-12-14 16:18:50 +01:00
Adriaan de Groot
b7a27b3f9f
Changes: post-release housekeeping
2020-12-09 11:35:42 +01:00
Anubhav Choudhary
e3a41571f0
Spacing added
2020-12-08 18:19:14 +05:30
Chrysostomus
727f7859b7
Mount @swap to /swap when needed
2020-12-07 22:59:29 +02:00
Chrysostomus
b180cbd47d
Generate a subvolume for swap if swapfile is used
2020-12-07 22:52:39 +02:00
Chrysostomus
97eb32bf5c
Correct the path of swapfile on btrfs
2020-12-07 22:47:32 +02:00
Chrysostomus
80a538665e
Generate entry for subvolume @swap
2020-12-07 22:39:21 +02:00
Chrysostomus
3f0612b4ad
Use different location for swapfile on btrfs root
2020-12-07 22:31:20 +02:00
Anubhav Choudhary
0f2320bd47
Initializing bools in settings.h
2020-12-07 21:40:59 +05:30
Calamares CI
b98886cdc2
i18n: [python] Automatic merge of Transifex translations
2020-12-07 17:09:14 +01:00
Calamares CI
a299b9dd3a
i18n: [calamares] Automatic merge of Transifex translations
2020-12-07 17:09:14 +01:00
Adriaan de Groot
205fc4f948
Changes: pre-release housekeeping
2020-12-07 14:24:45 +01:00
Anubhav Choudhary
03d1fe434c
Navigation button hideability added
2020-12-06 04:32:18 +05:30
Adriaan de Groot
b949967529
Merge pull request #1594 from Chrysostomus/calamares
...
Don't use plymouth-encrypt if there is keyfile in use, because it is buggy and asks for password even when it is not needed
2020-12-05 23:04:37 +01:00
Chrysostomus
59cfdcccdf
Use variable instead of a function
2020-12-05 22:57:51 +02:00
Chrysostomus
0ed0d37693
Don't use plymouth-encrypt if there is keyfile in use, because it is buggy and asks for password even when it is not needed
2020-12-05 22:55:35 +02:00
Matti Hyttinen
afc6e719b4
Merge pull request #1 from calamares/calamares
...
Merge upstream
2020-12-05 22:46:30 +02:00
Anubhav Choudhary
ba514506bb
setting.conf template updated
2020-12-06 00:25:56 +05:30
Adriaan de Groot
901ff0e4cf
i18n: remove one more stray {1
2020-12-05 00:22:11 +01:00
Calamares CI
e7610132ce
i18n: [python] Automatic merge of Transifex translations
2020-12-05 00:21:03 +01:00
Calamares CI
09b71819c2
i18n: [calamares] Automatic merge of Transifex translations
2020-12-05 00:21:03 +01:00
Adriaan de Groot
6ef01d83dd
CMake: PREPEND is newer-than-CMake-3.13
2020-12-04 22:32:43 +01:00
Adriaan de Groot
06c6ea04c0
[users] Make status message consistent (no .)
2020-12-04 22:26:27 +01:00
Calamares CI
409a3719cf
i18n: [python] Automatic merge of Transifex translations
2020-12-04 22:11:59 +01:00
Calamares CI
3c14d7092a
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-12-04 22:11:59 +01:00
Calamares CI
2ae86fa6e6
i18n: [calamares] Automatic merge of Transifex translations
2020-12-04 22:11:59 +01:00
Adriaan de Groot
e86f67cad8
Changes: post-release housekeeping
...
The .35 release was really on 2020-12-04, but I'm not going to
go back and update that date.
2020-12-04 20:57:41 +01:00
Adriaan de Groot
a93e96da7c
[branding] Restore dropped https
2020-12-04 20:56:46 +01:00
Anubhav Choudhary
e8238ca713
Name added in copyright section
2020-12-04 23:01:06 +05:30
Adriaan de Groot
b3876b15f7
Merge pull request #1589 from deprov447/WelcomePage_links_fix
...
[branding] Welcome Page links
2020-12-04 14:51:48 +01:00
Anubhav Choudhary
a4c759355b
[Fix] WelcomePage links
...
"Generic support" and "Known Issues" links fixed
2020-12-04 10:39:07 +05:30
Adriaan de Groot
f4133a97db
[libcalamares] Make test a bit more verbose (before failing)
2020-11-30 15:38:17 +01:00
Adriaan de Groot
fa7d2bda16
[libcalamares] Misplaced space in a test-filename
2020-11-30 15:28:08 +01:00
Adriaan de Groot
1f21b9ad73
[dracutlukscfg] Const data
...
The QLatin1String() might be replaced by char[], that trades one
initialization for two but with a simpler data section; this
probably is not worth profiling.
2020-11-30 14:41:02 +01:00
Adriaan de Groot
1f0aec5f87
[dracutlukscfg] Job-internal constant data doesn't need to be a member
2020-11-30 14:35:21 +01:00
Adriaan de Groot
d2c7c42aec
[dracutlukscfg] More static methods -> free functions
2020-11-30 14:32:36 +01:00
Adriaan de Groot
6d02bab098
[dracutlukscfg] static methods -> free functions
...
These methods don't touch anything in the class, and are more safely
tucked away as static (TU-local) free functions.
2020-11-30 14:23:06 +01:00
Adriaan de Groot
6df3c023c8
[luksbootkeyfile] Free functions that really are static (TU-local)
2020-11-30 14:16:35 +01:00
Adriaan de Groot
b82da569d5
[plasmalnf] Remove unused (widget) files
2020-11-30 14:16:35 +01:00
Calamares CI
d290862163
i18n: [calamares] Automatic merge of Transifex translations
2020-11-30 13:22:17 +01:00
Adriaan de Groot
f2e5f2f8e5
Changes: pre-release housekeeping
2020-11-30 13:19:55 +01:00
Adriaan de Groot
06e2db946f
[plasmalnf] Older Qt doesn't have -> for iterator
...
With Qt 5.15.2 (and clang), `k->first` works, but this breaks
with Qt 5.11 (and gcc), this is not available and the dereference
must be written differently, `(*k).first`.
2020-11-30 13:12:42 +01:00
Adriaan de Groot
ff66eacd0d
Merge branch 'issue-1573' into calamares
2020-11-30 12:31:26 +01:00
Adriaan de Groot
fb9fa347a0
[plasmalnf] Fix iteration
...
`for k : images` iterates over the values in the map, while we need
both the key (the theme-id) and the value (the image to hand to
that theme).
2020-11-30 12:30:01 +01:00
Adriaan de Groot
bcff0454a3
[plasmalnf] Give the themes a selected-state
...
- This kind of runs around the selection model on the view,
but we're drawing radio buttons ourselves **anyway**
and the list of themes knows which is selected / current
independent of the view.
2020-11-30 12:11:11 +01:00
Adriaan de Groot
da4f8fffcf
[plasmalnf] Give the theme list plenty of space
2020-11-30 11:31:44 +01:00
Adriaan de Groot
cf538fb837
[plasmalnf] Implement a delegate for drawing the list of themes
2020-11-30 11:19:00 +01:00
Adriaan de Groot
cc6611bac4
[plasmalnf] Make 'the size of screenshots' available outside ThemeInfo
2020-11-30 10:46:46 +01:00
Adriaan de Groot
dac590a094
[plasmalnf] Rip out the intermediate model again, in prep for a delegate
2020-11-28 16:53:35 +01:00
Calamares CI
2fa272ea2f
i18n: [python] Automatic merge of Transifex translations
2020-11-28 16:06:25 +01:00
Calamares CI
b869f716e7
i18n: [calamares] Automatic merge of Transifex translations
2020-11-28 16:06:25 +01:00
Adriaan de Groot
61a2335909
[users] Stray space in message (reported by Transifex user Moo)
2020-11-24 23:47:13 +01:00
Adriaan de Groot
ccfbd6b972
Merge pull request #1566 from Chrysostomus/calamares
...
Don't use a keyfile for encrypted partitions if /boot in unecrypted
2020-11-24 16:13:32 +01:00
Adriaan de Groot
35f8d90591
Merge pull request #1581 from clarissalimab/clarissa/usability-testing-issue-template
...
Docs: Add an issue template for usability tests
2020-11-24 11:00:22 +01:00
Adriaan de Groot
2a30ae1e25
[unpackfs] Log failure during unpackfs more clearly
2020-11-22 23:14:02 +01:00
Clarissa Borges
e5215c7091
Docs: Add an issue template for usability tests
2020-11-19 20:35:09 -03:00
Adriaan de Groot
66da5f2fa4
[netinstall] Removing the last package should clear it out.
...
FIXES #1577
2020-11-18 17:27:50 +01:00
Adriaan de Groot
ff2d2d0d45
Docs: update the CONTRIBUTING guide
2020-11-18 13:22:48 +01:00
Adriaan de Groot
06cbabd189
[plasmalnf] Simplify (warnings--, debug--)
2020-11-17 14:40:21 +01:00
Adriaan de Groot
faa1cb6b65
[plasmalnf] Demand-load image for a theme
2020-11-17 14:32:50 +01:00
Adriaan de Groot
58ea40c14d
[plasmalnf] Add a description
...
- add a role for description
- change view to a table view
2020-11-17 12:41:50 +01:00
Adriaan de Groot
258a14bea2
[plasmalnf] Expose only the themes model
...
- make ThemeInfo and ThemeInfoList internal, expose only
ThemesModel to the rest of the PlasmaLnF module
- don't build the widget anymore (needs to be replaced by
a delegate)
2020-11-17 11:56:09 +01:00
Adriaan de Groot
04a6fbc4c4
[plasmalnf] Fix debug-logging
...
- ProcessResult isn't loggable, so operator bool() is called, so
it logged 'false' on failure which isn't helpful.
2020-11-17 11:42:27 +01:00
Adriaan de Groot
0a88273e0d
[plasmalnf] Replace combobox with a view
2020-11-17 11:38:33 +01:00
Adriaan de Groot
3909459563
[plasmalnf] Signal more changes to the model
...
- also individual changes need to be signalled
- use QSignalBlocker to avoid spamming changes when calling
aggregate change methods
- refactor findById() so that also a row number can be
obtained, which is needed for the change signals.
2020-11-17 11:17:47 +01:00
Adriaan de Groot
f93cec031b
[plasmalnf] Introduce an index-lookup function
...
- for signalling model changes, also need to know indexes / row
2020-11-17 00:25:48 +01:00
Adriaan de Groot
f9e99da468
[plasmalnf] Improve lnf model
...
- remove useless widget pointer from themeinfo
- notify when data changes in the model
2020-11-17 00:12:47 +01:00
Adriaan de Groot
1f57a0ddda
[plasmalnf] Very basic combo-box based UI
2020-11-17 00:02:59 +01:00
Adriaan de Groot
aaa56b6903
[plasmalnf] Rip out most of the widget
...
- put a filter model in place, so only the themes with "show" set
are displayed
- rip out the messing about with widgets, soon to introduce a model-
based UI
2020-11-16 23:36:32 +01:00
Adriaan de Groot
d4887426e2
[plasmalnf] Set screenshots on themes, filtering
...
- while here reorder the config so the effect of *showAll* is clearer
2020-11-16 21:57:06 +01:00
Adriaan de Groot
254933a488
[plasmalnf] Prep-work for loading the themes into the model
2020-11-16 21:28:37 +01:00
Adriaan de Groot
57907ca992
[plasmalnf] Move model to ThemeInfo files
2020-11-16 18:14:23 +01:00
Adriaan de Groot
c781343fdd
Changes: post-release housekeeping
2020-11-16 12:52:19 +01:00
Adriaan de Groot
04e21b7e46
Changes: pre-release housekeeping
2020-11-16 12:28:28 +01:00
Calamares CI
0bbe03b214
i18n: [python] Automatic merge of Transifex translations
2020-11-16 12:15:52 +01:00
Calamares CI
9bf0a3414f
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-11-16 12:15:52 +01:00
Calamares CI
1f7af88100
i18n: [calamares] Automatic merge of Transifex translations
2020-11-16 12:15:52 +01:00
Chrysostomus
ff9f47ec83
Fix syntax errors
2020-11-15 01:42:16 +02:00
Adriaan de Groot
04c14419c8
Merge pull request #1575 from gportay/partition-remove-unused-attribute
...
[partition] Remove unused attribute m_defaultFsType
2020-11-14 22:13:34 +01:00
Chrysostomus
567b01eab0
call function at different scope to avoid name collision
2020-11-13 23:39:25 +02:00
Chrysostomus
09798a2a12
Use free functions (I wish I had known I can do this)
2020-11-13 00:02:12 +02:00
Chrysostomus
8676ce9a20
Simplify the generators
2020-11-12 23:57:02 +02:00
Gaël PORTAY
feab8bebba
[partition] Remove unused attribute m_defaultFsType
...
This attribute is used since the commit fcd0e8d36 [partition] Apply
partition layout when replacing free space
2020-11-12 15:15:51 -05:00
Adriaan de Groot
dda2e1f29f
Merge commit 'a8359696caf07b81b85db8acad2d3f44720d07fa' into calamares
...
This is the bugfix part (rather than the "clean up this widgets mess")
of issue-1573, ensuring that the LookAndFeelPackage setting is
saved to the target system config file.
2020-11-12 15:59:56 +01:00
Adriaan de Groot
27f1e82a8f
[plasmalnf] Remove unused path-setting from the widget
...
- Only Config needs to know the path, since it is responsible for
doing the actual lnf changes.
2020-11-12 15:59:03 +01:00
Adriaan de Groot
a19109ed0b
[plasmalnf] Prepare a new model
...
- start a model for available themes, to replace the list held
by the widget which just duplicates information.
- move preselected theme to Config.
2020-11-12 15:36:29 +01:00
Adriaan de Groot
03e09cb7e6
[keyboard] When changing layouts, reset variant
...
- Need to update the variant that is in use, **and**
explicitly update it in the widget, in order to re-load
the keyboard image for the newly-selected layout+variant.
2020-11-12 15:29:15 +01:00
Adriaan de Groot
fdfe3937e9
[keyboard] Tell the keyboard preview to update on config changes
...
These calls to setLayout() and setVariant() got lost in
the transition to Config object, in 5afe5413 .
Reported by Harald Sitter.
2020-11-12 14:50:21 +01:00
Adriaan de Groot
b1b801e5f6
Merge pull request #1574 from gportay/partition-fix-typo
...
[partition] Fix typo
2020-11-11 23:50:33 +01:00
Gaël PORTAY
2e6d632c7c
[partition] Fix typo
2020-11-11 12:49:44 -05:00
Adriaan de Groot
cba2733471
[plasmalnf] Move job creation to config
2020-11-11 14:45:31 +01:00
Adriaan de Groot
0af12546ef
[plasmalnf] Migrate more settings to Config
2020-11-11 14:41:45 +01:00
Adriaan de Groot
b4aca7e188
[libcalamares] Tidy up documentation for System::runCommand
...
- Make explicit which one runs in the host, which one is selectable.
- Document *location* parameter in the selectable version.
- Tidy up alignment of apidox.
2020-11-11 14:03:23 +01:00
Adriaan de Groot
00293d1111
[plasmalnf] Move the lookandfeeltool path setting to Config
2020-11-11 13:21:16 +01:00
Adriaan de Groot
0f07550006
[plasmalnf] Introduce (empty) Config object
2020-11-11 13:08:42 +01:00
Adriaan de Groot
a8359696ca
[plasmalnf] Remove unnecessary includes
2020-11-11 13:06:09 +01:00
Adriaan de Groot
76b0981918
[plasmalnf] Apply workaround for lookandfeeltool
...
The lookandfeeltool does not (always?) write the LookAndFeelPackage
key that the KCM does -- and which this module reads on startup
to find the default LnF. This seems to be a regression in recent
lookandfeeltool versions (or in the KCM code that backs it).
Workaround supplied by jghodd.
Fixes #1573
2020-11-11 12:57:40 +01:00
Adriaan de Groot
8f590848bd
[plasmalnf] Simplify code
...
- Look-and-Feel job has no status to speak of
- Coding style
2020-11-11 12:45:19 +01:00
Chrysostomus
543a9e1afc
Remove extra static keyword
2020-11-10 22:11:49 +02:00
Adriaan de Groot
3069f4133f
Changes: post-release housekeeping
2020-11-10 12:08:49 +01:00
Adriaan de Groot
b503aa645b
Merge pull request #1563 from LordTermor/calamares
...
[users] Full name transliteration support for user creation
2020-11-10 01:19:44 +01:00
Artem Grinev
16eca3c1be
[users] Apply code format
2020-11-10 01:54:21 +03:00
Artem Grinev
ca033583a4
Simplified logic a bit, made punctuation handling more correct
2020-11-10 01:47:07 +03:00
Artem Grinev
da5fb2d3e1
Improved comment
2020-11-10 01:40:08 +03:00
Artem Grinev
d5e678157d
Changed TRANSLITERATOR_ID type to array
2020-11-10 01:23:10 +03:00
Gaël PORTAY
7859d98a32
[unpackfs] Skip overlay extended attributes
...
The module preserves the extended attributes at rsync and the overlay
filesystem stores extended attributes by inodes.
The overlay filesystem keeps traces of the lower directory by encoding
and storing its UUID to the attribute trusted.overlay.origin. If the
index feature is on, that attribute is compared to the UUID of the lower
directory at every subsequent mounts and causes mount to fail with
ESTATE if it does not match.
This filters the namespace trusted.overlay.* by using the rsync option
--filter='-x trusted.overlay.*' to make sure the overlays extended
attributes are not preserved.
Fixes:
# mount -t overlay -o lowerdir=...,upperdir,...,workdir= overlay /mnt/etc
mount: /var/mnt/etc: mount(2) system call failed: Stale file handle.
# dmesg
(...)
overlayfs: "xino" feature enabled using 32 upper inode bits.
overlayfs: failed to verify origin (/etc, ino=524292, err=-116)
overlayfs: failed to verify upper root origin
2020-11-09 17:13:12 -05:00
Chrysostomus
e3ee3c623d
Add some relevant looking stuff to header file
2020-11-09 23:24:09 +02:00
Adriaan de Groot
8a7e9c4034
Merge branch 'issue-1569' into calamares
...
FIXES #1569
2020-11-09 16:19:03 +01:00
Adriaan de Groot
b4c3236e4a
[users] Consume error information from libpwquality
...
Previously, the auxerror information was never stored, and
the messages were all un-numbered or un-explained.
Now, consume that information and store it when check()
is called, ready to be used when (possibly much later,
or after a translation change) explanation() is called.
2020-11-09 16:08:19 +01:00
Adriaan de Groot
43565027f5
[users] m_auxerror never set, always nullptr
2020-11-09 15:42:22 +01:00
Adriaan de Groot
f3e37f3cee
[users] Remove unused PWQuality method
2020-11-09 15:40:23 +01:00
Adriaan de Groot
a5dfe7cd68
i18n: update english translations
2020-11-09 15:14:54 +01:00
Adriaan de Groot
4e9c18a565
[users] Translate PWQuality error messages with numbers
2020-11-09 15:14:41 +01:00
Adriaan de Groot
a843f34177
CI: require a sufficiently-recent JSON-Schema
2020-11-09 13:41:56 +01:00
Adriaan de Groot
d336d0167f
i18n: translation stats
...
(This does not change the overall list of available languages)
2020-11-09 13:08:07 +01:00
Calamares CI
e888f7b90e
i18n: [python] Automatic merge of Transifex translations
2020-11-09 12:27:05 +01:00
Calamares CI
d93090de44
i18n: [calamares] Automatic merge of Transifex translations
2020-11-09 12:27:04 +01:00
Adriaan de Groot
225a5d31c2
Changes: pre-release housekeeping
2020-11-09 11:39:38 +01:00
Adriaan de Groot
2a9bbf1dd5
[users] Add test for jobs-creation
...
- This tries to avoid the now-fixed situation where a sudoersGroup job
is not created at all (because of a logic error).
- While here, coding style
2020-11-09 11:39:11 +01:00
Chrysostomus
adc8d7e624
Fix typo
2020-11-07 12:55:54 +02:00
Adriaan de Groot
3b152ba455
Merge branch 'fix-sudo-settings' into calamares
2020-11-06 22:28:37 +01:00
Adriaan de Groot
43e271dfec
[users] Missing negation
2020-11-06 22:27:46 +01:00
Adriaan de Groot
8e53b83f9f
[users] Test for setting / resetting sudo settings
2020-11-06 22:27:34 +01:00
Adriaan de Groot
009b3b460b
Merge pull request #1570 from gportay/mount-skip-if-filesystem-is-unformatted
...
[mount] Ignore unformatted filesystems only
2020-11-06 22:25:40 +01:00
Chrysostomus
b7cc4860e0
Put the condition on a single line for prettiness sake
2020-11-06 21:45:01 +02:00
Chrysostomus
3731dfb146
Try not to create the keyfile if not necessary
2020-11-06 21:32:10 +02:00
Adriaan de Groot
6f41949bba
[users] Log when sudo is skipped
2020-11-06 14:38:12 +01:00
Gaël PORTAY
6e9ce7194f
[mount] Ignore unformatted filesystems only
...
Mount guesses the filesystem if it is unset or if it is set to auto,
thanks to blkid. That is the case for the bind mountpoints like /dev or
/run/udev in mount.conf. See `mount(8)` for more details.
2020-11-06 07:38:48 -05:00
Matti Hyttinen
73b5c62ab8
Update main.py
...
typo in a comment
2020-11-06 08:49:22 +02:00
Calamares CI
822e30c894
i18n: [calamares] Automatic merge of Transifex translations
2020-11-06 01:14:28 +01:00
Adriaan de Groot
afb4e00f92
[keyboard] Pre-select pc105
2020-11-06 01:10:27 +01:00
Adriaan de Groot
e5b7e66ee9
[locale] Filter zones combo always
...
The drop-down of zones was initially unfiltered, so you could start
in Europe/Amsterdam and the zones drop-down would also show Australian
zones; picking Perth would have weird effects, since Europe/Perth
doesn't exist and so you'd end up in New York instead.
- set the filtering region immediately, rather than only when the
region changes.
2020-11-05 00:33:45 +01:00
Adriaan de Groot
83b2b95381
[libcalamares] Reduce object churn
...
- we don't need to allocate a new translator each time the language changes
2020-11-05 00:09:23 +01:00
Chrysostomus
741c1c5d1e
Use constructor instead of a loop
2020-11-05 01:01:26 +02:00
Adriaan de Groot
59255c7a57
Changes: apply coding style
2020-11-05 00:00:29 +01:00
Adriaan de Groot
be7b63051e
Enable keyboard-model and layout-name translations.
...
SEE #1515
2020-11-04 23:36:33 +01:00
Adriaan de Groot
e023da3f35
i18n: update Tajik keyboard translations
...
- real ones this time, not my made-up nonsense
2020-11-04 18:30:48 +01:00
Chrysostomus
26b1c349d3
Set default value inside the relevant function
2020-11-04 19:27:59 +02:00
Adriaan de Groot
c4de62cb9a
Merge branch 'fix-keyboardq' into calamares
...
Various file writes were not being checked, and the code
was a bit tangled; specifically keyboardq did **not**
configure properly on KaOS and now seems ok.
2020-11-04 17:09:56 +01:00
Adriaan de Groot
83d2c06f68
[keyboard] Apply coding style
2020-11-04 16:36:52 +01:00
Adriaan de Groot
705e6dd8d6
[keyboard] Improve debug-logging for writing etc/default
2020-11-04 16:32:22 +01:00
Adriaan de Groot
cbc376a206
[keyboard] Improve debug-logging for writing X11 config
2020-11-04 16:32:22 +01:00
Philip Müller
5191df2bde
Merge pull request #1568 from gportay/partition-fix-typo
...
[partition] Fix typo
2020-11-04 16:18:00 +01:00
Adriaan de Groot
57da222c72
[keyboard] Improve debug-logging for vconsole-config
2020-11-04 16:16:28 +01:00
Adriaan de Groot
f18f425682
Merge pull request #1567 from gportay/umount-fix-list-of-mount-points-to-unmount
...
[umount] Fix list of mount-points to unmount
2020-11-04 16:09:02 +01:00
Gaël PORTAY
e2b00bc517
[partition] Fix typo
2020-11-04 09:58:07 -05:00
Gaël PORTAY
e9e4be1c60
[umount] Fix list of mount-points to unmount
...
The root mount-point can end with a / while the mount-point read from
the file /etc/mtab does not end with a /.
This leads to skip the unmounting of the root mount-point and causes the
removal of the root mountpoint directory to fail with EBUSY because it
is still mounted.
This uses the python functions os.path.normpath() to normalize the root
mount-point (i.e. to drop the trailing /) and os.path.commonprefix() to
determine the longest common prefix between the two mount-points. If the
returned prefix is identical to the normalized root mount-point then the
mount-point must be added to the list of the mount-points to unmount.
More generally, the python modules should rely on the os.path functions
to compare for paths instead of using strings. It covers this way lots
of corner cases (path with "//", "/../", "/./", ...).
2020-11-04 08:37:22 -05:00
Adriaan de Groot
845fb3f6da
[keyboard] Refactor writing-various-files
...
- put the writing of each kind of file in its own block -- this should
become separate functions -- so that variables become more local
and debugging can be improved.
- while here, fix the error message for /etc/default/keyboard:
it would complain and name the vconsole file path if it ever failed.
2020-11-04 14:03:14 +01:00
Adriaan de Groot
3e51d77782
[keyboard] Check for successful file-write
2020-11-04 13:39:23 +01:00
Adriaan de Groot
2535d8ccbd
Merge branch 'issue-1327' into calamares
...
FIXES #1327
FIXES #1267
Generally, flags-manipulation was a mess and restoring the
value-on-disk impossible.
2020-11-04 13:20:14 +01:00
Adriaan de Groot
2c297a068f
[partition] Log when an EFI problem has been solved
2020-11-04 12:32:51 +01:00
Adriaan de Groot
0f38ee624e
[partition] static-assert that our shortcut makes sense
2020-11-04 09:59:35 +01:00
Artem Grinev
94f7efb89f
[users] Remove ' from transliterated string
2020-11-04 03:37:25 +03:00
Artem Grinev
f20d0a7593
[users] Name cleanup after transliteration
2020-11-04 03:24:58 +03:00
Artem Grinev
aa5ef7a6b8
[users] New transliterator ID
2020-11-04 03:21:31 +03:00
Adriaan de Groot
15ace5202d
[partition] Simplify EFI-flags checking with KPMCore 4
2020-11-04 01:16:36 +01:00
Adriaan de Groot
85bb8c27b3
[partition] Simplify flags calculations
...
- factor out the flags-we-want from the flags-we-already-have
- the use of ->activeFlags() meant that the state on *disk* was
being compared with the flags-we-want; if a partition was re-edited,
then you couldn't change the flags back to the state-on-disk
(eg. enable a flag, then change your mind and disable it).
- set the flags before refreshing the partition, because the
refresh checks for EFI bootability and that needs the new flags,
not the old ones.
2020-11-04 00:58:11 +01:00
Adriaan de Groot
949e33f1e8
[partition] Massage logging while checking for EFI boot
2020-11-04 00:43:32 +01:00
Adriaan de Groot
63964de4bd
[partition] Explain underlying type for flags variant
2020-11-04 00:32:21 +01:00
Adriaan de Groot
87c77d9807
[partition] When flags are explicitly invalid, return early
2020-11-04 00:14:05 +01:00
Adriaan de Groot
356e13ae93
[partition] Improve logging readability
2020-11-03 23:46:07 +01:00
Chrysostomus
fe291bc51a
Write the crypttab entry still
2020-11-03 23:33:24 +02:00
Chrysostomus
9f52282e4c
Don't use keyfile if there /boot is unencrypted
2020-11-03 23:23:56 +02:00
Chrysostomus
3eae98eac3
Don't enable grub password query if /boot is on unencrypted partition
2020-11-03 23:15:35 +02:00
Calamares CI
1ce126c01e
i18n: [python] Automatic merge of Transifex translations
2020-11-03 15:07:22 +01:00
Calamares CI
c7eb8e1d2c
i18n: [calamares] Automatic merge of Transifex translations
2020-11-03 15:07:22 +01:00
Adriaan de Groot
b6534c3ebf
Changes: credits adjustment
2020-11-03 15:01:13 +01:00
Adriaan de Groot
72c9df67d2
Merge pull request #1565 from Chrysostomus/calamares
...
[initcpiocfg] Use graphical decryption prompt with plymouth
2020-11-03 14:29:22 +01:00
Adriaan de Groot
455de6f948
Merge branch 'document-1523' into calamares
...
FIXES #1523
2020-11-03 13:03:01 +01:00
Adriaan de Groot
f898840e16
[users] Expand schema to cover new possibilities
2020-11-03 13:02:49 +01:00
Chrysostomus
84558333bf
Regular plymouth hook is also still needed
2020-11-03 13:57:19 +02:00
Chrysostomus
3bf57c7785
Use graphical decryption prompt with plymouth as adviced here: https://wiki.archlinux.org/index.php/plymouth#The_plymouth_hook
2020-11-03 13:55:24 +02:00
Adriaan de Groot
36f9fd56a3
[users] Expand the example config with new possibilities
2020-11-03 12:54:19 +01:00
Adriaan de Groot
7c268b2e4d
[users] Correct terminology in configuration documentation
2020-11-03 12:48:12 +01:00
Adriaan de Groot
ed95c4a541
CMake: pre-release housekeeping
2020-11-03 11:52:23 +01:00
Adriaan de Groot
8ab5b562ad
i18n: timezone translations for Vietnamese
2020-11-03 11:16:45 +01:00
Adriaan de Groot
2516f18d1b
Merge pull request #1560 from gportay/partition-mount-make-mountPoint-and-filesystem-optionals
...
[partition,mount] Make mountPoint and filesystem optionals
2020-11-02 23:25:53 +01:00
Adriaan de Groot
f00a095acb
Merge branch 'fix-partition-layout' into calamares
2020-11-02 23:25:10 +01:00
Adriaan de Groot
ffce79e30e
[partition] Initialize the filesystem type, not the partition type
...
- Passing FileSystem::Type to the QString constructor for
partition type is not what I intended.
2020-11-02 22:32:44 +01:00
Adriaan de Groot
73b5a0898d
[partition] Migrate the defaultFS type
...
- remove the m_defaultFSType from PartitionLayout, because it is
set on construction -- which is too early, before the configuration
has been read.
- make the default FS explicit in the init() calls which pass in
a configuration; this needs support in the intermediate
PartitionCoreModule.
2020-11-02 21:35:43 +01:00
Adriaan de Groot
42014a8201
Docs: typo (thanks jdfthetech)
2020-11-02 16:21:12 +01:00
Adriaan de Groot
23eabd74c6
[partition] Set FS type explicitly if no layout is given
...
- the "simple" constructor for PartitionEntry left the FS type
set as the constructor left it -- which is Unknown by default.
This leads to install failures in systems that don't set a
special layout but just want a single / -- because the FS is
set to Unknown.
- massage the constructor and consumer of the code, push
Ext4 FS in the tests and use the configured default in production.
2020-11-02 16:01:10 +01:00
Artem Grinev
c85d1ae1fe
Explanation why ICU is needed for usersq module
2020-11-02 17:53:05 +03:00
Adriaan de Groot
f78752303b
[partition] Improve constructors for layout
...
- initialize flags by default
- the copy constructor was just doing the default thing,
so make that explicit
2020-11-02 15:40:32 +01:00
Gaël PORTAY
6013ed52f8
[partition] Ignore unformatted filesystem
2020-11-02 09:01:23 -05:00
Gaël PORTAY
db08d2db8b
[partition] Make filesystem optional and default to unformatted
2020-11-02 08:36:41 -05:00
Gaël PORTAY
163351a803
[mount] Ignore empty or unformatted filesystems
2020-11-02 08:36:41 -05:00
Gaël PORTAY
c6feedf923
[mount] Ignore empty mountpoints
2020-11-02 08:36:41 -05:00
Gaël PORTAY
54fd1f4b26
[mount] Print a warning if mount failure
...
The return of the call to libcalamares.utils.mount is never tested and
it may fail silently; this causes some mounpoints to be missing.
This adds a warning if mountpoint cannot be mounted.
chcon: failed to get security context of '/tmp/verity': Operation not supported
06:44:23 [6]: static CalamaresUtils::ProcessResult CalamaresUtils::System::runCommand(CalamaresUtils::System::RunLocation, const QStringList&, const QString&, const QString&, std::chrono::seconds)
Running "env" ("mount", "-t", "unformatted", "/dev/sdb2", "/tmp/calamares-root-kv8dqgb5/tmp/verity")
.. Finished. Exit code: 32
.. Target cmd: ("mount", "-t", "unformatted", "/dev/sdb7", "/tmp/calamares-root-kv8dqgb5/tmp/verity") output:
mount: /tmp/calamares-root-kv8dqgb5/tmp/verity: unknown filesystem type 'unformatted'.
2020-11-02 08:36:41 -05:00
Gaël PORTAY
1f9f506a16
[partition] Make mountPoint optional
...
Some devices cannot be mounted (as DM_verity_hash), therefore, it is
nosense to set a mountPoint for them.
2020-11-02 08:36:41 -05:00
Adriaan de Groot
486cdaeeb6
[users] Shuffle library order to satisfy CI build
2020-11-02 14:10:35 +01:00
Adriaan de Groot
2bd3f1d8c1
Merge branch 'issue-1523' into calamares
2020-11-02 13:08:30 +01:00
Adriaan de Groot
b61b5f8650
[users] Run an expected-to-fail test in creating groups
2020-11-02 12:27:50 +01:00
Adriaan de Groot
8127ae704c
[users] Expand tests for groups a little
2020-11-02 12:13:59 +01:00
Adriaan de Groot
e66f81f6ee
CMake: comment on BUILD_AS_TEST
2020-11-02 12:01:02 +01:00
Adriaan de Groot
10991346b7
Merge pull request #1561 from gportay/partition-set-swap-partition-name
...
[partition] Allow a configurable swap Partition name
2020-11-02 11:43:07 +01:00
Adriaan de Groot
7578768c46
Merge pull request #1562 from gportay/partition-group-efi-things-together
...
[partition] Group EFI things together
2020-11-02 11:39:44 +01:00
Artem Grinev
4e54a2aefe
[users] Cleaned error handling a bit
2020-11-02 04:01:01 +03:00
Artem Grinev
8e07bb00f9
[users] Construct icu::UnicodeString from QString's utf16 chars directly
2020-11-02 03:52:37 +03:00
Artem Grinev
48eae463cc
[users] Full name transliteration support for user creation
2020-11-01 19:45:12 -05:00
Adriaan de Groot
0bad5469fc
[libcalamares] Fix tests failures from JobQueue asserts
...
Some compile flags changed recently, triggering assert()
in the jobqueue when there is more than one. There's no
real reason for JobQueue to be a singleton, but it wants
to be. So clean up pointers a little more enthusiastically.
2020-11-01 17:59:41 +01:00
Adriaan de Groot
4746754344
[keyboard] Translate layouts as well
2020-11-01 14:28:12 +01:00
Adriaan de Groot
6863db0dc1
[keyboard] Use the translations if they were loaded
2020-11-01 14:19:06 +01:00
Adriaan de Groot
f088efdf84
[keyboard] Re-jig translation extraction
...
- Use classes to prompt lupdate to extract with a better
context (e.g. the class name, rather than plain "QObject")
so that the translation-lookup can use the named context.
- Add hard-coded "default" variant
- Add totally bogus Tajik translations, for testing purposes
2020-11-01 13:50:12 +01:00
Adriaan de Groot
1a5fa36fb6
i18n: build keyboard translations
...
This is the Wrong Thing To Do, but we'll do it for now: build the
keyboard translations into the executable. In the medium term
they should move to the modules that use them, with the re-vamp
of how translation changes are signalled.
2020-11-01 12:42:58 +01:00
Adriaan de Groot
b15a76804c
i18n: bogus Tajik keyboard translations
2020-11-01 12:41:21 +01:00
Adriaan de Groot
621ac9b8db
Merge branch 'partition-warnings' into calamares
2020-11-01 00:33:59 +01:00
Adriaan de Groot
4a08fdbb92
[partition] Reduce warnings from KPMCore
...
- make KPMHelper.h an "everything include" and suppress warnings
from it, then use it in the tests.
2020-11-01 00:20:17 +01:00
Adriaan de Groot
d26fde6647
[partition] Reduce warnings
...
- Add a helper header that munges the warnings-settings so that
KPMcore headers can be included.
2020-11-01 00:05:05 +01:00
Adriaan de Groot
c41ff94f8a
[locale] Reduce warnings (C++17)
...
Now that Calamares is compiled as C++17, we get this:
src/modules/locale/timezonewidget/TimeZoneImage.cpp:28:55: warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Wdeprecated]
/* static constexpr */ const QSize TimeZoneImageList::imageSize;
2020-10-31 23:48:20 +01:00
Adriaan de Groot
4d444cbfbb
[partition] Reduce warnings (Clang, FreeBSD)
...
The code doesn't match the comment: there are no by-ref captures
in the code, and the shadowing of parameters and local variables
is confusing. Remove one variable that is passed in as an argument
(and just pass the value as argument) and copy-capture the other
rather than doing weird argument passing.
2020-10-31 23:37:06 +01:00
Adriaan de Groot
0a44ce381e
[partition] Reduce warnings (Clang, FreeBSD)
...
- remove unused this captures from lambda
- rename variables that are short, cryptic, and shadowed
- remove documentation for parameters that don't exist
2020-10-31 23:16:48 +01:00
Gaël PORTAY
3967cfe0eb
[partition] Group EFI things together
2020-10-31 18:09:44 -04:00
Adriaan de Groot
9d930ad9cc
Docs: fix the table
2020-10-31 23:04:47 +01:00
Gaël PORTAY
a1d45122eb
[partition] Update partition.conf
2020-10-31 17:59:08 -04:00
Adriaan de Groot
8bfc4dfcd2
Docs: try to get the table of links right
2020-10-31 22:53:47 +01:00
Gaël PORTAY
dad9587c3e
[partition] Allow a configurable swap Partition name
...
This commit adds the new configuration `swapPartitionName` to the file
partition.conf.
This option sets the partition name to the swap partition that is
created. If this option is unset, the partition is left unnamed.
2020-10-31 17:39:50 -04:00
Adriaan de Groot
4387b8061e
[keyboard] Move responsibility for retranslation to Config
...
- only widgets get language change events, so we need to
hook that up to the ViewSteps and inform the Config
object so that it can (re)load translations for the
keyboard data.
2020-10-31 20:02:21 +01:00
Adriaan de Groot
71e0081fce
[keyboard] SPDX-tagging
2020-10-30 22:31:42 +01:00
Adriaan de Groot
7db398cfdf
Merge pull request #1558 from gportay/partition-cleanups
...
[partition] cleanups
2020-10-30 22:30:38 +01:00
Adriaan de Groot
89a04e0fa3
Merge pull request #1559 from gportay/libcalamres-cleanups
...
[libcalamres] cleanups
2020-10-30 22:28:16 +01:00
Adriaan de Groot
89a180ee58
[keyboard] Initial support for translated keyboard names
2020-10-30 16:24:56 +01:00
Adriaan de Groot
b72eba8157
[libcalamares] Extend the Deleter-helper with "preserve"
...
Sometimes you want to keep the thing around after all.
2020-10-30 15:58:38 +01:00
Adriaan de Groot
7659dfdb9d
[libcalamares] Expose a translations-loading function
2020-10-30 15:58:38 +01:00
Gaël PORTAY
f03ae06deb
[partition] Rename execute to createPartitions
2020-10-30 10:20:18 -04:00
Gaël PORTAY
f2bfe2bd6a
[partition] Fix coding style
2020-10-30 10:14:40 -04:00
Gaël PORTAY
cd725fbb4b
Fix missing SPDX-FileCopyrightText in header
2020-10-30 10:12:28 -04:00
Gaël PORTAY
2007335865
[partition] Rename the KPMCore Partition local to part
2020-10-30 10:12:28 -04:00
Gaël PORTAY
32c1f81fbf
[partition] Rename iterator in for loop to entry
2020-10-30 10:12:28 -04:00
Gaël PORTAY
3016b93c8f
[partition] Simplify the method execute
...
- Rename the "size" locals using "sectors" in their name. Size may be
confusing or not enough specific as it can be interpreted a size in
Byte.
partSizeMap -> partSectorsMap,
totalSize -> totalSectors,
availablesize -> availableSectors,
size -> sectors,
minSize -> minSectors
maxSize -> maxSectors
- Create a the new local currentSector to iterate over the sectors;
instead of using the parameter firstSector.
- Remove the variable end that does not help much; too many variable
already. Expand its expression instead.
2020-10-30 10:12:28 -04:00
Gaël PORTAY
81bec68b3d
[partition] Introduce new constructors for PartitionEntry
...
- Introduces new constructors for PartitionEntry: copy constructory and
constructor with all attributes.
- Use the new constructor in method addEntry().
2020-10-30 10:12:27 -04:00
Gaël PORTAY
3f2dd516d3
[partition] Simplify the retrieval of the size attributes
...
- The variant helper toString() takes a default value since commit
c9f942ad6 ([libcalamares] Add default value to variant helpers).
- Set the default value to 0 and simplify the retreival of size values
by calling the helper toString() and removing the temporary variables.
2020-10-30 10:11:56 -04:00
Gaël PORTAY
03df5f6891
[libcalamares] Fix constness of functions
2020-10-30 09:42:59 -04:00
Gaël PORTAY
aec066359a
[libcalamares] Fix coding style
2020-10-30 09:42:59 -04:00
Gaël PORTAY
db7cf74034
[partition] Remove the call the method contains
...
- The variant helper getString() calls contains() already.
2020-10-30 09:17:12 -04:00
Gaël PORTAY
d6ea30b23e
[partition] Move initLayout logic to object PartitionLayout
...
- The logic of the method initLayout belongs to the object
PartitionLayout. Move logic to that object.
- Use a single method initLayout in object PartitionCoreModule.
- Member m_partLayout in object PartitionCoreModule is no longer
allocated.
2020-10-30 09:17:12 -04:00
Gaël PORTAY
eae1e90dce
[partition] Remove unused PartitionLayout constructor
...
- The constructor PartitionLayout with PartitionEntry appears to be
unused since its always. Drop it!
2020-10-30 09:17:12 -04:00
Gaël PORTAY
f2960366c8
[partition] Remove unused addEntry method
...
- The method addEntry with PartitionEntry appears to be unused since its
always. Drop it!
2020-10-30 09:17:12 -04:00
Adriaan de Groot
ac6c9fae4a
[libcalamares] Do not use moved-from object
2020-10-30 13:51:53 +01:00
Adriaan de Groot
063fb24f3a
i18n: add translations source for keyboards
2020-10-30 12:43:03 +01:00
Adriaan de Groot
2e9a44269c
[keyboard] Extracted strings from keyboard list
2020-10-30 12:39:47 +01:00
Adriaan de Groot
5a378090c2
[keyboard] Do not munge keyboard model name
...
The translation happens whenever this code is run, which may
not match the language the user subsequently selects.
It also causes general problems with the translation,
since we end up with a possibly-partly-translated name.
2020-10-30 12:16:14 +01:00
Adriaan de Groot
7ec8c454bd
[keyboard] Ukranian needs a switcher, too
2020-10-30 11:21:57 +01:00
Adriaan de Groot
8457a00ad0
[keyboard] Fix group-switcher multiplying
...
FIXES #1556
2020-10-30 11:05:15 +01:00
Adriaan de Groot
daaf16d331
Merge branch 'calamares' into issue-1523
2020-10-29 16:33:27 +01:00
Adriaan de Groot
c36aa43f86
CI: use a larger tmpfs for the build (my local build/ is 112M)
2020-10-29 15:57:53 +01:00
Calamares CI
f822856441
i18n: [python] Automatic merge of Transifex translations
2020-10-29 14:28:48 +01:00
Calamares CI
3e57979e73
i18n: [desktop] Automatic merge of Transifex translations
2020-10-29 14:28:48 +01:00
Calamares CI
e4a8b8358f
i18n: [calamares] Automatic merge of Transifex translations
2020-10-29 14:28:48 +01:00
Adriaan de Groot
aeeb4332b0
Changes: add Vietnamese translation
2020-10-29 14:26:17 +01:00
Adriaan de Groot
018788ddc0
Changes: document Artem's work
2020-10-28 17:11:11 +01:00
Adriaan de Groot
8fd66933ee
Merge branch 'fix-keyboardq' into calamares
...
This lands Artem's work on supporting non-ASCII layouts better,
which currently only applies to Russian layouts -- it works with
a table, so it is easy to extend for other layouts.
The QML and Widget steps now completely share the Config backend,
which is why there's so many commits here: the Widget page needed
to have most of its code ripped out, and the models for
keyboard data were broken in various ways and needed fixing.
FIXES #1211
2020-10-28 17:03:57 +01:00
Adriaan de Groot
cd9c0ea781
[keyboard] Reduce debugging output
2020-10-28 17:00:12 +01:00
Adriaan de Groot
2e5301c5c9
[keyboard] Simplify back down to lambdas
...
- With debugging and untangling done, the lambdas are simple
and short, so return to using them. One point of improvement
might be to give the models suitable slots themselves,
to avoid even this indirection.
2020-10-28 16:54:08 +01:00
Adriaan de Groot
0bf28b0b94
[keyboard] Sanity in setCurrentIndex() parameters
2020-10-28 16:47:52 +01:00
Adriaan de Groot
9e141636c5
[keyboard] Tidy up the debugging output, add docs
2020-10-28 16:40:43 +01:00
Adriaan de Groot
14a76a386a
[keyboard] Replace broken-ish variants model with k-v list
...
- Use the just-refactored XKBListModel to store the xkb key-value
pairs for variants, drop most of the complicated implementation,
store just a single list of values.
2020-10-28 16:29:52 +01:00
Adriaan de Groot
d536173d66
[keyboard] Factor out a 2-column k-v list
2020-10-28 16:29:52 +01:00
Adriaan de Groot
5afe54132b
[keyboard] Use the models from Config
...
- Remove code that is duplicated in Config.
- Hook up UI for physical keyboard model, and back.
- For now, introduce some named slots with debugging output.
This makes debugging a lot easier since we have function names
to work with rather than anonymous lambdas
2020-10-28 16:01:38 +01:00
Adriaan de Groot
168be02c96
[keyboard] Hook up the model-selection again
2020-10-28 14:03:46 +01:00
Adriaan de Groot
87aafb2442
[keyboard] Tear up connections between widgets and model
2020-10-28 13:57:57 +01:00
Adriaan de Groot
193efe1710
[keyboard] Restore the notion of PC105 default index
2020-10-28 13:57:57 +01:00
Adriaan de Groot
6aedf4401f
[keyboard] Apply coding style
2020-10-28 13:41:34 +01:00
Adriaan de Groot
365a2ad6fd
[keyboard] Re-do the keyboard physical models model from scratch
2020-10-28 13:41:21 +01:00
Adriaan de Groot
a1c70b46a1
[keyboard] Typo in comment
2020-10-28 13:06:43 +01:00
Adriaan de Groot
5f1d7b2e8d
[keyboard] Rename UI widgets to make code clearer
2020-10-28 10:38:51 +01:00
Adriaan de Groot
d464e98e89
[keyboard] Move remaining variables to Config
...
- Config already *has* everythind, but drop the useless copies
and duplicated code from the Page
- Plug the models model into the Page
- While here, document the model / layout / variant distinctions
The code doesn't fill the UI properly, and the drop-down
for the models combobox is not right, but at least the data
is shared.
2020-10-28 01:25:42 +01:00
Adriaan de Groot
fe5757c7d1
[keyboard] Matching of layouts is very suspect
2020-10-28 01:07:49 +01:00
Adriaan de Groot
4f0d6a8f25
Merge branch 'calamares' into fix-keyboardq
2020-10-28 00:04:40 +01:00
Adriaan de Groot
dca9ae0c93
Merge pull request #1553 from LordTermor/calamares
...
Initial additional layout support for non-ASCII layouts
2020-10-27 22:11:23 +01:00
Artem Grinev
4434e85d4d
[keyboard] Simplified variable name
2020-10-27 20:53:20 +03:00
Artem Grinev
3552233bf1
[keyboard] Minor logic rework
2020-10-27 20:48:18 +03:00
Artem Grinev
6667ea834f
[keyboard] Adjusted indents
2020-10-27 20:42:49 +03:00
Artem Grinev
996c82160e
[keyboard] fixed typo
2020-10-27 20:38:04 +03:00
Adriaan de Groot
4a3273d634
[keyboard] Remove superfluous variable (set to true, never changed)
2020-10-27 16:59:22 +01:00
Artem Grinev
bfc60ad2cf
[keyboard] Implemented X11 config writing for additional layout
2020-10-27 18:59:10 +03:00
Artem Grinev
0dd027af90
[keyboard] Fixed condition bug
2020-10-27 18:59:10 +03:00
Artem Grinev
19b1fb3358
[keyboard] Added explanatory comment for xkbmap_query_grp_option
2020-10-27 18:59:10 +03:00
Artem Grinev
384b1ba8c6
[keyboard] Swapped primary and additional layouts in selection
2020-10-27 18:59:10 +03:00
Artem Grinev
354dc1613a
[keyboard] Removed unnecessary repacking in xkbmap_layout_args
2020-10-27 18:59:10 +03:00
Artem Grinev
09b5e42734
[keyboard] Minor additional layout info rework
2020-10-27 18:59:10 +03:00
Artem Grinev
17b9647016
[keyboard] Support for additional layout if current layout is not ASCII-
...
capable in live system
2020-10-27 18:59:10 +03:00
Adriaan de Groot
8cf3bd23b9
[keyboardq] Remove superfluous variable (set to true, never changed)
2020-10-27 16:55:02 +01:00
Adriaan de Groot
734dbece8a
[keyboardq] Fix include style, remove unnecessary declarations
2020-10-27 16:47:47 +01:00
Adriaan de Groot
0947cd8354
[keyboard] Migrate to Config::onActivate() which is badly-named
2020-10-27 16:12:36 +01:00
Adriaan de Groot
0ffa500432
[keyboard] Remove unused code
...
- this has already migrated to Config but had not been removed locally
2020-10-27 15:56:50 +01:00
Adriaan de Groot
35a2bd3f0f
[keyboard] Use Config's own finalize()
2020-10-27 15:55:29 +01:00
Adriaan de Groot
14c079d1d6
[keyboard] Replace own copy of status by the one from Config
2020-10-27 15:53:59 +01:00
Adriaan de Groot
acb5190217
[keyboard] Use Config methods rather than own copy
...
- this continues the port of the keyboard module to use the Config
object, which was horribly botched earlier.
2020-10-27 15:51:48 +01:00
Adriaan de Groot
679f613955
[keyboard] Rename mysterious Config::init() to descriptive name
2020-10-27 15:48:51 +01:00
Adriaan de Groot
a940be2bb4
[keyboardq] Load configuration into Config object
2020-10-27 15:46:18 +01:00
Adriaan de Groot
8142d6f86c
[keyboardq] Drop unnecessary variable -- just use the Config status
2020-10-27 15:42:27 +01:00
Adriaan de Groot
83b06fe3cb
Changes: credits for this round
2020-10-27 15:38:38 +01:00
Adriaan de Groot
98c7cec732
CMake: restore NOTREACHED, without the macro-mess
...
- gcc (up to at least version 10) is worse at recognizing that all
cases have been handled, so it complains about all the switches
that cover enum values.
2020-10-25 18:52:38 +01:00
demmm
f6e6774f92
[keyboardq] fix build
2020-10-25 18:35:03 +01:00
Adriaan de Groot
fea403186f
[libcalamares] Search for balance between warnings and annotations
...
- CI's gcc is too old to analyse a switch() for completeness,
so the CI build fails.
2020-10-25 17:49:26 +01:00
Adriaan de Groot
478c394d99
[partition] Don't needlessly expose a test symbol
2020-10-25 17:49:26 +01:00
Andrius Štikonas
f629826d40
README: switch to C++17.
2020-10-25 11:54:27 +00:00
Adriaan de Groot
2b9fa0f982
CMake: drop the NOTREACHED macro
...
- both clang and g++ support __builtin_unreachable(); (as Kevin
Kofler pointed out) so we don't need the macro to do different things;
- the compilers have gotten better at detecting unreachable code,
so instead of inserting macros or fiddly bits, just drop them
and the unreachable code they comment.
2020-10-25 12:49:49 +01:00
Adriaan de Groot
9a2fca7f5b
CMake: prefer normal C++17 [[fallthrough]] annotation
2020-10-25 12:49:49 +01:00
Adriaan de Groot
364d50679f
CMake: don't put linker flags in compile-flags variables
2020-10-25 12:49:49 +01:00
Adriaan de Groot
7fa1c1b787
[libcalamares] Avoid object-slice
...
g++ warns that error_already_set is polymorphic, and we're catching
by-value (although we don't use that value). Avoid that.
2020-10-25 12:49:49 +01:00
Adriaan de Groot
84936a95fc
[libcalamaresui] Warnings-- for Qt 5.15 deprecations
...
Introduce a GUI-oriented compatibility header that introduces aliases
for some enum values that are deprecated in Qt 5.15
2020-10-24 13:00:48 +02:00
Adriaan de Groot
b28a50de6f
[libcalamares] Remove useless variable
...
- describe() is for debugging purposes, doesn't need to calculate
whether the requirements are accepted.
2020-10-24 12:35:19 +02:00
Adriaan de Groot
6c7d295712
CMake: simplify C and C++ flags
...
- reduce the difference between clang and g++ builds, factor
common flags out of the CMake-if
- drop special boost-warning-suppression, we do that differently
most of the time in the affected source files
2020-10-24 12:32:07 +02:00
Adriaan de Groot
00fa911f72
CMake: switch to C++17
2020-10-24 02:31:38 +02:00
Adriaan de Groot
27f6eaaf75
[partition] Remove unused variables
2020-10-24 02:24:37 +02:00
Adriaan de Groot
89b1f8d96b
[partition] Warnings-- in tests related to virtual destructors
2020-10-24 02:21:32 +02:00
Adriaan de Groot
01b75ef4b5
[partition] Use C++-style cast
2020-10-24 02:19:05 +02:00
Adriaan de Groot
6605e11394
[partition] Warnings-- in test: don't expose internal variable
2020-10-24 02:05:14 +02:00
Adriaan de Groot
cb2b53ebf3
Merge remote-tracking branch 'origin/issue-1515' into calamares
2020-10-23 23:51:25 +02:00
Adriaan de Groot
d7e64de24a
[partition] Adjust docs to function
...
- @params referring to things that don't exist
- @brief that is 3 lines long
2020-10-23 23:14:00 +02:00
Adriaan de Groot
eb8e95bb87
[partition] Warnings--, explain why we're using a void*
2020-10-23 22:39:05 +02:00
Adriaan de Groot
9910b23152
[partition] Avoid uninitialized variable
...
- if the partition size is invalid, then warn about it but do
not print the (uninitialized) size of the partition.
- shuffle code to continue earlier, allowing the "good path"
code to be out-dented.
2020-10-23 22:34:53 +02:00
Adriaan de Groot
687a795b71
[partition] Warnings-- by initialization order
2020-10-23 22:31:22 +02:00
Adriaan de Groot
44a11bd93b
[partition] Initialize in the initializer list, if possible
2020-10-23 22:27:30 +02:00
Adriaan de Groot
51b47862cd
[partition] Mark destructors override
...
This reduces compiler warnings related to virtual-overriding
functions: all the destructors are virtual.
2020-10-23 22:23:10 +02:00
Adriaan de Groot
697ee6f65f
CI: accept clang-format90 (FreeBSD naming style)
2020-10-23 17:16:37 +02:00
Adriaan de Groot
aa6109d470
[machineid] Improve config-documentation
2020-10-23 17:16:24 +02:00
Adriaan de Groot
daeee09fdb
[machineid] Simplify loading of the list of entropy-files
2020-10-23 17:15:55 +02:00
Adriaan de Groot
275e6b9342
Merge pull request #1542 from gportay/fix-message-if-no-option-available
...
[partition] Fix message user if no option available
2020-10-23 12:45:06 +02:00
Adriaan de Groot
9e624c7bd5
[unpackfs] Fix schema validation
...
- the *weight* key was introduced without a corresponding schema
change, so the examples didn't validate anymore.
2020-10-23 12:40:03 +02:00
Adriaan de Groot
0d4d3e3c4d
[users] Set up GS rootMountPoint for test
2020-10-23 12:27:44 +02:00
Adriaan de Groot
63196ab58f
[users] Avoid crashes in tests due to nullptr GS
2020-10-23 12:19:28 +02:00
Adriaan de Groot
c412e285c2
[libcalamares] Link publicly to yaml-cpp
...
Needed on FreeBSD, where you otherwise might not get the
include paths for yaml-cpp added -- and utils/Yaml.h
expects them to be there.
2020-10-23 12:01:29 +02:00
Adriaan de Groot
cd8c3089cb
[users] Fix build: renamed moc file
2020-10-23 11:14:59 +02:00
Gaël PORTAY
d91683eec6
[partition] Fix message user if no option available
...
The button m_eraseButton is not tested while the button
m_somethingElseButton is tested twice.
2020-10-22 13:23:36 -04:00
Adriaan de Groot
89d495d5fb
[users] Rename file to match its purpose
2020-10-22 14:22:11 +02:00
Adriaan de Groot
5b4f9d0b98
[users] Adjust tests for changed API
2020-10-22 14:21:14 +02:00
Adriaan de Groot
f1772a7eae
[users] Create groups in a separate job
2020-10-22 14:11:01 +02:00
Adriaan de Groot
03541470d5
[users] Handle system-group creating specially
2020-10-22 14:08:33 +02:00
Adriaan de Groot
fa1d314b13
[users] Refactor group-creation into separate Job
2020-10-22 13:49:45 +02:00
Adriaan de Groot
3d289f345a
[users] Refactor users functionality to a static lib
...
- this makes it less fragile to share all the functionality
with usersq, since it ends up in the library which is shared
between the modules.
2020-10-21 15:02:33 +02:00
Adriaan de Groot
6560ef00a1
[usersq] Fix build of usersq after refactor elsewhere
2020-10-21 14:46:07 +02:00
Adriaan de Groot
29e6934672
[users] Factor out Sudo creation into separate job
2020-10-21 14:43:45 +02:00
Adriaan de Groot
0cb6c89876
[netinstall] Don't update selection state for items with no children
...
The special setup for nicely-named groups which have a single
hidden subgroup containing the actual packages, has the problem
that there is a non-empty subgroups item, but this results
in zero actual children: then the number of selected and partly
selected children is also zero in updateSelected() and therefore
the item ends up unselected.
Special-case this to avoid unnecessarily unselecting the item.
Reported by Vitor L.
2020-10-20 23:15:32 +02:00
Adriaan de Groot
328a5bbbfb
[users] Don't allow continuing with an empty login name
...
The status for an empty login name is '' (empty), for ok -- this is
so that there is no complaint about it. But it's not ok to
continue with an empty name.
2020-10-19 11:46:08 +02:00
Adriaan de Groot
bf50f8724d
Changes: post-release housekeeping
2020-10-18 21:58:54 +02:00
Adriaan de Groot
27dc81f8b9
[partition] Fix typo in debug message, reported by Kevin Kofler
2020-10-17 16:41:08 +02:00
Adriaan de Groot
4d3f20f4a7
[users] Don't allow continuing with an empty login name
...
The status for an empty login name is '' (empty), for ok -- this is
so that there is no complaint about it. But it's not ok to
continue with an empty name.
2020-10-17 15:48:12 +02:00
Calamares CI
ba1013e5a7
i18n: [python] Automatic merge of Transifex translations
2020-10-17 15:22:35 +02:00
Calamares CI
5a7bcb07d0
i18n: [calamares] Automatic merge of Transifex translations
2020-10-17 15:22:34 +02:00
Adriaan de Groot
ac5c9e3a90
Changes: pre-release housekeeping
2020-10-17 15:21:03 +02:00
Adriaan de Groot
3313a5341d
[partitions] Adapt to KPMcore 4.2 changes
2020-10-17 14:59:01 +02:00
Adriaan de Groot
36396d0cfd
[partition] Adjust message and fix debug message
2020-10-16 22:32:32 +02:00
Adriaan de Groot
9a5099cd48
Changes: post-release housekeeping
2020-10-16 21:43:22 +02:00
Adriaan de Groot
ee302debdf
Merge pull request #1539 from yurchor/patch-3
...
[partition] Add missing space
2020-10-16 19:06:46 +02:00
Andrius Štikonas
72187f0ff7
Changes: update recommended KPMCore version.
2020-10-16 16:52:14 +01:00
Adriaan de Groot
8f4bc9e58c
Changes: pre-release housekeeping
2020-10-16 16:39:58 +02:00
Adriaan de Groot
545e761666
i18n: update language list
2020-10-16 15:07:13 +02:00
Calamares CI
51a87071ae
i18n: [python] Automatic merge of Transifex translations
2020-10-16 15:03:48 +02:00
Calamares CI
2be2e1808a
i18n: [dummypythonqt] Automatic merge of Transifex translations
2020-10-16 15:03:48 +02:00
Calamares CI
eead42b773
i18n: [desktop] Automatic merge of Transifex translations
2020-10-16 15:03:48 +02:00
Calamares CI
ea220e4f7a
i18n: [calamares] Automatic merge of Transifex translations
2020-10-16 15:03:48 +02:00
Adriaan de Groot
f44dd73993
i18n: Friulian exceeds expectations
2020-10-16 15:01:30 +02:00
Adriaan de Groot
d63e23b289
Merge branch 'issue-1540' into calamares
...
FIXES #1540
2020-10-16 13:56:52 +02:00
Adriaan de Groot
81f12cb230
[libcalamares] Do GeoIP lookups with a fake User-Agent
2020-10-16 13:55:31 +02:00
Adriaan de Groot
3b14e354b0
[libcalamares] Log more HTTP errors during requests
2020-10-16 13:07:57 +02:00
Adriaan de Groot
436e1de820
[libcalamares] Be more chatty in GeoIP test application
2020-10-16 12:36:03 +02:00
Yuri Chornoivan
1448a9b9a1
Add missing space
2020-10-15 20:55:37 +03:00
Adriaan de Groot
032ed49cc4
i18n: for this release only, ignore Friulian, since they only just showed up today
2020-10-15 12:52:40 +02:00
Adriaan de Groot
7734d84925
[shellprocess] Bump the default timeout to 30, emphasise tuning the timeout
...
FIXES #1536
2020-10-15 00:15:37 +02:00
Adriaan de Groot
0b61a02c31
[fstab] Avoid dd in creating a zeroed-file for swap
...
- Create a 16kiB buffer of zeroes
- write that out in a loop
2020-10-14 16:55:14 +02:00
Adriaan de Groot
c7c7e6a6c1
[keyboard] Move configuration to the Config object
...
- information from the configuration file -> Config object
- job creation -> Config object
Ignore keyboardq for now.
2020-10-14 15:50:21 +02:00
Adriaan de Groot
0f6602cad7
[keyboard] Improve xkb parsing
2020-10-14 15:50:21 +02:00
Adriaan de Groot
ec42e3294f
[keyboard] Refactor argument-lists for setxkbmap
...
- separate functions for model, and layout+variant settings
2020-10-14 15:50:21 +02:00
Adriaan de Groot
b54273f904
[keyboard] Move all the keyboard (AbstractList)Models to the models file
2020-10-14 15:50:21 +02:00
Adriaan de Groot
2911c789f9
[users] Fix up tests for login status
...
- an empty login name is "ok" even if it isn't -- there's no
warning message in that case
2020-10-14 15:21:41 +02:00
Adriaan de Groot
89e279c96a
[users] Set auto- and sudo-groups correctly
...
- Was updating GS only, not internals
- restructure all to update internals, then GS, then emit change signals
2020-10-14 15:21:41 +02:00
Adriaan de Groot
f726634c2f
[users] Fix tests for setting shell
...
- The EXPECT_FAIL value "Abort" stops the test (I wanted 'if this
unexpectedly passes, raise an error' -- should have read the
documentation more closely).
- Set the shell in the config object, not just in GS.
2020-10-14 15:21:41 +02:00
Adriaan de Groot
6b2d7f6a42
[users] Protect against JobQueue or GS being NULL
...
- Avoid SIGSEGV in tests, make sure JobQueue exists, GS optional
2020-10-14 15:21:19 +02:00
Adriaan de Groot
788a233319
[users] Introduce a test for Config getters and setters
2020-10-14 15:21:15 +02:00
Adriaan de Groot
58f10739e1
[users] Show progress during the module
...
- add a status member so the different steps can show progress
as the user is created and configured. The progress values
are hard-coded guesses as to how much work is done for each step.
- while here, reduce the scope of the global storage variable
2020-10-14 15:21:10 +02:00
Adriaan de Groot
ef70b2c32e
[users] Run CreateUserJob off of the Config object
...
- don't pass in copies or bits of the Config, hand over the whole Config
- don't pluck some parts of the Config from Global Storage
2020-10-14 15:21:10 +02:00
Adriaan de Groot
02e9872a99
[users] Handle detailed groups list
...
Groups can be specified with must_exist and/or system set,
so they fill in the groups list more carefully.
2020-10-14 15:21:10 +02:00
Adriaan de Groot
a86374386b
[users] Add test for new notation for groups-with-details
2020-10-14 15:21:10 +02:00
Adriaan de Groot
07027c2430
[users] Test distinguishes system groups from user groups
2020-10-14 15:21:10 +02:00
Adriaan de Groot
ff9abdfc08
[users] The fallback groups are all **system** groups
2020-10-14 15:21:10 +02:00
Adriaan de Groot
b20c80a28c
[users] Introduce class-scoped aliases for true and false for the bools
...
This is somewhat experimental and weird; the idea is that bool
arguments are a lot easier to understand if there are proper
names attached, rather than "true" and "false".
2020-10-14 15:20:26 +02:00
Adriaan de Groot
1d696253c3
[displaymanager] Missing space in user-visible string due to line-breaks
2020-10-14 15:18:51 +02:00
Adriaan de Groot
8271b8399c
Merge branch 'issue-1535' into calamares
...
FIXES #1535
2020-10-14 01:52:06 +02:00
Adriaan de Groot
61100f1a73
[netinstall] Massage the documentation a little
2020-10-14 01:51:44 +02:00
Adriaan de Groot
958fb7e7b0
[netinstall] Complain about nonsensical hidden groups
2020-10-14 01:49:00 +02:00
Adriaan de Groot
f093789deb
[netinstall] Complain about bad config
...
- it's easy to miss a in hidden subgroups and other complex
groups configurations, so complain loudly.
2020-10-14 01:41:16 +02:00
Adriaan de Groot
ceeab7087c
[users] Fix implementation so existing tests pass
2020-10-13 22:12:26 +02:00
Adriaan de Groot
e46d9f735d
[users] Adjust tests to changed groups-list
2020-10-13 17:36:24 +02:00
Adriaan de Groot
d3135898fd
[users] More fine-grained group descriptions
...
Describe groups with more detail:
- groups can be system groups (low GID) or not
- groups may be pre-configured (e.g. come from the unpackfs stage)
2020-10-13 17:35:07 +02:00
Adriaan de Groot
5895f3fb71
Merge branch 'issue-1528' into calamares
...
- don't blank out the text in the progress bar if the job provides no
message -- just leave the last message shown. FIXES #1527
(There's no point in having more than one copy of those initcpio*
modules, so just use the prettyName()).
- when a job starts, look for status, then description, then name so
that **something** is shown as text in the progress bar.
- give *shellprocess* the possibility to change its own labels
through translations in the config file. #FIXES #1528
2020-10-13 01:49:43 +02:00
Adriaan de Groot
6221c6497a
[shellprocess] Allow customizing the name of the job
2020-10-13 00:59:47 +02:00
Adriaan de Groot
21598ef4b3
[libcalamaresui] Update progress message only if it is non-empty
...
This improves the situation for jobs that do not provide
a status: their blank status does not overwrite the status
bar, and since (previous commit) the description or name
is used to start the job if the status is empty, at least
**something** is displayed.
SEE #1528
2020-10-13 00:23:57 +02:00
Adriaan de Groot
86fd014bbd
[libcalamares] Fallback from status -> description -> name for progress
2020-10-13 00:00:37 +02:00
Adriaan de Groot
2f83d85e29
[libcalamares] Explain process failure in debug log a bit better
2020-10-12 23:19:15 +02:00
Adriaan de Groot
9c457f9449
[shellprocess] Improve documentation and examples
2020-10-12 23:11:00 +02:00
Adriaan de Groot
a955791766
Apply coding style globally again
2020-10-12 14:27:01 +02:00
Adriaan de Groot
cff24bdd79
Changes: mention partiton PRs from GP
2020-10-12 14:16:11 +02:00
Adriaan de Groot
1df4239c02
Merge pull request #1436 from gportay/osprober-strip-extra-file-after-at-sign
...
[partition] Strip extra file after the at sign
2020-10-12 13:33:10 +02:00
Adriaan de Groot
6aa8ba119e
Merge pull request #1415 from gportay/partition-table-type-settings
...
[partition] Partition table type settings
2020-10-12 13:32:56 +02:00
Gaël PORTAY
2b1e516ec1
[partition] Strip extra file after the at sign
...
- os-proper may return an extra file after the device:
/dev/sda1:Ubuntu 19.10 (19.10):Ubuntu:linux
/dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
2020-10-07 09:57:18 -04:00
Gaël PORTAY
2bbbb68838
[partition] Add setting for requiredPartitionTableType
2020-10-07 08:10:24 -04:00
Gaël PORTAY
70f8beb931
[partition] Add setting for defaultPartitionTableType
2020-10-06 20:46:17 -04:00
Adriaan de Groot
9486ee6fbf
Merge pull request #1524 from gportay/partition-message-user-if-no-option-available
...
[partition] Message user if no option available
2020-10-07 01:32:13 +02:00
Adriaan de Groot
464da39f60
Changes: post-release housekeeping
2020-10-07 01:31:38 +02:00
Adriaan de Groot
9ce08beead
[libcalamares] Fix build
...
- The API definitions are just the symbols to define; these
are variously added through add_definitions() (needs -D)
or target_add_definitions() (doesn't).
2020-10-07 01:15:12 +02:00
Adriaan de Groot
40aa0fcaba
CMake: add a helper module for finding KPMcore
...
I think we had this (kind of) module a long time ago and it was
removed for over-complicating things; re-introduce one now that
KPMcore is used in 3 different places and all would benefit
from consistent API handling / defines.
2020-10-07 00:11:18 +02:00
Adriaan de Groot
db537535ee
[partition] Support KPMCore 3.3 in tests
2020-10-06 23:51:30 +02:00
Adriaan de Groot
f28d28a455
[partition] Ignore KPMCore 4 beta versions
2020-10-06 23:49:11 +02:00
Adriaan de Groot
58d0e4b491
Changes: mention 1-cpu problem
2020-10-06 23:17:42 +02:00
Adriaan de Groot
f8e375cc9d
Changes: pre-release housekeeping
2020-10-06 22:32:49 +02:00
Adriaan de Groot
ffece5ffb9
Changes: Credits and documentation for changes this cycle
2020-10-06 22:31:41 +02:00
Adriaan de Groot
88b1d36009
Merge branch 'issues-1166' into calamares
...
FIXES #1166
2020-10-06 22:25:33 +02:00
Adriaan de Groot
26e8a6bcb5
Changes: explain the swapfile settings (and how limited they are)
2020-10-06 22:25:14 +02:00
Adriaan de Groot
faa496be4a
Merge pull request #1522 from kadler15/issue-1521
...
[preservefiles] Fix global storage JSON dump
2020-10-06 21:53:32 +02:00
Adriaan de Groot
3e94570849
Merge pull request #1525 from tintou/calamares
...
[partition] Add tests for Layout-constrained partionning
2020-10-06 21:46:21 +02:00
Corentin Noël
a7bd1040c5
[partition] Add tests for Layout-constrained partionning
2020-10-06 17:48:12 +02:00
Adriaan de Groot
77e2701365
[partition] Coding style
...
- various clang-format versions battle for supremacy
2020-10-06 17:21:54 +02:00
Adriaan de Groot
b4cbf73e2d
Merge branch 'calamares' into issues-1166
2020-10-06 17:19:14 +02:00
Adriaan de Groot
0b3a6baeea
[fstab] If swap is "file" then create it here
...
- handle swapfiles when writing /etc/fstab in the target system
- special-case mountpoint
- since swapfiles are not a partition, take the setting out
of partitionChoices
- create the physical swapfile as well (there's no other place
where it would make sense)
2020-10-06 17:05:22 +02:00
Adriaan de Groot
029c3f1c74
[partition] Write the install choices to Global Storage
2020-10-06 15:54:26 +02:00
Adriaan de Groot
92a874dae7
[partition] move the swap-choice to Config
2020-10-06 15:44:14 +02:00
Corentin Noël
08138f5a41
[partition] Reduce direct dependency of PartUtils on PartitionCoreModule
2020-10-06 14:28:20 +02:00
Adriaan de Groot
063482339f
Merge branch 'unpack-progress' into calamares
2020-10-06 13:42:29 +02:00
Adriaan de Groot
7125012a35
Changes: document unpackfs
2020-10-06 13:42:17 +02:00
Adriaan de Groot
672e27564e
[unpackfs] Also report progress every half-second, if possible
...
This still won't help if there's one really huge file that takes
several seconds to write, but if there's a bunch of files together
that is less than a file_chunk_count but take more than a half-
second to write, update anyway
2020-10-06 13:39:22 +02:00
Adriaan de Groot
57fa51ecd9
[unpackfs] Simplify progress reporting more
...
If there's thousands of files in a squashfs (e.g. 400000 like on
some ArcoLinux ISOs) then progress would be reported every
4000 files, which can take quite some time to write. Reduce
file_chunk_count to at most 500, so that progress is reported
more often even if that wouldn't lead to a visible change
in the percentage progress: instead we **do** get a change
in files-transferred numbers.
- The total weight is only needed by the UnpackOperation,
not by each entry.
- Use a chunk size of 107 so that the number-complete seems busy:
the whole larger-or-smaller chunk size doesn't really matter.
- The progress-report was missing the weight of the current
module, so would report way too low if weight > 1. This affects
ArcoLinux configurations where one entry is huge and one is a
single file, so weights 50 and 1 are appropriate.
2020-10-06 13:38:28 +02:00
Adriaan de Groot
bc591f9bc1
[unpackfs] Re-vamp progress reporting
...
- simplify calculation of progress
2020-10-06 13:36:35 +02:00
Adriaan de Groot
8173b68a71
[unpackfs] Debug-log the weights of the modules
2020-10-06 11:54:39 +02:00
Adriaan de Groot
632445a431
[unpackfs] Give entries a weight
...
When there are multiple entries, the overall weight of the
module is divided between the entries: currently each entry
takes an equal amount of space in the overall progress.
When there are multiple entries which take wildly different
amounts of time (e.g. a squash-fs and a single file) then
the progress overall looks weird: the squash-fs gets half
of this module's weight, and the single file does too.
With the new *weight* key for entries, that division can
be tweaked so that progress looks more "even".
2020-10-06 11:44:00 +02:00
Adriaan de Groot
44f8a7ae47
[libcalamares] Reduce chattiness again of job progress
2020-10-06 11:03:55 +02:00
Calamares CI
2a795843e2
i18n: [python] Automatic merge of Transifex translations
2020-10-06 11:03:08 +02:00
Calamares CI
540a1c05b7
i18n: [calamares] Automatic merge of Transifex translations
2020-10-06 11:03:08 +02:00
Gaël PORTAY
79740c77a3
[partition] Message user if no option available
2020-10-06 04:10:27 -04:00
Kris Adler
e92927cff9
[preservefiles] Fix global storage JSON dump
...
fixes calamares/calamares#1521
2020-10-03 17:38:20 -05:00
Adriaan de Groot
ddf3b2d399
Merge branch 'debug-job-progress' into calamares
...
This makes things fairly chatty, especially again during
rsync, so will be dialed back before release.
2020-10-03 12:27:10 +02:00
Adriaan de Groot
ae09537bea
Merge pull request #1519 from tintou/calamares
...
[partition] Fix regression in partition size assignment
2020-10-02 22:49:29 +02:00
Adriaan de Groot
6e30a7b8f6
[partition] Move is-manual-partitioning-allowed to the Config object
2020-10-02 13:04:12 +02:00
Adriaan de Groot
f79fbd4105
[partition] Add swap choice to config object
2020-10-02 12:40:13 +02:00
Adriaan de Groot
0f4fe6294c
[partition] Migrate type for SwapChoice to Config object
2020-10-02 12:22:53 +02:00
Adriaan de Groot
881661e94b
[partition] Migrate InstallChoice to the Config object
2020-10-02 12:08:42 +02:00
Corentin Noël
0293015b09
[partition] Fix regression in partition size assignment
...
In some cases, the partition size was set to zero as the maxSize isn't always defined.
2020-10-01 15:38:18 +02:00
Adriaan de Groot
8e4ec921c6
Docs: links layout
2020-09-30 11:06:08 +02:00
Adriaan de Groot
6167c81654
Docs: fix up IRC links
2020-09-30 10:59:59 +02:00
Adriaan de Groot
613966d3ff
Docs: add a CONTRIBUTING.md
2020-09-30 10:53:04 +02:00
Adriaan de Groot
9104853ed9
Changes: update Calamares manpage
...
- fix broken URL
- add a little description
- add newer command-line flags
FIXES #1516
2020-09-29 16:41:57 +02:00
Adriaan de Groot
010526ee2a
[partition] Coding style
2020-09-29 14:04:12 +02:00
Adriaan de Groot
b41e4624c9
[partition] Move 'selected installation option' to Config
2020-09-29 14:00:49 +02:00
Adriaan de Groot
10d194d693
[partition] Simplify button-selection
2020-09-29 12:22:50 +02:00
Adriaan de Groot
584dec23d4
i18n: city names in Ukraine follow Ukranian transliteration (en)
2020-09-29 12:05:01 +02:00
Adriaan de Groot
a92cb32cef
[partition] set the right buttons if an action is pre-selected
2020-09-28 17:46:42 +02:00
Adriaan de Groot
b518ef7dfe
[partition] Select initial swap choice
2020-09-28 15:37:12 +02:00
Adriaan de Groot
9f0f600aa4
[partition] Remove the 'swapfile-unsupported' message
2020-09-28 14:53:38 +02:00
Adriaan de Groot
3bb5adcfca
[partition] Simplify *efiSystemPartition* settings
2020-09-28 14:52:18 +02:00
Adriaan de Groot
f155c8351b
[partition] Only one setting for partitionLayout is supported
2020-09-28 14:48:55 +02:00
Adriaan de Groot
b6dd23a384
Merge branch 'calamares' into issues-1166
2020-09-28 14:34:39 +02:00
Adriaan de Groot
ace6323987
[libcalamares] Be even more chatty in job progress
...
This is for debugging-job-progress reports.
2020-09-28 11:35:41 +02:00
Adriaan de Groot
75b01cfc0a
[libcalamares] Some debugging output for job progress, so you can double-check that the settings are being picked up
2020-09-23 16:14:09 +02:00
Adriaan de Groot
ffed7b6d71
[partition] Warnings-- over QButtonGroup
...
- this was deprecated in 5.15 and an alternative introduced also
in 5.15, so it's a pain in the butt for backwards-compatibility.
2020-09-23 11:16:23 +02:00
Adriaan de Groot
6b07bdf6ed
[keyboard] Do not use deprecated Qt4-era indexChanged for text
2020-09-22 23:51:35 +02:00
Adriaan de Groot
02423c823d
[libcalamaresui] Nothing uses the opacity for pixmaps, drop that too
2020-09-22 23:03:38 +02:00
Adriaan de Groot
268cf203a8
[libcalamaresui] Remove unused parameter/functionality
...
- nothing in Calamares uses the tinting, and it triggers some
deprecation warnings, so just remove it.
2020-09-22 23:01:22 +02:00
Adriaan de Groot
2878c474c5
Warnings-- (~T() override)
...
Change all the places that had
virtual ~T() override
to the less redundant form without override.
2020-09-22 22:49:30 +02:00
Adriaan de Groot
2126be6d6d
Warnings-- (~T() override)
...
Consistently use
~T() override;
in class declarations (so no virtual in front, and avoid
warnings due to the missing override in back).
2020-09-22 22:40:52 +02:00
Adriaan de Groot
7d5a209dd0
[modules] Warnings-- in tests (~Test() override)
2020-09-22 22:37:55 +02:00
Adriaan de Groot
8b66009d59
[libcalamares] Warnings-- in tests (~T() override)
2020-09-22 22:37:29 +02:00
Adriaan de Groot
0cffac10c6
[libcalamares] Ignore more warnings for system header YAML
2020-09-22 22:37:29 +02:00
Adriaan de Groot
5a75d68534
[3rdparty] Warnings-- (override) in KDSAG
2020-09-22 22:37:19 +02:00
Adriaan de Groot
fc2a5d145a
[3rdparty] Warnings-- (override) in waitingspinnerwidget
2020-09-22 22:37:04 +02:00
Adriaan de Groot
fbab554dfa
[libcalamares] Remove unused parameter for PythonJob
...
- parameter instanceKey was left over from previous work that
special-cased the weight of Python modules.
- while here, consistently do `~T() override`
2020-09-22 22:35:55 +02:00
Adriaan de Groot
8e9bf1c2a9
[libcalamaresui] Another allow-to-fall-back-to-eventloop
...
With 1 CPU, Calamares still spawns 9 threads or so: eventloop,
dbus loop, QML loop, ... many of those are invisible to the
application. Contention occurs on startup when the UI is constructed,
and we end up with the module manager creating widgets alongside,
or ahead of, the main window UI. This can result in deadlock:
- in CalamaresApplication::initViewSteps
- in QML imports
This is partly because the signal-slots connections get "deep":
from loadModules() we emit *modulesLoaded* which ends up showing
the main window in initViewSteps(). Avoid this with a QTimer:
drop back to the event loop and release whatever locks are held,
so the QML thread can get on with it already. Then the timer
goes off and the view steps are created.
2020-09-22 16:27:34 +02:00
Adriaan de Groot
705756b9bb
[libcalamaresui] Give UI chance to catch up before modules are done
2020-09-22 14:41:12 +02:00
Adriaan de Groot
53cb27ebc8
[calamares] Provide i18n context for "Key"
2020-09-21 22:32:16 +02:00
Adriaan de Groot
7c6783948a
i18n: update Tajik translation
2020-09-21 17:49:18 +02:00
Adriaan de Groot
ac0b2092f2
[partition] Remove superfluous logging
2020-09-21 17:47:25 +02:00
Calamares CI
73d0afca43
i18n: [python] Automatic merge of Transifex translations
2020-09-21 17:06:56 +02:00
Calamares CI
16b99940ce
i18n: [calamares] Automatic merge of Transifex translations
2020-09-21 17:06:55 +02:00
Adriaan de Groot
cadd9765db
[usersq] Remove trailing .
2020-09-21 17:01:50 +02:00
Adriaan de Groot
4778687f14
Changes: credit for partition-size bugfixing
2020-09-21 16:56:59 +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
1f77441333
[partition] add job-removal to the support classes
2020-09-21 16:36:43 +02:00
Adriaan de Groot
17914b9cf9
CI: adjust to clang-format-10 automatically
...
- leave clang-format file alone, but dynamically
modify it when clang-format 10 or later is present
- ignore the resulting .bak file
2020-09-21 16:15:51 +02:00
Adriaan de Groot
0aa215af65
Merge pull request #1513 from tintou/calamares
...
[partition] Correctly handle percentage-define partitions
2020-09-21 11:55:02 +02:00
Corentin Noël
75fd1dd114
[partition] Correctly handle percentage-define partitions
...
* Use the minSize when the target storage is smaller than the sum of sizes
* Percentage-defined partitions should be computed after setting hard-defined ones
This fixes issues when 0 byte partitions were created when the disk is too small.
Also fixes an issue with percent-defined partitions being forced to be defined at the end of the disk.
2020-09-21 11:35:09 +02:00
Adriaan de Groot
e94c17e331
Merge branch 'calamares' into issues-1166
2020-09-21 11:15:27 +02:00
Adriaan de Groot
e84f446c5f
Merge branch 'entropy' into calamares
...
Support more than one entropy file; generate them as needed
(or copy a fixed value to all, depending). Deprecate
*entropy* as too inflexible.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941301
FIXES #1512
2020-09-15 16:58:27 +02:00
Adriaan de Groot
c159ffe491
[machineid] Polish up the tests
...
- create dirs as needed (this will normally be done by
unsquash, but for tests with paths it needs to be done
by hand)
- log what file is being checked
- filePath() doesn't like the absolute paths we have
(they're absolute in the chroot, and existing code
just sticks rootMountPoint in front)
2020-09-15 16:49:45 +02:00
Adriaan de Groot
5f7c9a00a0
[machineid] Test that random-files are created
2020-09-15 13:36:10 +02:00
Adriaan de Groot
a5887e6dda
[machineid] Test config-settings for entropy files
2020-09-15 13:11:39 +02:00
Adriaan de Groot
8be5c2ed10
[machineid] Support multiple entropy files
2020-09-15 12:57:09 +02:00
Adriaan de Groot
8b22786bd2
Merge branch 'issue-1397' into calamares
...
Document keyboard change for Turkish F layout, and document
the keyboard configuration value better, with alternate
path used in e.g. openSUSE
FIXES #1397
2020-09-09 12:21:48 +02:00
Adriaan de Groot
633186778b
[keyboard] Add test for Turkish F variant
...
- test keyboard lookup for "tr" - "f" variations
- add data mapping "tr" - "f" to legacy keymap "trf"
FIXES #1397
2020-09-09 12:11:50 +02:00
Adriaan de Groot
aeffbac9cd
CMake: add resources to tests
...
Some tests -- notably the keyboard module -- need to have the
QRC for the module loaded as well (e.g. because of data in the
QRC). Add a RESOURCES parameter to calamares_add_test()
like calamares_add_plugin() already has, to build the
resources into the test.
Keyboard test now passes, since it was missing the data for
lookups before.
2020-09-09 11:58:56 +02:00
Adriaan de Groot
2aece7ff1b
[keyboard] Warn if QRC is not available
2020-09-09 11:47:50 +02:00
Adriaan de Groot
0d8e0d9b96
[keyboard] Add a stub for unit tests
2020-09-08 17:27:21 +02:00
Adriaan de Groot
af3261b16f
[keyboard] Refactor findLegacyKeymap into something testable
2020-09-08 17:27:21 +02:00
Adriaan de Groot
2e1dd8e7b1
i18n: Update tg timezones
2020-09-08 16:12:28 +02:00
Calamares CI
ca9281f690
i18n: [python] Automatic merge of Transifex translations
2020-09-08 16:07:40 +02:00
Calamares CI
56e46a31a9
i18n: [calamares] Automatic merge of Transifex translations
2020-09-08 16:07:39 +02:00
Adriaan de Groot
1365b3dad4
Changes: post-release housekeeping
2020-09-03 23:57:32 +02:00
Adriaan de Groot
67efa8b4bb
Changes: pre-release housekeeping
2020-09-03 20:45:04 +02:00
Adriaan de Groot
466e08a8ba
[welcome] Set some localeConf values from the welcome page
2020-09-03 20:44:23 +02:00
Adriaan de Groot
634a53d27a
[locale] Use new convenience function for updating localeConf
2020-09-03 20:21:37 +02:00
Adriaan de Groot
e0ba5a6ba2
[libcalamares] Convenience functions for localeConf GS entry
2020-09-03 20:21:37 +02:00
Adriaan de Groot
d94b9caba5
[libcalamaresui] Less mutex shenanigans
2020-09-03 16:11:35 +02:00
Adriaan de Groot
32649f78ea
[libcalamares] Restore finish() slot to job queue
...
FIXES #1507
2020-09-03 15:39:04 +02:00
Adriaan de Groot
5ed57331d6
i18n: Update timezone translations
...
SEE #1506
2020-09-03 15:03:22 +02:00
Adriaan de Groot
d5eaacf67a
i18n: used wrong list of languages
...
FIXES #1505
2020-09-02 11:56:51 +02:00
Adriaan de Groot
df0180fc12
i18n: Tajik timezone translations
...
FIXES #1504
2020-09-01 17:14:51 +02:00
Adriaan de Groot
4726f04b16
Merge branch 'issue-1498' into calamares
...
FIXES #1498
2020-08-28 23:53:30 +02:00
Adriaan de Groot
ec0b68084f
[users] Refactor setting GS
...
- both changing the autologin and changing the user (login) name
affect global storage, and both may need to change the autologin
username; split it into a free function.
- the fullname change was bypassing the login in changing the
login name, **but** then it needs a back-workaround to keep
the "custom" setting off (when custom is off, auto-fill username
and hostname is active).
- after loading the config, fill GS already.
- when finalizing GS, get the autologin settings again.
2020-08-28 23:48:47 +02:00
Adriaan de Groot
d7dc48d201
[users] Add now-obvious missed initialization
...
- start the checkbox off in the state from config
2020-08-28 23:48:47 +02:00
Adriaan de Groot
15b5ef467e
[users] Hook up strong- and reuse- password checkboxes
...
- setup the visibility and initial checked-state of the reuse-user-
password-for-root near where it gets connected; do similar
for the require-strong-password
- squash the lambda slot into the regular slot: no sense in
connecting twice to the same signal with the same receiver.
- only connect config->ui once
- only connect at all if the setting is visible (e.g. when weak
passwords are allowed for the require-strong checkbox, or
when root's password will be written for the reuse-password)
2020-08-28 23:47:11 +02:00
Adriaan de Groot
d584a96335
[users] Improve naming of widget
2020-08-28 23:47:11 +02:00
Adriaan de Groot
3ae545c8b1
REUSE: qmldir file format doesn't leave space for license information
2020-08-28 18:18:22 +02:00
Adriaan de Groot
ba2b52ed1d
Merge branch 'fix-debugwindow-queue' into calamares
...
3.2.29 dropped the Job Queue information from the debug
window, this restores the list of names.
2020-08-28 15:54:13 +02:00
Adriaan de Groot
b37a675657
[libcalamares] Reimplement JobQueue::queueChanged
...
- switch to QStringList as parameter, since consumers (that is,
the debug dialog, which is what this is for) are interested
just in the **names** of the jobs.
- to allow mutex locking in const methods, mark them mutable.
2020-08-28 14:39:32 +02:00
Adriaan de Groot
9afe7a3711
[libcalamares] Document JobQueue signals
2020-08-28 14:24:06 +02:00
Adriaan de Groot
e87ce5a433
Changes: mention Urdu revival
2020-08-28 13:12:12 +02:00
Adriaan de Groot
8352be8bf5
Merge branch 'issue-1495' into calamares
...
Drop the pre-compiled .mo translations from the sources;
these can be built during the build.
FIXES #1495
2020-08-28 01:10:53 +02:00
Adriaan de Groot
6b6267e3a4
i18n: check for gettext rather than just calling msgfmt
...
- *secretly* this is already done in the KF5 i18n modules,
so the resizefs was already requiring FindGettext.
- we don't actually use the gettext modules' CMake macros,
so explain why in the module.
2020-08-28 01:10:21 +02:00
Adriaan de Groot
392b4d33a0
i18n: create the lang/<lang>/ directories in the build as-needed
2020-08-27 16:39:44 +02:00
Adriaan de Groot
85d9038317
REUSE: remove special case for .mo files
2020-08-27 16:34:31 +02:00
Adriaan de Groot
49e925ef47
i18n: untangle translations in the executable
...
- there's no need for a macro that is going to be used once,
especially if there's only one place it can be called.
- expand it in place and remove it from the installed CMake
module
2020-08-27 15:34:17 +02:00
Adriaan de Groot
3529659629
i18n: compile the gettext translations at build time
...
- need gettext to build translations (TODO: find_program)
- compile the .mo files from .po as part of the build, writing
to the build-directory only
2020-08-27 15:21:23 +02:00
Adriaan de Groot
242d5c6499
i18n: install Python translations from a sensible place
...
- put the installation code in lang/ rather than among the modules
- remove useless indirection through CMake macro
2020-08-27 13:59:23 +02:00
Adriaan de Groot
23bfcb755e
i18n: pick up the translations CMake module just once
2020-08-27 13:54:08 +02:00
Adriaan de Groot
8b4ae1d687
i18n: Don't compile the Python translations as part of fetching TX
2020-08-27 13:38:45 +02:00
Adriaan de Groot
e02c21285a
i18n: remove the compiled .mo files from 'sources'
2020-08-27 13:37:45 +02:00
Adriaan de Groot
e1ad08f9b6
Changes: credits for bugfixes and translations
2020-08-27 13:33:34 +02:00
Adriaan de Groot
c3903b6e88
Merge pull request #1502 from asif-mahmud/calamares
...
[libcalamares] Internet accessibility checking done by synchronous ping method
2020-08-27 13:24:50 +02:00
Adriaan de Groot
c7f2ee28fc
Merge pull request #1501 from demmm/calamares
...
[localeq] rewrite Offline.qml
2020-08-27 12:51:41 +02:00
Asif Mahmud Shimon
c6a3e9b816
Internet accessibility checking done by ping method
2020-08-27 11:36:55 +06:00
demmm
9bdb05d4ea
[localeq] rewrite Offline.qml
...
once completed, this can be a fully functional (offline) locale selection option
worldmap.png no longer needed/in use
working is the stackview of the region & zones models
Timezone text bar shows correct timezone
currentIndex see comments on lines 65 & 139, not working
update of timezone text bar can't be tested if working as long no index is connected (see lines 93 & 168)
Still, already committing, since it does more then old Offline.qml, which had no function for timezone
2020-08-26 18:19:42 +02:00
Adriaan de Groot
ae14059e8b
[webview] Config header was still misplaced
...
- use #error to produce slightly more comprehensible build failers
2020-08-26 14:48:46 +02:00
Adriaan de Groot
fd384f334d
CMake: update translation lists
...
- Add Telugu already, even though it's formally not ready yet
2020-08-26 14:48:46 +02:00
Adriaan de Groot
51431e0042
Merge pull request #1500 from demmm/calamares
...
[keyboardq] rewrite keyboard.qml
2020-08-26 14:05:44 +02:00
Calamares CI
55dca08c8c
i18n: [python] Automatic merge of Transifex translations
2020-08-26 13:54:12 +02:00
Calamares CI
0572e9cafc
i18n: [calamares] Automatic merge of Transifex translations
2020-08-26 13:54:11 +02:00
demmm
7c08f9a033
[keyboardq] rewrite keyboard.qml
...
no longer use extra qml files
better highlighting, updated text, fewer buttons
2020-08-26 13:32:56 +02:00
Adriaan de Groot
c40a5d62ca
Merge branch 'spdx' into calamares
...
Apply REUSE.software licensing tool across the codebase,
add complete(*) licensing information. Since we're touching
every file in the repo **anyway**, apply coding style too.
(* there are four files not licensed, but they will be
removed soon)
2020-08-26 02:32:53 +02:00
Adriaan de Groot
a2180936ef
CI: apply coding style across the entire codebase again
2020-08-26 02:28:43 +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
7a78f2600e
REUSE: dep5-style licensing
...
For some dozens of files, adding license information in or
next to the file is unwanted:
- the translations are variable, and licensing information
embedded in them is removed on update; since the translations
are derived from the sources, blanket-license them as GPL-3.0-or-later
- FreeBSD packaging (ports) directories have a specific structure
.. and more cases like that. See the dep5 file for details.
2020-08-26 02:26:10 +02:00
Adriaan de Groot
5a3fb613d9
REUSE: Default branding assets and explanation
2020-08-26 02:22:49 +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
863a4cc2a4
REUSE: (GPL-3.0-or-later) Python modules
2020-08-26 02:22:49 +02:00
Adriaan de Groot
5523bffbf2
REUSE: administrative and repo-meta files
...
- Mostly CC0 because they're not interesting
- formatting, git, travis, transifex
- Some BSD-2-Clause because of habit
- CMake and shell-script-like files
2020-08-26 02:22:49 +02:00
Adriaan de Groot
1b23520f20
REUSE: (CC0-1.0) module descriptors and configuration files
...
In spite of there being considerable documentation sometimes in the
config file, we go with CC0 because we don't want the notion of
'derived work' of a config file.
The example `settings.conf` is also CC0. Add some docs to
it while we're at it.
2020-08-26 02:22:49 +02:00
Adriaan de Groot
92a6cbc773
REUSE: (CC0-1.0) generated files & PD files
...
- the translations generated from public-domain files are CC0-1.0
- the files derived from Unicode tables are close to CC0-1.0,
possibly except that there is a FileCopyrightText line
2020-08-26 02:22:49 +02:00
Adriaan de Groot
1a557804ab
REUSE: Remainder of data/
...
- *AppImage example config*: this is old AppImage configuration,
basically unmaintained, but copied from the **other** example
config files which are CC0-1.0 as well.
- *Sample Linux distro*: The example Linux distro has a handful
of trivial files, a bogus `/etc/issue`, that kind of thing.
- The bash completions are GPL-3.0-or-later
- FreeBSD packaging information is BSD-2-Clause
2020-08-26 02:21:43 +02:00
Adriaan de Groot
4e75ea8bd0
REUSE: Add best-effort .license for data/images/
...
- the commit messages don't mention getting the images
from elsewhere, so use the commit date.
2020-08-26 02:05:46 +02:00
Adriaan de Groot
3480988f53
REUSE: SPDX tagging of application library and main
...
- CC0-1.0 for the uninteresting version-headers
- GPL-3.0-or-later for the services
- add SPDX identifiers to Calamares C++ libraries and application sources
- add SPDX identifiers to Calamares QML (panels and slideshow)
- the `qmldir` is a list of names of things in the directory,
so CC0-1.0 it as "uninteresting"
- QRC files are lists of names of things in the directory,
so CC0-1.0 them as well
2020-08-26 02:05:46 +02:00
Adriaan de Groot
7e9576d3d1
REUSE: fix credits for 3rd party sources
...
Some Calamares source files incorporate material from
3rd parties (unlike the 3rdparty/ dir, which is basically-
unchanged 3rd party source). Tidy up the FileCopyrightText
lines for those sources.
This is not an exhaustive effort.
2020-08-26 02:05:46 +02:00
Adriaan de Groot
2eecd431fe
REUSE: (CC0-1.0) test data
...
There's lots of (YAML) test data that is just trivial configurations
for modules. Since the configurations themselves are **also** CC0-1.0,
and the tests are less interesting, license them equally liberally.
2020-08-26 02:05:46 +02:00
Adriaan de Groot
95ceb1e8c7
REUSE: (BSD-2-Clause) all CMakeLists
...
The build instructions are not that interesting, it's a toss-up
between CC0 and BSD-2, but because other CMake bits are BSD-2-Clause,
apply that to more CMakeLists. The copyright date isn't all that
accurate, but these are just inconsequential files.
While here, tidy up and get rid of some useless intermediates.
2020-08-26 02:05:46 +02:00
Adriaan de Groot
965bc3b0b4
REUSE: use <author> tag in .ui for license info
...
The .ui files are all GPL-3.0-or-later style, but it's
slightly difficult to keep licensing information in them:
it's XML, so an XML comment might work, but there's no
guarantee that safe/load will preserve them.
Put the SPDX tags in the <author> tag, so that it's visible
in Qt Designer.
2020-08-26 02:05:46 +02:00
Adriaan de Groot
0ee0f40816
REUSE: license tags for the scripts and tools in ci/
...
- remove empty useless HACKING
- remove unused cppcheck.sh
- migrate the AppImage docs to the wiki (which doesn't moan about licensing)
- try a HTML-style comment in the RELEASE docs
2020-08-26 02:05:46 +02:00
Adriaan de Groot
86f66e8f16
REUSE: (GPL-3.0-or-later) all the schema files
...
- these are vaguely derived from the schema's written by
artoo@manjaro.org , but totally re-done for JSON-Schema
2020-08-26 02:01:58 +02:00
Adriaan de Groot
31d0b5b194
REUSE: (BSD-2-Clause) CMakeModules/
...
The intended license for the CMake modules is BSD-2-Clause;
there's no desire to restrict what can be done with these,
and CMake modules are generally 2-clause licensed.
2020-08-26 02:01:48 +02:00
Adriaan de Groot
6851f25d69
REUSE: 3rdparty license fix-up
...
- waitingspinnerwidget is MIT with suitable FileCopyrightText lines
- KDSAG is LGPL-2.0-only
2020-08-26 01:06:55 +02:00
Adriaan de Groot
0b3298fa44
REUSE: LICENSES/ files
...
For proper REUSE compliance, untangle the lists of licenses
and place a single copy of each license in LICENSES/ .
The License-Identifier in each source file refers to
these licenses, and FileCopyrightText provides the context,
"above notices" and similar attribution data.
2020-08-26 01:06:55 +02:00
Adriaan de Groot
d6d3b41484
[webview] Missing Config include
...
This was causing CI builds to fail, since WEBVIEW_WITH_WEBKIT
is defined only in the Config file, not on the command-line.
This crept in accidentally while trying to get rid of that
config file entirely.
2020-08-26 01:06:55 +02:00
Adriaan de Groot
b65b5228e1
[welcome] Don't apply code-style to other C-code
2020-08-26 00:31:16 +02:00
Adriaan de Groot
31aa8be620
[locale] Remove unused original images
...
- These haven't been used in the module, and just take up space and
now add licensing annoyance as well
2020-08-26 00:31:16 +02:00
Adriaan de Groot
2609e05898
CMake: remove unused module
2020-08-26 00:31:16 +02:00
Adriaan de Groot
4a45eb847d
CI: fix edge cases for calamaresstyle
...
- no format-10
- skip empty directories (otherwise astyle gets no file-paramaters
and then hangs on stdin)
2020-08-26 00:31:16 +02:00
Adriaan de Groot
42417ed3b2
[libcalamares] Rip out the broken jobqueue information signals (break build)
2020-08-20 22:30:12 +02:00
Adriaan de Groot
2b86d2481c
[libcalamares] finish() is a private implementation detail for the job queue
2020-08-20 22:28:52 +02:00
Adriaan de Groot
3ae4ccf402
Changes: post-release housekeeping
2020-08-20 18:03:16 +02:00
Adriaan de Groot
559bb6f27a
Changes: pre-release housekeeping
2020-08-20 17:24:23 +02:00
Adriaan de Groot
41769c8794
[packages] Alphabetize package manager implementations
2020-08-19 21:12:40 +02:00
Adriaan de Groot
4a9f409422
Docs: explain that instances may also exist for weight-setting
2020-08-19 17:03:06 +02:00
Adriaan de Groot
cf1ee2cffe
Docs: explain how module weights work
2020-08-19 16:50:40 +02:00
Adriaan de Groot
65f71524e0
Changes: mention module-weights
2020-08-19 16:32:06 +02:00
Adriaan de Groot
ade7a22314
Merge branch 'module-weight' into calamares
...
Re-jig the module-weight calculations.
- modules can have a weight
- module instances can have a weight
- jobs, from the module, can have a weight
This is now configurable on a case-by-case basis, rather than having
C++ only as an option and a weird hack for unpackfs.
2020-08-19 16:20:28 +02:00
Adriaan de Groot
9d395e82f0
[libcalamares] Try to avoid progress going backwards
...
This is more a test-inspired hack than anything else: since signals
are delivered asynchronously, we can end up delivering progress
signals out-of-order, and then the signal spy lists them wrong:
progress goes backwards.
Insert a tiny delay between jobs to allow signals to be delivered
in-order.
2020-08-19 15:32:19 +02:00
Adriaan de Groot
053321d4d2
[libcalamares] Test for progress reporting
...
- add a dummy job class for tests
- run a queue with 3 jobs from 2 modules to check progress reporting
2020-08-19 15:07:47 +02:00
Adriaan de Groot
521015b1b4
[libcalamares] Match types to existing qreal usage, signal progress
2020-08-19 13:06:50 +02:00
Adriaan de Groot
941b5af3a2
[libcalamares] Rip out the guts of job-queue-running
...
- compute weights and accumulations beforehand
- mutex-lock structures so you can enqueue while running jobs
- simplify progress reporting calculations
- doesn't actually run any jobs
2020-08-19 12:54:40 +02:00
Adriaan de Groot
08ea51a344
[partition] Fix tests after removal of single-job-enqueue
2020-08-19 11:28:53 +02:00
demmm
8ad7184024
[usersq] users.qml update some config vars
...
reflect changes from users/Config.cpp
corrected id missing capital
mirror UsersQmlViewStep.cpp/h with the users versions
connections are still not made
2020-08-18 20:06:30 +02:00
Adriaan de Groot
38862660c7
Changes: credit for stringlist fixes
2020-08-18 17:20:53 +02:00
Adriaan de Groot
ecaf97aa60
[users] Tests of config-loading of groups lists
2020-08-18 17:20:37 +02:00
Adriaan de Groot
ab3e393d45
[users] Protect against a nullptr deref
...
- there is typically no GS during tests
2020-08-18 17:20:08 +02:00
Adriaan de Groot
4b4d7f3b10
[libcalamares] Print a big fat warning before a typical now-crash situation
2020-08-18 17:17:29 +02:00
Adriaan de Groot
2ac518d8b9
[libcalamares] Change in stringlist extraction also changes single-string
2020-08-18 16:44:56 +02:00
Adriaan de Groot
41e2de85b1
[libcalamares] Fix up test -- 'lam' isn't supposed to be in the loaded data
2020-08-18 16:43:18 +02:00
Adriaan de Groot
a5555c3f94
Merge pull request #1491 from asif-mahmud/calamares
...
[libcalamares] retrieving string list fix
2020-08-18 16:41:56 +02:00
Adriaan de Groot
e55def87e9
[libcalamares] Test for Variant methods
...
In advance of PR #1491 , test loading and stringlist extraction.
- from code, extraction works "normally"
- for YAML data, the stringlist isn't actually a stringlist
2020-08-18 16:40:33 +02:00
Adriaan de Groot
117859082e
[libcalamares] Merge Tests.h into Tests.cpp
...
- no real need for separate file in the utils/ tests
2020-08-18 16:40:33 +02:00
Adriaan de Groot
626ac572d9
Merge branch 'hotfix-3.2.28.2' into calamares
2020-08-18 15:19:06 +02:00
Adriaan de Groot
871b56255b
Changes: correct the release day
...
FIXES #1489 (that's the hotfix for this release)
FIXES #1480 (needed to fix the above)
2020-08-18 15:13:43 +02:00
Calamares CI
695c1ea190
i18n: [python] Automatic merge of Transifex translations
2020-08-18 14:58:18 +02:00
Calamares CI
dc81c76e5b
i18n: [calamares] Automatic merge of Transifex translations
2020-08-18 14:58:17 +02:00
Adriaan de Groot
c92e12ef74
[users] Consistent styling of status badges on input fields
...
- Use Status* icons rather than the yes/no
2020-08-18 12:48:51 +02:00
Adriaan de Groot
fd2399f702
[users] Re-check password validity on change of conditions
...
- if the user password is reused (or not) then check the
status of the passwords against the new reuse-setting
- if the allow-weak-passwords setting is changed, then
check the status of passwords (both of them) against
the new weakness setting
2020-08-18 12:46:27 +02:00
Adriaan de Groot
5d016baee9
[hostinfo] Fix up ARM "detection"
...
As explained by Kevin Kofler and abucodonosor, the
implementer line can carry a bunch of different values,
but none of them are actually interesting. Simplify
the code.
2020-08-18 12:33:42 +02:00
Adriaan de Groot
3ecab4bedb
[users] Fix test building
...
- now Config can create jobs, tests that consume Config need
to build the jobs as well; re-jig CMakeLists to make
those a little easier.
2020-08-18 11:41:43 +02:00
Adriaan de Groot
2c72524f29
[users] Move job-creation to Config
...
- this makes Config entirely stand-alone: it has all the business
logic and can be hooked up to alternate UIs or used from
other view steps or jobs
2020-08-18 11:31:32 +02:00
Adriaan de Groot
abae942e55
[users] Complete isReady move to Config
...
- give Config slots and signals for ready-status
- disconnect the page from the viewstep and use the Config object
ready-status instead
2020-08-18 11:21:53 +02:00
Adriaan de Groot
36cefe3be1
[users] Remove calculation of 'ready' from Page
...
- simplify UI update methods
- drop all the m_ready* members, that should live in Config
2020-08-17 16:18:02 +02:00
Adriaan de Groot
eb44d0c6be
[users] Move GlobalStorage wrangling to config
...
- the whole fill-GS method is a bit weird, since you might want
to reflect that "live" in GS instead.
2020-08-17 15:30:09 +02:00
Adriaan de Groot
24efce0c1d
[locale] Make sanity checks in tests more explicit
...
SEE #1490
2020-08-17 15:09:20 +02:00
Adriaan de Groot
5db4195b7e
[users] Remove most remaining business logic from the Page
...
- report password status from config
- tie config-value of fields to the text-boxes
2020-08-17 15:01:35 +02:00
Adriaan de Groot
34946ecdee
[users] Refactor validity-checking
...
- provide a structured datatype for password status
2020-08-17 14:20:54 +02:00
Adriaan de Groot
1a7b2668dc
[users] Emit password status changes
2020-08-17 14:08:59 +02:00
Adriaan de Groot
d7b895b45d
[users] Extend tests
...
- password requirements can disallow weak passwords
- start checking for signals on password changes
2020-08-17 14:05:03 +02:00
Adriaan de Groot
a16ecba2bd
[users] Inline isPasswordAcceptable
...
- the way isPasswordAcceptable was being used was buggy, leading
to test failures (now fixed)
- don't expose the function, anyway: it's an implementation
detail for passwordStatus() which in itself is an implementation
detail for status notifications.
2020-08-17 13:22:44 +02:00
Adriaan de Groot
5f2bbd179c
[users] New test for password-setting
...
- check new config for accepting empty and bogus passwords
- check a config with minor pw checks for empty and bogus passwords
2020-08-17 13:16:41 +02:00
Adriaan de Groot
1dcf56761f
[users] Apply validation to the passwords config knows about
...
- avoid update loops by checking values before emitting *Changed()
- check validity of user and root passwords when asked
- if root isn't going to be written, or re-uses the user password,
defer to those status checks.
2020-08-17 12:48:43 +02:00
Adriaan de Groot
e145bf68f1
[users] Remove extra ;
2020-08-17 12:48:43 +02:00
Adriaan de Groot
933e54a731
Changes: pre-release housekeeping
2020-08-17 11:31:26 +02:00
Asif Mahmud Shimon
3245d602db
retrieving string list fix
2020-08-14 20:52:53 +06:00
Adriaan de Groot
805850d843
Changes: pre-release housekeeping
2020-08-12 16:52:42 +02:00
Adriaan de Groot
f4eac6c86f
[users] Create all the groups needed for the user
...
- 26b8c82630 added the list of all-the-groups-for-the-user,
but didn't change the list passed to the method that
creates groups.
FIXES #1488
2020-08-12 16:50:28 +02:00
Adriaan de Groot
c296bcffa3
[libcalamares] When enqueueing jobs, pass a weight
...
- The weight is the module (instance) weight, which can be
- the default weight of 1
- the weight specified for the module (in module.desc / the module
descriptor; this defaults to 1, above)
- the weight specified for the instance (in settings.conf)
The last of these "wins"; weights are constrained to 1..100
The weight isn't actually used in progress computation yet.
2020-08-12 16:45:27 +02:00
Adriaan de Groot
a91ef65a37
[libcalamares] Make job weights integers
2020-08-12 16:08:37 +02:00
Adriaan de Groot
73b8ecd622
[unpackfs] Drop special-case for unpackfs
...
- make the module weight 12, rather than special-casing internals
2020-08-12 16:03:25 +02:00
Adriaan de Groot
c19866f887
[libcalamares] Add a module-weight to the module descriptor
2020-08-12 16:00:27 +02:00
Adriaan de Groot
14875259c7
[users] Create all the groups needed for the user
...
- 26b8c82630 added the list of all-the-groups-for-the-user,
but didn't change the list passed to the method that
creates groups.
FIXES #1488
2020-08-12 11:20:24 +02:00
Adriaan de Groot
575bc03a5c
Merge pull request #1487 from PureTryOut/alpine-initramfs
...
[mkinitfs] New module
2020-08-12 10:50:44 +02:00
Adriaan de Groot
e18cc81757
Merge pull request #1486 from demmm/calamares
...
[usersq] adding QML module usersq
2020-08-12 10:35:41 +02:00
Adriaan de Groot
0f0bae0235
Merge branch 'schema' into calamares
...
All of the schemata are now valid JSON-schema files, and all of
the example config files validate against those schema files.
2020-08-12 10:29:48 +02:00
Adriaan de Groot
050d74b4be
Fix YAML schemas for all the remaining config files
2020-08-12 10:29:24 +02:00
Adriaan de Groot
14afce538b
[netinstall] Fix schema -- the groups file still needs attention
2020-08-12 10:29:24 +02:00
Adriaan de Groot
fcbd6e38c5
[keyboard] Fix schema -- forgotten field *writeEtcDefaultKeyboard*
2020-08-12 10:29:19 +02:00
Adriaan de Groot
efab699479
[umount] Fix schema -- prefer *preservefiles* for keeping the log
2020-08-12 10:29:13 +02:00
Adriaan de Groot
2061024a03
[unpackfs] Fix schema -- new fields *exclude* and *excludeFile*
2020-08-12 10:28:27 +02:00
Adriaan de Groot
57f02464d9
[hostinfo] The hackish ARM-detection is only for Linux
2020-08-12 09:58:48 +02:00
Adriaan de Groot
665c2d53ab
[libcalamares] Fix Doxygen comment for TZ locations
2020-08-12 09:58:48 +02:00
Adriaan de Groot
c22e0a3451
[netinstall][users][tracking] Warnings--, extra ;
2020-08-12 09:58:39 +02:00
Adriaan de Groot
e2f6817536
Merge branch 'issue-1176' into calamares
...
This doesn't actually implement the job-weight work, but lays important
groundwork in module instances and descriptors.
SEE #1176
FIXES #1473
FIXES #1474
2020-08-12 09:43:35 +02:00
Adriaan de Groot
f73f94da27
Repait module.desc
...
- a handful of modules had an unused *requires* key in module.desc;
this is probably from previous intentions around
prerequisites-testing. Since the settings were empty anyway,
they have been removed.
- [unpackfs] Compacted the way *requiredModules* list is written
2020-08-12 09:36:30 +02:00
Adriaan de Groot
efd7145f76
[libcalamares] Implement the interface-specific fields for descriptor
2020-08-12 09:06:47 +02:00
Adriaan de Groot
c8b96c278b
[libcalamares] Complete the generic module descriptor
...
- loads emergency, noconfig, requiredModules keys
- warns (and marks descriptor invalid) if there are unused / unknown
keys left over in the descriptor data.
2020-08-12 08:42:52 +02:00
Adriaan de Groot
e406ae1967
[libcalamares] Add name to module descriptor
...
- introduce basic tests of the data structure
- interpret name when passed in as descriptor data
2020-08-12 00:52:54 +02:00
Adriaan de Groot
e1e81bb133
[libcalamaresui] Warnings--, don't shadow a parameter
2020-08-12 00:39:01 +02:00
Adriaan de Groot
f1bb70269f
[libcalamares] Improve warning/error logging
...
- the lack of a space after the : was inconsistent with most of the
rest of the logging.
2020-08-12 00:34:22 +02:00
Adriaan de Groot
65273a262b
[libcalamares] Start putting data into the module Descriptor
2020-08-12 00:33:08 +02:00
Adriaan de Groot
60fbf04594
[calamares] Adjust module test-loader for changed API
...
- the test-loader needs to create modules (and does so hackishly,
outside of the ModuleManager) so it needs to chase the API as well.
2020-08-11 22:26:12 +02:00
Adriaan de Groot
3c6e53ecb9
[libcalamaresui] Chase the change in Module descriptor
...
- most of the code becomes **simpler** because the requirement
to handle unstructured data is now in the descriptor itself,
rather than in consumers.
2020-08-11 22:26:12 +02:00
Adriaan de Groot
ee834a7abb
[libcalamares] Define interface for Module descriptor
...
- add fields -- all const, all bogus -- to the descriptor,
introduce a stub method to load the descriptor from
YAML data (e.g. read from module.desc)
- lighten the type-naming in Module a little, with usings
2020-08-11 22:26:12 +02:00
Adriaan de Groot
f0c4164515
[libcalamares] Add a more convenient find() to NamedEnum
...
- In most cases, you **know** the table covers all the enum
values, and the extra parameter *ok* is just annoying.
Provide a convenience that doesn't distinguish empty
from empty-but-valid.
2020-08-11 22:26:12 +02:00
Adriaan de Groot
197cb9982c
[libcalamares] Sort the tests by subdir
2020-08-11 22:26:12 +02:00
Adriaan de Groot
bdd6bdc3b2
[libcalamares] Migrate module type and interface to descriptor
...
- move the enums
- expose the named-enum functions for them
- **start** replacing Descriptor with something stronger; this fails
zero tests so it obviously wasn't tested at all
2020-08-11 22:26:12 +02:00
Adriaan de Groot
215cd0d1c3
[users] Repair test on openSUSE
2020-08-11 22:16:03 +02:00
Bart Ribbers
b144f1dfc0
[mkinitfs] New module
...
This module allows the generation of the initramfs in Alpine Linux based
systems (excluding postmarketOS). Very bare bones, but then again it
doesn't need much. It uses the Alpine Linux tool "mkinitfs" to do the
job.
2020-08-11 18:18:52 +02:00
Adriaan de Groot
7cef99605f
[libcalamares] Distinguish instances with an explicit weight
...
- setting the weight in *instances* should be different from letting
the default weight (of 1) stand; explicitly saying 1 should
carry some weight (ha!)
2020-08-11 16:45:51 +02:00
Adriaan de Groot
c8964717c7
[calamares] Bail out on invalid settings
2020-08-11 16:32:44 +02:00
Adriaan de Groot
d81d585c32
[libcalamares] Add isValid() to Settings
...
- settings can be invalid (missing data, whatever) and that
can be used to shut things down early. Validity must be
checked explicitly, though.
2020-08-11 16:32:44 +02:00
Adriaan de Groot
4cd2a4ae91
[libcalamares] Produce warnings while reading settings
...
- any invalid instance key will cause a complaint
- "new" custom instances in sequence get a complaint, but
the instance description added to the list is valid
2020-08-11 16:32:44 +02:00
Adriaan de Groot
a8075fba5f
[libcalamares] Chase API change in settings
2020-08-11 16:32:44 +02:00
Adriaan de Groot
253e5610af
[libcalamares] Better type for the list of InstanceKeys
...
- *sequence* lists module instance keys; make the stored type of
those keys InstanceKey instead of QString
2020-08-11 16:32:44 +02:00
Adriaan de Groot
b23dbd47c7
[libcalamaresui] Chase changes in instanceDescriptor
...
- this is mostly about deleting code, since the special-cases
now live in libcalamares where `settings.conf` is interpreted.
2020-08-11 16:32:44 +02:00
Adriaan de Groot
57f5a92d96
[libcalamares] Build complete instanceDescriptor list
...
- there's no reason to ignore custom instances that are **not**
mentioned in the *instances* section: it may be useful to
name more that one even without distinct config files.
2020-08-11 16:32:44 +02:00
Adriaan de Groot
4968efdaa7
[libcalamares] Simplify constructors of InstanceDescription
...
- no more weights in constructors; do that in fromSettings() only.
- simplify test to drop those constructors
- set config file also for "normal" descriptors; fix test
2020-08-11 16:32:44 +02:00
demmm
355a4f9b8d
[usersq] adding QML module usersq
...
module builds, installs and runs, connections are not working yet.
UserQmlViewstep.cpp/h are from PR https://github.com/calamares/calamares/pull/1356
sections are commented out to make the module build, but help is needed to get those 2 files corrected.
config names used in usersq.qml are guessed from users/Config.cpp
debug window shows correct entries in GS, and under the module tab, usersq.conf is read
as should too. Running shows most config used in users.qml are not registered/wrong,
many entries like: qrc:/usersq.qml:228:13: Unable to assign [undefined] to bool
It is understood not all needed from the users module has moved to Config.cpp yet,
but doing the PR now, since it runs, doesn't crash cala and help is needed to further implement.
2020-08-11 13:46:05 +02:00
Adriaan de Groot
e507338f4c
[libcalamares] Test config filenames as well (custom vs standard)
2020-08-11 13:27:15 +02:00
Adriaan de Groot
1f57a99ff2
[libcalamares] Rename moduleInstances() and fix tests
...
- "custom" is a misnomer, so drop that from the name
- tests adjusted: all instances are returned, not just the "custom"
ones.
2020-08-11 12:54:29 +02:00
Adriaan de Groot
6f7234e4ac
[libcalamares] Add all mentioned instances to the instanceList
...
- "custom" instances is now a misnomer, since all the instances
go into it; they are distinguished by `isCustom()` on the descriptor
2020-08-11 12:43:59 +02:00
Adriaan de Groot
f157d9c459
[libcalamares] Refactor data-loading in Settings
...
- expose, for testing purposes, the load-from-YAML-data part
alongside the public constructor that reads a YAML file
- add test for building the list of instances
2020-08-11 11:53:50 +02:00
Adriaan de Groot
34e31d4331
[libcalamares] Revert PRIVATETEST
...
- looks funny
- is hard to get clang-format to respect this; it's intended as an
access-modifier, but those are baked into the code rather than
being configurable.
- is probably rare enough that #ifdef is acceptable
2020-08-11 11:09:07 +02:00
Adriaan de Groot
53eb6c614a
[libcalamares] Make InstanceDescription a class
...
- switch from dumb struct to a class; use a structured InstanceKey
- expand testing of InstanceKey and InstanceDescription
2020-08-11 10:31:12 +02:00
Adriaan de Groot
9c382e3555
[libcalamares] Support switching public/private during tests
2020-08-11 10:16:00 +02:00
Adriaan de Groot
e96198e61c
Merge branch 'calamares' into issue-1176
2020-08-10 23:22:14 +02:00
Adriaan de Groot
8518a5037d
Changes: post-release housekeeping
2020-08-10 23:18:02 +02:00
Adriaan de Groot
3227658475
[calamares] Fix up multiple-moc of KDSAG
...
- was getting multiple definitions of moc-related code due to automoc
combined with KDSAG having its own #include moc, comment-out the include.
- while here, simplify the CMake bits for building KDSAG
2020-08-10 16:10:16 +02:00
Adriaan de Groot
483c0a84f8
[libcalamares] Update SPDX in modulesystem/
2020-08-10 09:53:05 +02:00
Adriaan de Groot
21b4a36a91
[libcalamares] Remove empty .cpp file
...
- Requirement.cpp was there "just in case" the header grew
functions that need an implementation, but that seems
unlikely (the header is just a struct of POD).
2020-08-10 09:50:27 +02:00
Adriaan de Groot
d83543d904
Merge branch 'calamares' into issue-1176
2020-08-10 09:45:05 +02:00
Adriaan de Groot
23b507ae8e
[partition] Chase constness, makeJob()
2020-08-04 16:53:29 +02:00
Adriaan de Groot
20b477d063
[partition] Distinguish jobs with updatePreview()
2020-08-04 16:20:04 +02:00
Adriaan de Groot
62579e0f42
Merge branch 'calamares' into issues-1166
2020-08-04 16:08:01 +02:00
Adriaan de Groot
320779ccbe
[libcalamares] Document Job::prettyDescription
...
The TODO said it was unused: it **is** used, but only in
a very limited scope. Drop it from jobs where it wasn't
useful (e.g. those that just return prettyName(), outside
of the partition module).
2020-08-04 11:19:17 +02:00
Adriaan de Groot
88e5e98d29
[libcalamares] Use consistent type alias (Descriptor)
2020-08-04 10:19:40 +02:00
Adriaan de Groot
ea709aab59
[libcalamaresui] Swap out unstructured string for structured data
2020-08-04 01:31:22 +02:00
Adriaan de Groot
6e31d9de4b
[partition] Name deviceInfo consistently, auto*
...
- use auto* for pointer type where we already say "device info" twice
2020-08-03 13:41:34 +02:00
Adriaan de Groot
22ba3cc62d
[partition] Make private struct type private
...
- no need for the definition to be in public header, move to implementation
- while here, sort the members and private methods
- add a makeJob() to add jobs to the queue
2020-08-03 13:38:12 +02:00
Adriaan de Groot
c2929e93b3
[partition] Start sanitizing the Jobs on a Device
...
- having a struct with an obtuse API for adding jobs-that-need-to-happen-
to-this-device is just not good for maintainability.
- break the build by making things private.
2020-08-03 13:13:56 +02:00
Adriaan de Groot
c63d4ad2cc
[partition] Enable 'file' swap choice
...
SEE #1166
2020-08-03 12:31:38 +02:00