6668 Commits (ed14c49a033d649964fb4a7579809fe64a176e2b)

Author SHA1 Message Date
Adriaan de Groot 3c7d97403e [plasmalnf] Apply coding style 5 years ago
Adriaan de Groot 1eba562d07 [partition] Apply coding style 5 years ago
Adriaan de Groot 9c2a26bed5 [libcalamares] Apply coding style 5 years ago
shainer 1007680931 Fix error handling in ChangeFilesystemLabelJob 5 years ago
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.
5 years ago
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)
5 years ago
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.
5 years ago
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.
5 years ago
shainer 1cfdc8044c Display current filesystem label as a column in the main partition view. 5 years ago
Adriaan de Groot 559b79f920 [partition] Use (better documented) filesystem-use API 5 years ago
Adriaan de Groot 10bec1d970 [libcalamares] Expand API to allow clearing out the filesystem use 5 years ago
Adriaan de Groot 9665af0e5a [libcalamares] Make keys case-insensitive (as documented) 5 years ago
Adriaan de Groot 48541629f9 [libcalamares] Extend tests to handle case-insensitive 5 years ago
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
5 years ago
Adriaan de Groot 488631824d [libcalamares] Make the KPMCore global storage filesystem handlers inline 5 years ago
Adriaan de Groot 75eb2c3cd4 [libcalamares] Add tests for filesystem_use service 5 years ago
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.
5 years ago
Adriaan de Groot 1e1b7b7ece [libcalamares] Introduce a convenience getter for GlobalStorage 5 years ago
Adriaan de Groot cc6a598c61
Merge pull request #1658 from erikdubois/calamares
displaymanager from arcolinux
5 years ago
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.
5 years ago
Adriaan de Groot dc0164d508 [libcalamares] Also install the version header 5 years ago
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)
5 years ago
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.
5 years ago
Adriaan de Groot c54e417ff3 [calamares] Add a 'send log' button to the debug window
FIXES #1660
5 years ago
Adriaan de Groot 668921543a [libcalamaresui] Convenience method to check if paste would do anything 5 years ago
Adriaan de Groot 5ed1dff655 Merge branch 'issue-1579' into calamares
FIXES #1579
5 years ago
Adriaan de Groot 3588f06767 [netinstall] Document groupsUrl with multiple entries 5 years ago
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)
5 years ago
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
5 years ago
Erik Dubois 0379fa9b7d displaymanager from arcolinux 5 years ago
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.
5 years ago
Adriaan de Groot 186d32ebee [partition] More missing ; 5 years ago
Adriaan de Groot 2b4bc7adf4 [partition] Apply newer formatting tool 5 years ago
Adriaan de Groot bb426ebac4 [partition] Add missing ; (and apply coding style) 5 years ago
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.
5 years ago
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.
5 years ago
Adriaan de Groot 9acd2fe458 [netinstall] Use the packages service 5 years ago
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.
5 years ago
Adriaan de Groot 5b609565e2 [libcalamares] Make Packages API more flexible
- pass in the GS object; this makes mostly **testing** much easier
5 years ago
Adriaan de Groot b868894371 [libcalamares] Start a packages service for netinstall and others 5 years ago
Adriaan de Groot 6662cb5f2d [netinstall] Swap parameters to makeSourceItem and document it 5 years ago
Adriaan de Groot 79b4f918fc [netinstall] Apply coding style 5 years ago
Adriaan de Groot 8e8525a941 [netinstall] Simplify slots in the UI page 5 years ago
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.
5 years ago
Adriaan de Groot 72f67286a4 [libcalamares] Preserve type CDebug() if possible. 5 years ago
Adriaan de Groot 8fe2e1f68a [finished] Make the debug-log less cryptic 5 years ago
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)
5 years ago
Adriaan de Groot a4c1f07521 [libcalamares] Reduce indentation-depth in apply() through early-return 5 years ago
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
5 years ago
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
5 years ago
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.
5 years ago
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
5 years ago
Adriaan de Groot 44ac33845d Merge branch 'fix-usersq' into calamares 5 years ago
Adriaan de Groot 46f7e6c131 Merge branch 'hotfix-38' into calamares 5 years ago
Adriaan de Groot 8348bd2bb7 [usersq] Call setters for checkboxes 5 years ago
Adriaan de Groot d2c0c8d638 [users] Grab hostname from config on creation 5 years ago
Adriaan de Groot b17e01edff [usersq] Call setters to move values back from QML to the C++ side 5 years ago
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.
5 years ago
Adriaan de Groot e60f8bcd06 [usersq] Tidy job creation and unnecessary code 5 years ago
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)
5 years ago
Adriaan de Groot 287047fe1a [users] Tidy up job creation -- leave it to Config 5 years ago
Adriaan de Groot 98d42719e1
Merge pull request #1622 from Chrysostomus/btrfs-subvol
[fstab][mount] Create and mount btrfs subvolumes in generalized manner
5 years ago
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
5 years ago
Adriaan de Groot cdbc5a7b4b
Merge pull request #1652 from Conan-Kudo/rm-urpmi
[packages] Drop urpmi support
5 years ago
Adriaan de Groot cc310a04b8 [users] Fix schema to match actual field names 5 years ago
Calamares CI 3fafeaf09a i18n: [dummypythonqt] Automatic merge of Transifex translations 5 years ago
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.
5 years ago
Adriaan de Groot caf18321df [users] Adjust UI to is-field-editable based on presets 5 years ago
Adriaan de Groot 7bae625f46 [users] Pick up UI changes based on the values from Config 5 years ago
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.
5 years ago
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.
5 years ago
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
5 years ago
Adriaan de Groot 941cc9c48b [users] Match presets to the actual name of fields 5 years ago
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
5 years ago
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.
5 years ago
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.
5 years ago
Adriaan de Groot 448e478b6d [users] Use base Config and its Preset-handling 5 years ago
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.
5 years ago
Adriaan de Groot 381a4f9b53 [users] Add preset to users module Config 5 years ago
Adriaan de Groot d9f2f5e988 [libcalamares] Start a 'presets' configuration datastructure 5 years ago
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
5 years ago
Adriaan de Groot cb67c79203
Merge pull request #1651 from demmm/calamares
[finishedq] add license for svg file
5 years ago
demmm a7b46a02eb [finishedq] add license for svg file 5 years ago
Adriaan de Groot 98524708cc [partition] Chase namespace change for Units 5 years ago
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.
5 years ago
Adriaan de Groot 980e5e13f8 Merge branch 'fixup-log-upload' into calamares 5 years ago
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.
5 years ago
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.
5 years ago
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.
5 years ago
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
5 years ago
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.
5 years ago
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
5 years ago
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.
5 years ago
Adriaan de Groot bce6f3f1b7 [libcalamaresui] Adjust paste code to desired API
Still doesn't compile because consumers are not ready.
5 years ago
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.
5 years ago
Adriaan de Groot f72436aa0a [libcalamaresui] Drop RE-wrangling, compare hosts instead to detect valid paste URL 5 years ago
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.
5 years ago
Adriaan de Groot 1bf95eacb0 [libcalamaresui] Tidy the logging some more 5 years ago
Adriaan de Groot 260862fabc [libcalamaresui] Move the format-string closer to where it is used 5 years ago
Adriaan de Groot 844831751d [libcalamaresui] Factor out the reading of the log file
- this will be needed for other pastebins, too
5 years ago