Commit Graph

9311 Commits

Author SHA1 Message Date
Adriaan de Groot
eb627bc055 [partition] Avoid crash when PARTITION_UNSAFE is on
PARTITION_UNSAFE is a debug mode. It is not used in
production, because it allows you to pick an install
device that would be dangerous (e.g. the current / device).

Existing code kept two copies of a list of pointers,
and deleted pointers from one of the lists and returned
the other -- which now contains dangling pointers.

Refactor by applying suitable lambdas to a single
copy of the list; this avoids copying the list so
there is no danger of dangling pointers.
2021-06-08 13:22:56 +02:00
Adriaan de Groot
8f81fd7188 CI: bump openSUSE
- needs newer dependency installation
- try out the slightly-hardened notifications
2021-06-08 11:50:09 +02:00
Adriaan de Groot
154396f80a CI: drop support for clang-format10 and later
The only acceptable versions of clang-format are 8 and 9 for now
(until another round of big-churn-from-formatting, at which point
we'll update the required version).

clang-format-9 says:

    SpacesInSquareBrackets (bool)
      If true, spaces will be inserted after [ and before ]. Lambdas
      or unspecified size array declarations will not be affected.

clang-format-10 changes part of that to:

      Lambdas without arguments or unspecified size array
      declarations will not be affected.

This means that 9 will only allow `[name]` for captures, and 10
will only allow `[ name ]` for captures, so they ping-pong all
the lambda's in the codebase back and forth. Just don't.
2021-06-04 14:55:11 +02:00
Adriaan de Groot
f3c57723df CI: make clang-format wrangling more flexible
Various clang-format versions have different defaults and
don't understand the same options, so adjust to having
files per-formatting-version to patch things up.
2021-06-04 14:47:26 +02:00
Adriaan de Groot
236bd0eb96 CI: adjust clang-formatting
- duplicate the file to .base
- drop 10-and-later setting that was commented out
- specific setting for lambda-formatting (this seems to be the default)
2021-06-04 14:46:00 +02:00
Adriaan de Groot
a57a1fdbd8 [partition] Improve logging while collecting devices 2021-06-04 13:32:22 +02:00
Adriaan de Groot
78af510535
Merge pull request #1708 from demmm/calamares
[localeq], working Offline.qml
2021-05-31 11:48:10 +02:00
Adriaan de Groot
b68e535131 [libcalamares] Log to file and stdout consistently
- The log **file** got every QDebug object, while stdout only
  got the ones of sufficient logging level. A CDebug object checks the
  logging level before writing anything -- so those already were
  consistent, but any qDebug() in the program (not cDebug()!) would
  reach the writing-function anyway, and so log to the file.
  Fix this weird inconsistency by checking log-level just once,
  for both writes.
2021-05-31 11:39:13 +02:00
Adriaan de Groot
716328cafb [libcalamares] Un-clog Logging
- Map QtMsgType -- used by qDebug() and qWarning() -- to levels used
  by Calamares in a consistent fashion.
- Drop unused log levels (INFO, EXTRA unused in any Calamares code).
2021-05-31 11:26:49 +02:00
Adriaan de Groot
ddcfd861cc Changes: note communications 2021-05-31 11:03:24 +02:00
Adriaan de Groot
1825ae1de4 Docs: IRC links to Libera.Chat 2021-05-31 10:41:49 +02:00
Adriaan de Groot
a72d59d23b [partition] Don't mention IRC support for weird configs 2021-05-31 10:38:37 +02:00
Adriaan de Groot
516c8bf7b6 CI: fix artifact-building
The generic-build step runs an install to the host system; for artifact-
generation, we need it all centralized in a stage/ directory. Do that
separately for the KDE neon builds that produce the artifact.
2021-05-30 14:46:13 +02:00
Adriaan de Groot
241c1840aa CI: chase new actions 2021-05-28 17:38:30 +02:00
Adriaan de Groot
fe78ec494f CI: use shared prepare and build steps 2021-05-28 17:06:12 +02:00
Adriaan de Groot
1021db053d CI: switch to shared Calamares actions entirely 2021-05-28 12:55:52 +02:00
Adriaan de Groot
2d8cf6aabf [partition] Fix build against KPMCore3 2021-05-26 16:36:28 +02:00
Adriaan de Groot
03b2c8054b CI: opensuse doesn't have curl installed by default 2021-05-26 16:12:17 +02:00
Adriaan de Groot
2107efdd75 CI: remove Matrix script (it's now a regular action) 2021-05-26 16:11:58 +02:00
demmm
72f97ac163 [localeq] Offline.qml visual improvements 2021-05-26 12:38:08 +02:00
Philip Müller
2c99a8c6f8
[displaymanager] add cutefish
- more info at https://cutefishos.com/
2021-05-26 09:36:02 +02:00
demmm
ffe3209121 [localeq], working Offline.qml 2021-05-25 22:52:10 +02:00
Adriaan de Groot
cf341c53fa Merge branch 'calamares' into improve-partition 2021-05-25 17:37:15 +02:00
Adriaan de Groot
74c8f34b79 CI: move nightlies reporting to Matrix 2021-05-25 16:27:12 +02:00
Adriaan de Groot
e15db9a68c CI: move issues notification to Matrix 2021-05-25 16:25:30 +02:00
Adriaan de Groot
b419f5a3c3 CI: fix up quotes in command 2021-05-25 16:23:59 +02:00
Adriaan de Groot
93221da5ea CI: fix up notifications to Matrix 2021-05-25 15:47:44 +02:00
Adriaan de Groot
e2d6e63fe6 Merge remote-tracking branch 'origin/issue-1701' into calamares
FIXES #1701

There's now a check in place that suppresses the GPT-for-BIOS
message if the user is going to follow its advice already.
2021-05-25 15:45:07 +02:00
Adriaan de Groot
d8b8d17e86 CI: try simpler action 2021-05-25 15:01:18 +02:00
Adriaan de Groot
5bf118409a CI: try to use actions-metadata rather than local script 2021-05-25 14:39:09 +02:00
Adriaan de Groot
c333b9bb0a CI: want jq for actions in the nightlies, too 2021-05-25 14:38:40 +02:00
Adriaan de Groot
01911beccc [partition] Expand debugging output
The partition path isn't set yet, so is probably 'empty'. Try logging the device, too.
2021-05-25 14:16:28 +02:00
Adriaan de Groot
252a88cb7f [partition] Check for suitable bios_grub partition. 2021-05-25 14:07:58 +02:00
Adriaan de Groot
43c172f54d [partition] Tighten up types
Don't return the generic Abstract model for bootloader, but
the subclass pointer, so that consumers can use the convenience
API on the subclass.
2021-05-25 13:23:28 +02:00
Adriaan de Groot
d0276fd25f [partition] Look up bootloader by name, method
The bootloader model knows about both rows and
devices, so we can look up both at once. The
existing implementation as a non-member was rather
sketchy and wasn't used except as support for
restoreSelectedBootLoader().
2021-05-25 13:05:45 +02:00
Adriaan de Groot
dabd895755 [partition] Use type alias consistently 2021-05-25 12:33:12 +02:00
Adriaan de Groot
d630c2aadf [partition] Introduce a check if the GPT-on-BIOS popup should be shown
The check is bogus right now, and it still always warns; but if
the `shouldWarnForGPTOnBIOS()` function is implemented, this will
fix issue 1701.
2021-05-25 12:00:35 +02:00
Adriaan de Groot
e773fb65a8 CI: migrate push notification to helper script 2021-05-25 11:21:41 +02:00
Adriaan de Groot
a73ad23b9f CI: need jq for JSON-formatting of matrix message data 2021-05-25 10:40:20 +02:00
Adriaan de Groot
ded7991dd6 CI: different tactic for notifications 2021-05-25 09:55:45 +02:00
Adriaan de Groot
dd670f7c44 Merge branch 'issue-1702' into calamares
FIXES #1702
2021-05-24 23:08:14 +02:00
Adriaan de Groot
aa4569b55b [packages] Convert command-failures into readable error messages
If the pakcage manager fails in some way, convert to a readable
error message instead of leaking the exception to the caller
(which produces a traceback, which is harder to read and less
informative)
2021-05-24 23:07:11 +02:00
Adriaan de Groot
bb1df38caa [bootloader] Convert command-failures into readable error messages
Avoid leaking errors to the caller, because that gets us a
traceback and generic Python Error message, which is less-than-helpful.
2021-05-24 23:05:46 +02:00
Adriaan de Groot
e186e54434 [fstab] Don't fail with a KeyError in misconfigured installations
Use get() instead of [] to avoid KeyError when the host system
confuguration is entirely missing a setting for *mountOptions*.

FIXES #1702
2021-05-24 22:16:54 +02:00
Adriaan de Groot
98ebb6f8d1 CI: send push-related CI notifications to Matrix 2021-05-21 16:24:56 +02:00
Adriaan de Groot
7830461ac5 Docs: one more round of badging 2021-05-19 15:21:05 +02:00
Adriaan de Groot
caea146840 Docs: styling, badge for matrix 2021-05-19 14:57:33 +02:00
Adriaan de Groot
b48de5b908 Docs: mention Matrix consistently 2021-05-19 14:28:24 +02:00
Adriaan de Groot
e4c97cac2b Docs: link to the website user-guide, not the wiki version 2021-05-19 14:25:10 +02:00
Adriaan de Groot
efe41da24d Docs: mention Matrix channel, too 2021-05-19 14:25:10 +02:00