8601 Commits (a4682db9872e14c953c1de3a1084a7baea816890)
 

Author SHA1 Message Date
Gaël PORTAY 6013ed52f8 [partition] Ignore unformatted filesystem 4 years ago
Gaël PORTAY db08d2db8b [partition] Make filesystem optional and default to unformatted 4 years ago
Gaël PORTAY 163351a803 [mount] Ignore empty or unformatted filesystems 4 years ago
Gaël PORTAY c6feedf923 [mount] Ignore empty mountpoints 4 years ago
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'.
4 years ago
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.
4 years ago
Adriaan de Groot 486cdaeeb6 [users] Shuffle library order to satisfy CI build 4 years ago
Adriaan de Groot 2bd3f1d8c1 Merge branch 'issue-1523' into calamares 4 years ago
Adriaan de Groot b61b5f8650 [users] Run an expected-to-fail test in creating groups 4 years ago
Adriaan de Groot 8127ae704c [users] Expand tests for groups a little 4 years ago
Adriaan de Groot e66f81f6ee CMake: comment on BUILD_AS_TEST 4 years ago
Adriaan de Groot 10991346b7
Merge pull request #1561 from gportay/partition-set-swap-partition-name
[partition] Allow a configurable swap Partition name
4 years ago
Adriaan de Groot 7578768c46
Merge pull request #1562 from gportay/partition-group-efi-things-together
[partition] Group EFI things together
4 years ago
Artem Grinev 4e54a2aefe [users] Cleaned error handling a bit 4 years ago
Artem Grinev 8e07bb00f9 [users] Construct icu::UnicodeString from QString's utf16 chars directly 4 years ago
Artem Grinev 48eae463cc [users] Full name transliteration support for user creation 4 years ago
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.
4 years ago
Adriaan de Groot 4746754344 [keyboard] Translate layouts as well 4 years ago
Adriaan de Groot 6863db0dc1 [keyboard] Use the translations if they were loaded 4 years ago
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
4 years ago
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.
4 years ago
Adriaan de Groot b15a76804c i18n: bogus Tajik keyboard translations 4 years ago
Adriaan de Groot 621ac9b8db Merge branch 'partition-warnings' into calamares 4 years ago
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.
4 years ago
Adriaan de Groot d26fde6647 [partition] Reduce warnings
- Add a helper header that munges the warnings-settings so that
  KPMcore headers can be included.
4 years ago
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;
4 years ago
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.
4 years ago
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
4 years ago
Gaël PORTAY 3967cfe0eb [partition] Group EFI things together 4 years ago
Adriaan de Groot 9d930ad9cc
Docs: fix the table 4 years ago
Gaël PORTAY a1d45122eb [partition] Update partition.conf 4 years ago
Adriaan de Groot 8bfc4dfcd2 Docs: try to get the table of links right 4 years ago
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.
4 years ago
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.
4 years ago
Adriaan de Groot 71e0081fce [keyboard] SPDX-tagging 4 years ago
Adriaan de Groot 7db398cfdf
Merge pull request #1558 from gportay/partition-cleanups
[partition] cleanups
4 years ago
Adriaan de Groot 89a04e0fa3
Merge pull request #1559 from gportay/libcalamres-cleanups
[libcalamres] cleanups
4 years ago
Adriaan de Groot 89a180ee58 [keyboard] Initial support for translated keyboard names 4 years ago
Adriaan de Groot b72eba8157 [libcalamares] Extend the Deleter-helper with "preserve"
Sometimes you want to keep the thing around after all.
4 years ago
Adriaan de Groot 7659dfdb9d [libcalamares] Expose a translations-loading function 4 years ago
Gaël PORTAY f03ae06deb [partition] Rename execute to createPartitions 4 years ago
Gaël PORTAY f2bfe2bd6a [partition] Fix coding style 4 years ago
Gaël PORTAY cd725fbb4b Fix missing SPDX-FileCopyrightText in header 4 years ago
Gaël PORTAY 2007335865 [partition] Rename the KPMCore Partition local to part 4 years ago
Gaël PORTAY 32c1f81fbf [partition] Rename iterator in for loop to entry 4 years ago
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.
4 years ago
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().
4 years ago
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.
4 years ago
Gaël PORTAY 03df5f6891 [libcalamares] Fix constness of functions 4 years ago
Gaël PORTAY aec066359a [libcalamares] Fix coding style 4 years ago