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
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
Philip Müller
8fa681a16b
Merge branch 'calamares' of https://github.com/calamares/calamares into development
2021-03-15 01:46: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
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
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
cc310a04b8
[users] Fix schema to match actual field names
2021-03-14 16:32:02 +01:00
Calamares CI
3fafeaf09a
i18n: [dummypythonqt] Automatic merge of Transifex translations
2021-03-14 16:17:09 +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
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
448e478b6d
[users] Use base Config and its Preset-handling
2021-03-12 13:54:06 +01:00
Adriaan de Groot
381a4f9b53
[users] Add preset to users module Config
2021-03-12 13:25:16 +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
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
430b3b0722
REUSE: tag the schema file (badly, missing an email address)
2021-03-09 13:55:20 +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
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
Philip Müller
9e92f5d032
Merge branch 'calamares' of https://github.com/calamares/calamares into development
2021-03-03 14:17:59 +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
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
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
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
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
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
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
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
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
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
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
Philip Müller
3cc67489fa
[merge] upstream
2021-01-30 11:10:18 +01:00
Philip Müller
b47e25155e
[initcpiocfg] fix 'fsck'
2021-01-30 11:08:39 +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
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
c1064c5e08
Merge pull request #1597 from Chrysostomus/btrfs-swap
...
[fstab][mount] Btrfs swapfile handling
2021-01-25 15:19:45 +01:00
Philip Müller
9ee5e2cbde
Merge branch 'calamares' of https://github.com/calamares/calamares into development
2021-01-20 20:04:03 +01:00
Adriaan de Groot
6978ce3cb4
[partition] Collect more kpmcore 4.2 code
2021-01-20 14:56:34 +01:00