Commit Graph

8279 Commits (1f9f506a16e26d6e41bad65fadb2cfdca47d5a8d)
 

Author SHA1 Message Date
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.
Adriaan de Groot 486cdaeeb6 [users] Shuffle library order to satisfy CI build
Adriaan de Groot 2bd3f1d8c1 Merge branch 'issue-1523' into calamares
Adriaan de Groot b61b5f8650 [users] Run an expected-to-fail test in creating groups
Adriaan de Groot 8127ae704c [users] Expand tests for groups a little
Adriaan de Groot e66f81f6ee CMake: comment on BUILD_AS_TEST
Adriaan de Groot 10991346b7
Merge pull request from gportay/partition-set-swap-partition-name
[partition] Allow a configurable swap Partition name
Adriaan de Groot 7578768c46
Merge pull request from gportay/partition-group-efi-things-together
[partition] Group EFI things together
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.
Adriaan de Groot 621ac9b8db Merge branch 'partition-warnings' into calamares
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.
Adriaan de Groot d26fde6647 [partition] Reduce warnings
- Add a helper header that munges the warnings-settings so that
  KPMcore headers can be included.
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;
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.
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
Gaël PORTAY 3967cfe0eb [partition] Group EFI things together
Adriaan de Groot 9d930ad9cc
Docs: fix the table
Gaël PORTAY a1d45122eb [partition] Update partition.conf
Adriaan de Groot 8bfc4dfcd2 Docs: try to get the table of links right
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.
Adriaan de Groot 71e0081fce [keyboard] SPDX-tagging
Adriaan de Groot 7db398cfdf
Merge pull request from gportay/partition-cleanups
[partition] cleanups
Adriaan de Groot 89a04e0fa3
Merge pull request from gportay/libcalamres-cleanups
[libcalamres] cleanups
Gaël PORTAY f03ae06deb [partition] Rename execute to createPartitions
Gaël PORTAY f2bfe2bd6a [partition] Fix coding style
Gaël PORTAY cd725fbb4b Fix missing SPDX-FileCopyrightText in header
Gaël PORTAY 2007335865 [partition] Rename the KPMCore Partition local to part
Gaël PORTAY 32c1f81fbf [partition] Rename iterator in for loop to entry
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.
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().
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.
Gaël PORTAY 03df5f6891 [libcalamares] Fix constness of functions
Gaël PORTAY aec066359a [libcalamares] Fix coding style
Gaël PORTAY db7cf74034 [partition] Remove the call the method contains
- The variant helper getString() calls contains() already.
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.
Gaël PORTAY eae1e90dce [partition] Remove unused PartitionLayout constructor
- The constructor PartitionLayout with PartitionEntry appears to be
  unused since its always. Drop it!
Gaël PORTAY f2960366c8 [partition] Remove unused addEntry method
- The method addEntry with PartitionEntry appears to be unused since its
  always. Drop it!
Adriaan de Groot 8457a00ad0 [keyboard] Fix group-switcher multiplying
FIXES 
Adriaan de Groot daaf16d331 Merge branch 'calamares' into issue-1523
Adriaan de Groot c36aa43f86 CI: use a larger tmpfs for the build (my local build/ is 112M)
Calamares CI f822856441 i18n: [python] Automatic merge of Transifex translations
Calamares CI 3e57979e73 i18n: [desktop] Automatic merge of Transifex translations
Calamares CI e4a8b8358f i18n: [calamares] Automatic merge of Transifex translations
Adriaan de Groot aeeb4332b0 Changes: add Vietnamese translation
Adriaan de Groot 018788ddc0 Changes: document Artem's work
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 
Adriaan de Groot cd9c0ea781 [keyboard] Reduce debugging output
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.
Adriaan de Groot 0bf28b0b94 [keyboard] Sanity in setCurrentIndex() parameters
Adriaan de Groot 9e141636c5 [keyboard] Tidy up the debugging output, add docs