6083 Commits (ef70b2c32e2692ecb7907067ca9d93c29e0e8a14)

Author SHA1 Message Date
Adriaan de Groot a92cb32cef [partition] set the right buttons if an action is pre-selected 5 years ago
Adriaan de Groot b518ef7dfe [partition] Select initial swap choice 5 years ago
Adriaan de Groot 9f0f600aa4 [partition] Remove the 'swapfile-unsupported' message 5 years ago
Adriaan de Groot 3bb5adcfca [partition] Simplify *efiSystemPartition* settings 5 years ago
Adriaan de Groot f155c8351b [partition] Only one setting for partitionLayout is supported 5 years ago
Adriaan de Groot b6dd23a384 Merge branch 'calamares' into issues-1166 5 years ago
Adriaan de Groot ace6323987 [libcalamares] Be even more chatty in job progress
This is for debugging-job-progress reports.
5 years ago
Adriaan de Groot 75b01cfc0a [libcalamares] Some debugging output for job progress, so you can double-check that the settings are being picked up 5 years ago
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.
5 years ago
Adriaan de Groot 6b07bdf6ed [keyboard] Do not use deprecated Qt4-era indexChanged for text 5 years ago
Adriaan de Groot 02423c823d [libcalamaresui] Nothing uses the opacity for pixmaps, drop that too 5 years ago
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.
5 years ago
Adriaan de Groot 2878c474c5 Warnings-- (~T() override)
Change all the places that had
	virtual ~T() override
to the less redundant form without override.
5 years ago
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).
5 years ago
Adriaan de Groot 7d5a209dd0 [modules] Warnings-- in tests (~Test() override) 5 years ago
Adriaan de Groot 8b66009d59 [libcalamares] Warnings-- in tests (~T() override) 5 years ago
Adriaan de Groot 0cffac10c6 [libcalamares] Ignore more warnings for system header YAML 5 years ago
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`
5 years ago
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.
5 years ago
Adriaan de Groot 705756b9bb [libcalamaresui] Give UI chance to catch up before modules are done 5 years ago
Adriaan de Groot 53cb27ebc8 [calamares] Provide i18n context for "Key" 5 years ago
Adriaan de Groot ac0b2092f2 [partition] Remove superfluous logging 5 years ago
Adriaan de Groot cadd9765db [usersq] Remove trailing . 5 years ago
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.
5 years ago
Adriaan de Groot 1f77441333 [partition] add job-removal to the support classes 5 years ago
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.
5 years ago
Adriaan de Groot e94c17e331 Merge branch 'calamares' into issues-1166 5 years ago
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)
5 years ago
Adriaan de Groot 5f7c9a00a0 [machineid] Test that random-files are created 5 years ago
Adriaan de Groot a5887e6dda [machineid] Test config-settings for entropy files 5 years ago
Adriaan de Groot 8be5c2ed10 [machineid] Support multiple entropy files 5 years ago
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
5 years ago
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
5 years ago
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.
5 years ago
Adriaan de Groot 2aece7ff1b [keyboard] Warn if QRC is not available 5 years ago
Adriaan de Groot 0d8e0d9b96 [keyboard] Add a stub for unit tests 5 years ago
Adriaan de Groot af3261b16f [keyboard] Refactor findLegacyKeymap into something testable 5 years ago
Adriaan de Groot 466e08a8ba [welcome] Set some localeConf values from the welcome page 5 years ago
Adriaan de Groot 634a53d27a [locale] Use new convenience function for updating localeConf 5 years ago
Adriaan de Groot e0ba5a6ba2 [libcalamares] Convenience functions for localeConf GS entry 5 years ago
Adriaan de Groot d94b9caba5 [libcalamaresui] Less mutex shenanigans 5 years ago
Adriaan de Groot 32649f78ea [libcalamares] Restore finish() slot to job queue
FIXES #1507
5 years ago
Adriaan de Groot d5eaacf67a i18n: used wrong list of languages
FIXES #1505
5 years ago
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.
5 years ago
Adriaan de Groot d7dc48d201 [users] Add now-obvious missed initialization
- start the checkbox off in the state from config
5 years ago
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)
5 years ago
Adriaan de Groot d584a96335 [users] Improve naming of widget 5 years ago
Adriaan de Groot 3ae545c8b1 REUSE: qmldir file format doesn't leave space for license information 5 years ago
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.
5 years ago
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.
5 years ago
Adriaan de Groot 9afe7a3711 [libcalamares] Document JobQueue signals 5 years ago
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
5 years ago
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
5 years ago
Adriaan de Groot 23bfcb755e i18n: pick up the translations CMake module just once 5 years ago
Adriaan de Groot e02c21285a i18n: remove the compiled .mo files from 'sources' 5 years ago
Adriaan de Groot c3903b6e88
Merge pull request #1502 from asif-mahmud/calamares
[libcalamares] Internet accessibility checking done by synchronous ping method
5 years ago
Asif Mahmud Shimon c6a3e9b816 Internet accessibility checking done by ping method 5 years ago
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
5 years ago
Adriaan de Groot ae14059e8b [webview] Config header was still misplaced
- use #error to produce slightly more comprehensible build failers
5 years ago
demmm 7c08f9a033 [keyboardq] rewrite keyboard.qml
no longer use extra qml files
better highlighting, updated text, fewer buttons
5 years ago
Adriaan de Groot a2180936ef CI: apply coding style across the entire codebase again 5 years ago
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.
5 years ago
Adriaan de Groot 5a3fb613d9 REUSE: Default branding assets and explanation 5 years ago
Adriaan de Groot 30a85668b7 REUSE: (GPL-3.0-or-later) C++ modules 5 years ago
Adriaan de Groot 863a4cc2a4 REUSE: (GPL-3.0-or-later) Python modules 5 years ago
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.
5 years ago
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
5 years ago
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
5 years ago
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.
5 years ago
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.
5 years ago
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.
5 years ago
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.
5 years ago
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
5 years ago
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.
5 years ago
Adriaan de Groot b65b5228e1 [welcome] Don't apply code-style to other C-code 5 years ago
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
5 years ago
Adriaan de Groot 42417ed3b2 [libcalamares] Rip out the broken jobqueue information signals (break build) 5 years ago
Adriaan de Groot 2b86d2481c [libcalamares] finish() is a private implementation detail for the job queue 5 years ago
Adriaan de Groot 41769c8794 [packages] Alphabetize package manager implementations 5 years ago
Adriaan de Groot cf1ee2cffe Docs: explain how module weights work 5 years ago
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.
5 years ago
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.
5 years ago
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
5 years ago
Adriaan de Groot 521015b1b4 [libcalamares] Match types to existing qreal usage, signal progress 5 years ago
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
5 years ago
Adriaan de Groot 08ea51a344 [partition] Fix tests after removal of single-job-enqueue 5 years ago
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
5 years ago
Adriaan de Groot ecaf97aa60 [users] Tests of config-loading of groups lists 5 years ago
Adriaan de Groot ab3e393d45 [users] Protect against a nullptr deref
- there is typically no GS during tests
5 years ago
Adriaan de Groot 4b4d7f3b10 [libcalamares] Print a big fat warning before a typical now-crash situation 5 years ago
Adriaan de Groot 2ac518d8b9 [libcalamares] Change in stringlist extraction also changes single-string 5 years ago
Adriaan de Groot 41e2de85b1 [libcalamares] Fix up test -- 'lam' isn't supposed to be in the loaded data 5 years ago
Adriaan de Groot a5555c3f94
Merge pull request #1491 from asif-mahmud/calamares
[libcalamares] retrieving string list fix
5 years ago
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
5 years ago
Adriaan de Groot 117859082e [libcalamares] Merge Tests.h into Tests.cpp
- no real need for separate file in the utils/ tests
5 years ago
Adriaan de Groot 626ac572d9 Merge branch 'hotfix-3.2.28.2' into calamares 5 years ago
Adriaan de Groot c92e12ef74 [users] Consistent styling of status badges on input fields
- Use Status* icons rather than the yes/no
5 years ago
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
5 years ago
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.
5 years ago
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.
5 years ago