Adriaan de Groot
f958a3c2f7
[welcome] Update the results-list when a round of checks completes
...
When the checks were done, the widget showing the countdown-timer
and results was not being informed, so it didn't update the
display of the countdown timer or hide the list of problems
(when there are none) so that the welcome image is shown.
FIXES #1974
2022-06-07 12:12:54 +02:00
Adriaan de Groot
d4a776e759
[libcalamaresui] Adjust description of countdown spinner
2022-06-07 11:55:03 +02:00
Adriaan de Groot
1ae79fe58c
[calamares] Make naming consistent between 'special' buttons
2022-06-03 12:08:41 +02:00
Adriaan de Groot
687d44859f
[calamares] Restore text on debug- and about-buttons
2022-06-03 12:08:09 +02:00
Adriaan de Groot
2c07463ac6
[libcalamaresui] Check for typo's in branding keys
2022-06-03 11:53:02 +02:00
Adriaan de Groot
7356961f52
[libcalamares] Use the enum names as keys
...
- this uses the Qt internals to map enum values to names, making
the separate translation table unnecessary. Adjust default branding
to use the new names.
This makes code (using enum identifiers) and configuration (using
string keys) consistent in naming.
2022-06-03 11:40:10 +02:00
Adriaan de Groot
e6d72cb23b
[calamares] Correct enum-names in QML Sidebar
...
- previous commits did not fix up all the enum names; this means
you get errors -- because Branding.SidebarTextSelect is not a known
name in the enum Branding::StyleEntry -- and the colors are messed up.
2022-06-03 11:27:39 +02:00
Adriaan de Groot
dc699db5f5
[libcalamaresui] Document style-string mapping
...
- while here, the static array of names doesn't need to be
a class member, it is entirely internal.
- document how names are mapped to branding keys.
2022-06-03 11:20:59 +02:00
Adriaan de Groot
c9be4c744f
[partition] Use the chosen replace-filesystem type
2022-06-03 10:44:39 +02:00
Adriaan de Groot
916b87e62e
[partition] (unrelated) remove compatibility code for older Qt
2022-06-02 18:36:26 +02:00
Adriaan de Groot
425901fb98
[partition] Fix up combo-box handling for replace-fs choice
2022-06-02 18:32:54 +02:00
Adriaan de Groot
3b55b65a34
[partition] Implement config-side of a replace-filesystem choice
2022-06-02 18:30:35 +02:00
Adriaan de Groot
b763087e11
[partition] Partial implementation of Config-side for storing replace-FS
2022-06-02 14:58:28 +02:00
Adriaan de Groot
e27c57f8a6
[partition] Add FS-choice box when replacing (re-use the erase-fs configuration)
2022-06-02 14:58:11 +02:00
Adriaan de Groot
821a62ffbb
[libcalamares] Add missing <memory> for std::unique_ptr
...
SEE #1972
2022-06-02 14:38:44 +02:00
Adriaan de Groot
72240d0d59
Merge branch 'work-3.3' into calamares
2022-05-29 17:22:36 +02:00
Adriaan de Groot
fb910d7c41
[fstab] Fix schema for new tmpOptions settings
2022-05-29 17:04:24 +02:00
Adriaan de Groot
55f1df9563
[users] Just don't test restore-to-previous, too flaky
2022-05-29 17:00:37 +02:00
Adriaan de Groot
1b2d12b9a1
[calamares] Give QML-progress-panel an about-button
2022-05-29 16:12:10 +02:00
Adriaan de Groot
ce74d2fdfc
[calamares] Fix QML progress highlights
2022-05-29 15:56:21 +02:00
Adriaan de Groot
d34f593562
[calamares] Migrate the about-dialog to the debug (meta) window manager
...
- DebugWindowManager already manages not-really-Calamares windows
like the Debug window, add About-Dialog to its responsibilities.
- Make about() accessible to the QML progress panel.
2022-05-29 15:54:03 +02:00
Adriaan de Groot
00898b18d6
[welcomeq] Remove about-calamares button from default QML
2022-05-29 15:38:06 +02:00
Adriaan de Groot
84186babab
[welcome] Remove the about-calamares button from the (widgets) UI
2022-05-29 15:34:19 +02:00
Adriaan de Groot
18363ca183
[welcome] Move about-calamares box to Calamares (main)
2022-05-29 15:31:25 +02:00
Adriaan de Groot
006c3f99e6
[calamares] Add 'about calamares' button alongside the debug-button
2022-05-29 15:22:02 +02:00
Adriaan de Groot
3e72635204
[libcalamares] Fix path-search for loading branding-translation
...
- log which path is actually being used
- there are two overloads for QTranslator::load(); the intention
was to call `QTranslator::load(const QLocale&, ...)`, but the
types of the arguments were wrong, leading to the other
overload being called, and interpreting the locale-name
(e.g. "nl") as a full filename.
Improve logging, call the "other" overload with the right parameters
and drop the not-needed ones.
FIXES #1961
2022-05-29 00:55:35 +02:00
Adriaan de Groot
6e8d820737
[partition] Missing space
2022-05-28 13:43:45 +02:00
Adriaan de Groot
135fce77c1
i18n: update english
2022-05-27 12:39:58 +02:00
Adriaan de Groot
af813ac95b
[fstab] Don't import (unused) subprocess
2022-05-24 16:51:36 +02:00
Adriaan de Groot
bb395db9f4
Merge branch 'release-3.2.58.2' into calamares
2022-05-24 16:48:05 +02:00
Adriaan de Groot
ff7ceb2e2b
[fstab] Replace two-step attribute-setting with one step
2022-05-24 15:56:34 +02:00
Adriaan de Groot
f4e5e08aa8
[fstab] Be more careful in setting up btrfs swap
...
- do not use subprocess module in Python bits,
- do +C (no-CoW) after turning compression off
2022-05-24 15:18:50 +02:00
abalfoort
63ee982d36
[fstab] Configure tmp on tmpfs
...
Adds a new option / configuration keys to `fstab.conf` to
configure how /tmp is created. The example shows how /tmp
is made *tmpfs* on an SSD, or on not-SSD, is just-a-directory.
FIXES #1818
2022-05-24 13:26:07 +02:00
abalfoort
4e5078c950
[fstab] Fix unencrypted root check
...
There are more ways (than not having a keyfile) for the root
partition to be unencrypted. Check it based on the settings
in the partition data.
2022-05-24 13:25:28 +02:00
abalfoort
badb1d4706
[luksbootkeyfile] Handle key-slots-are-full
2022-05-24 13:07:17 +02:00
Adriaan de Groot
fd53c090f4
[partition] Massage coding style
...
- some long-missing (unrelated to recent PR) braces
- remove some redundant comments
2022-05-24 12:58:02 +02:00
Adriaan de Groot
6de880c95d
[partition] No need for temporary variable
2022-05-24 12:58:02 +02:00
Adriaan de Groot
de03a92a8f
[partition] Move LUKS helpers code-documentation
2022-05-24 12:58:02 +02:00
abalfoort
2a7cbd2520
[partition] update LuksDevice to savePassphrase and enum
2022-05-24 12:58:02 +02:00
Adriaan de Groot
7e4fc3e4c7
[welcome] Use about-message from Config
...
- for QML, this is the easiest way to factor out the message
(no convenient access to free functions, unless I bung the
message into e.g. Branding where I don't think it fits
very well).
2022-05-23 17:11:45 +02:00
Adriaan de Groot
f9f18e5d3b
[welcome] Use welcome message from Config object
2022-05-23 17:00:56 +02:00
Adriaan de Groot
4a852facb3
[welcome] Use generated about string
2022-05-23 16:57:51 +02:00
Adriaan de Groot
09255a1d9c
[libcalamares] Add a more extensible About message
...
- make the years easier to update without annoying translators
- make the maintainers extensible.
2022-05-23 16:45:23 +02:00
Adriaan de Groot
f8345a09a2
[netinstall] Add disambiguation to labels
2022-05-23 15:41:45 +02:00
Adriaan de Groot
cc7fe7fff7
[users] Adjust failure expectations (today, for an openSUSE development host)
2022-05-20 22:50:23 +02:00
Adriaan de Groot
0a4e6804c6
[partition] Move encryption state-calculation to state()
...
Previously, state() just returned a stored state, which changed
via updateState(). However, when updateState() started taking
visibility-of-the-widget into account, it became possible to
de-sync the *apparent* state of the encryption widget, from the
stored one:
- make an encryption widget, which is not visible
- show it.
Now the stored-state takes visibility into account that is
different (hidden, so we end up with a state of Unconfirmed)
from the apparent value (shown and unchecked).
Move the calculation to state() instead, so whenever queried,
it checks the current checks-and-visibility values. Restore
the previously-reverted bit for accepting LUKS partitions.
SEE #1935
SEE #1953
2022-05-20 18:10:24 +02:00
Adriaan de Groot
900700b9bc
[partition] Partial revert reuse-luks merge
...
- a hidden checkbox should not be handled the same as a checkbox
that is checked; if there is a setting that can be checked or
unchecked, it can only be checked when visible.
FIXES #1953
2022-05-20 13:49:32 +02:00
Adriaan de Groot
e7f6ead038
[partition] When changing encryption-widget visibility, re-check next
2022-05-20 12:02:25 +02:00
Adriaan de Groot
51e3ac0ded
[partition] Polish up debugging when checking for next-enabled
...
- Improve the messages a bit
- Remove useless variable (it is checking that the switch(choice)
statement covers all the cases; let's leave that to the compiler)
2022-05-20 11:56:08 +02:00
Adriaan de Groot
2a42084af4
[partition, users] Fix merge artifacts
2022-05-18 15:16:30 +02:00
Adriaan de Groot
66682b3e84
Merge branch 'calamares' into work-3.3
2022-05-18 15:13:21 +02:00
Adriaan de Groot
17814410e9
[users] always-forbidden-names should be set in the Config constructor
2022-05-18 14:40:35 +02:00
Adriaan de Groot
cebafcf869
[users] Make test more expressive
2022-05-18 14:37:02 +02:00
Adriaan de Groot
7d5a4eafa2
[partition] Support KPMCore3 API (no testPassphrase in FS::luks)
2022-05-18 14:06:00 +02:00
Adriaan de Groot
874a0c1f38
CI: apply coding style globally again
2022-05-18 12:44:55 +02:00
Adriaan de Groot
8fea6f71ab
[partition] Apply coding style
2022-05-18 12:26:19 +02:00
Adriaan de Groot
62f3055e5a
[netinstall] Implement a special "blank" item
...
- If the name of an item is empty, treat it as a
"separator line", do not paint it like a regular
item. The branches of the tree just pass it by.
2022-05-18 00:25:04 +02:00
Adriaan de Groot
9e2728bcb7
[netinstall] Polish up SPDX headers
2022-05-17 14:40:36 +02:00
Adriaan de Groot
6bf710bed3
[netinstall] Introduce a custom class for the Tree Widget
2022-05-17 14:38:44 +02:00
Adriaan de Groot
9d6bb2ee2a
Merge pull request #1952 from abalfoort/#1935
...
#1935 - Reuse luks partitions
2022-05-17 10:35:51 +02:00
Adriaan de Groot
a63c474d93
Merge pull request #1948 from dalto8/zfsencryption
...
[partition] Don't offer whole disk encryption when zfs is selected
2022-05-17 10:31:48 +02:00
abalfoort
f67df577db
Fix compilation warning
2022-05-16 15:08:11 +02:00
abalfoort
25a6a5ee53
Fix crypttab
2022-05-16 15:06:59 +02:00
abalfoort
cd4b8d4179
Reuse luks partitions
2022-05-16 15:06:33 +02:00
dalto
31c8123677
[partition] Remove no longer needed setChecked() in the encryption widget
2022-05-14 10:38:27 -05:00
Adriaan de Groot
d318778f53
Merge pull request #1949 from dalto8/removeemits
...
Remove unneeded emits
2022-05-14 17:24:48 +02:00
dalto
152f99fb07
Remove useless emits
2022-05-13 17:24:07 -05:00
dalto
42841a217c
[partition] Don't offer whole disk encryption when zfs is selected
2022-05-13 16:24:15 -05:00
demmm
7937cd625d
[localeq]Map.qml needed fixes
...
esri has several bugs, not showing for all locations, zooming on Americas broken
use osm as default, set preferred, so esri can be fallback
remove Label section for mouse movement, showing coordinates not really useful,
issue with mouse grabbing is back with it
2022-05-13 13:17:19 +02:00
Adriaan de Groot
52e2c8c262
[libcalamares] Use stronger type, rather than comment
2022-05-10 00:30:35 +02:00
Adriaan de Groot
a9df841770
CMake: fix Python3-executable uses
2022-05-10 00:07:41 +02:00
Adriaan de Groot
7096ee760e
[libcalamaresui] Remove unused image-transformation function
2022-05-10 00:07:41 +02:00
Adriaan de Groot
880c367d64
[libcalamaresui] Remove under-used function
2022-05-10 00:07:41 +02:00
Adriaan de Groot
704e250664
[libcalamaresui] Remove under-used function
...
- there was one consumer of this function, and it was over-engineered
for what was needed (removing a list of widgets). Just drop it.
2022-05-10 00:07:41 +02:00
Adriaan de Groot
928b46f18e
[libcalamaresui] Use namespace Calamares::Widgets
2022-05-10 00:07:41 +02:00
Adriaan de Groot
9196f696ea
[users] Ensure the basic forbidden-names are always forbidden by the constructor
2022-05-09 15:25:14 +02:00
Adriaan de Groot
824d706a20
[users] Fix tests
...
- in 3.3, the legacy values are ignored, so all the old-style
tests behave as if nothing is set at all.
- Some tests used old-style settings, adapt to newer ones.
2022-05-09 15:24:43 +02:00
Adriaan de Groot
f4e9b3689d
[users] Remove legacy settings
2022-05-09 15:06:21 +02:00
Adriaan de Groot
bbeba5c9ab
Merge branch 'calamares' into work-3.3
2022-05-09 15:03:41 +02:00
Adriaan de Groot
d0db56e964
[users] Simplify code: use contains() instead of a for-loop
2022-05-09 14:58:46 +02:00
Adriaan de Groot
ef9bf2650c
[users] Allow a configurable list of forbidden names
...
- forbidden login names
- forbidden host names
2022-05-09 14:51:13 +02:00
Adriaan de Groot
7473462125
[users] Introduce forbidden_names settings
2022-05-09 14:51:13 +02:00
Adriaan de Groot
40c5ef1c35
[users] Add new structured setting to example file
2022-05-09 14:33:39 +02:00
Adriaan de Groot
fe04ae3ac1
[users] Introduce new structure for users-settings
2022-05-09 14:33:39 +02:00
Adriaan de Groot
1bf5206bd7
[users] Apply code-style to test-code
2022-05-09 14:33:39 +02:00
dalto
85c67113b7
[mount] Update schema to use arrays
2022-05-09 06:50:33 -05:00
Adriaan de Groot
3bc3b352d8
[displaymanager] Add LF after last line of greetd configuration
...
FIXES #1937
2022-05-06 11:47:44 +02:00
Adriaan de Groot
21aa608ce2
Merge branch 'calamares' into work-3.3
2022-05-05 23:35:53 +02:00
Adriaan de Groot
091eb9683b
[libcalamares] Give Occitan a native name
2022-05-05 15:23:54 +02:00
Adriaan de Groot
4be25e2f70
[libcalamares] Special-case the regions through the lookup-table as well
2022-05-05 15:20:29 +02:00
Adriaan de Groot
2de7736291
[libcalamares] Replace locale special-cases by a table
...
Replace the function with a table-driven approach,
since that is somewhat easier to extend to more
languages.
2022-05-05 14:42:12 +02:00
Lt-Henry
a8857e51f4
Improving special-case language detection
2022-05-05 11:12:29 +02:00
Adriaan de Groot
4713f0be42
Merge branch 'calamares' into work-3.3
2022-05-04 11:59:46 +02:00
Adriaan de Groot
8407d39109
[welcome] Remove superfluous moc include (automoc handles this)
2022-05-04 11:39:58 +02:00
Adriaan de Groot
1f7b2a3d2d
[libcalamares] Remove CommandList destructor
...
The destructor was just the default one, but declaring it
blocks the default copy constructor.
2022-05-04 11:38:42 +02:00
Adriaan de Groot
a7cf1b18ce
[webview] reduce #defines
2022-05-04 11:31:25 +02:00
Adriaan de Groot
f26ff07046
[webview] Fix build
...
Some QPainter enum values were deprecated in 5.14, and since we
require 5.15 now, we hit some old code paths with now-deprecated
values; this only shows up when actually enforcing deprecations.
2022-05-04 11:25:05 +02:00
Adriaan de Groot
8aa8597ab0
[welcome] Start up in more-specific system language
...
Because of the way Qt interprets the environment variable
LANG, using `sr@latin` or `sr@latn` or `ca@valencia` would
get you `sr` or `ca`, respectively, which isn't an exact
match. Now that Translation has special-handling for
those values of LANG, match with the ID first.
This allows starting Calamares in Serbian (Latin script)
or Catalan (Valencia) for locales that need it. (Qt doesn't
recognize ca@valencia as a variant, since that's a region-
based locale, not country- or script-based)
2022-05-04 10:49:57 +02:00
Adriaan de Groot
792c4914b0
[libcalamares] Compare translation IDs, extend find()
...
Allow naive comparison of translation IDs (e.g. "ca@valencia"
against other IDs) and make it easier to find one.
2022-05-04 10:35:43 +02:00
Adriaan de Groot
5307976179
[libcalamares] Special-case startup for some languages
2022-05-04 10:10:35 +02:00
Adriaan de Groot
1c3817ad65
[welcome] Fix displayed (user-visible) copyright years
2022-05-04 00:54:01 +02:00
Adriaan de Groot
a7d3630e42
[libcalamaresui] Improve naming, resolve TODO
2022-05-04 00:51:50 +02:00
Adriaan de Groot
992d2d3be0
[displaymanager] kdm is no longer relevant
2022-05-04 00:24:43 +02:00
Adriaan de Groot
ee1232b10a
Merge branch 'calamares' into work-3.3
2022-05-04 00:18:44 +02:00
Adriaan de Groot
1ef2fff03e
[displaymanager] For greetd, write the desktop file name
...
See #1937
2022-05-03 11:41:53 +02:00
demmm
ade0fc7e19
[usersq] add close button to all inline messages
2022-04-27 12:59:02 +02:00
demmm
b80fde365b
[localeq] Offline.qml, setting line height needed
2022-04-27 12:55:18 +02:00
demmm
01cec2e361
[keybaordq] setting line height needed
2022-04-27 12:52:42 +02:00
Adriaan de Groot
f302bd8854
Merge branch 'calamares' into work-3.3
2022-04-27 10:44:42 +02:00
Adriaan de Groot
5bff26e1e0
[partition] Display partition label and path if set
...
Setting labels (e.g. in manual partitioning) landed some time
ago, but the progress display still shows a raw device path.
Make it more expressive.
FIXES #449
FIXES #540
2022-04-25 16:06:24 +02:00
Adriaan de Groot
eefe65ad0e
CMake: chase changed linking in libcalamares
2022-04-25 15:34:39 +02:00
Adriaan de Groot
d7459e2bfe
CMake: modernize optional parts of libcalamares
2022-04-25 15:23:27 +02:00
Adriaan de Groot
585d06494e
CMake: fix linking with modern Python and Boost
2022-04-25 14:47:18 +02:00
Adriaan de Groot
e15e57600e
Merge branch 'pr-1632' into work-3.3
...
- merge in recent *calamares* branch
FIXES #1632 (PR from Anubhav)
FIXES #1886
FIXES #1456
FIXES #517
2022-04-25 13:50:42 +02:00
Adriaan de Groot
d02afa20b8
[partition] Factor out creating-bootloader-panel
...
- this makes createBootloaderComboBox obsolete, since that was
an implementation detail for creating the panel.
- add the panel also when doing an alongside install.
- credits to Anubhav, whose PR started this code.
2022-04-25 12:17:10 +02:00
Adriaan de Groot
d70d1ebfcd
[partition] Always offer a 'no bootloader' item
...
- this branch is importing parts of a PR from Anubhav, so add
relevant SPDX tag as well.
2022-04-25 12:17:10 +02:00
Adriaan de Groot
eb5be9cd34
[bootloader] Allow skipping an EFI bootloader, too
...
- while here, remove C-style if()
2022-04-25 11:11:40 +02:00
Adriaan de Groot
287e89e760
Merge pull request #1932 from vlinkz/packagesq_label
...
[packagechooserq]: allow changing step name
2022-04-23 21:19:24 +02:00
Victor Fuentes
1aee8401db
[packagechooserq]: allow changing step name
2022-04-23 13:51:02 -04:00
Adriaan de Groot
70911b9275
[luksbootkeyfile] Flesh out the tests some more
2022-04-23 14:51:15 +02:00
Adriaan de Groot
4613386863
[luksbootkeyfile] fix test for empty mount point
2022-04-23 14:33:25 +02:00
Adriaan de Groot
4466e360e1
[luksbootkeyfile] Start adding tests
2022-04-23 14:29:10 +02:00
Adriaan de Groot
1752dd573b
[luksbootkeyfile] Modernize and refactor C++ finding-a-partition
2022-04-23 14:07:00 +02:00
Adriaan de Groot
19af46faea
[luksbootkeyfile] Apply coding style
2022-04-23 13:35:06 +02:00
Adriaan de Groot
9374daca64
Merge pull request #1931 from abalfoort/unencrypted-boot
...
Support unencrypted `/boot`
2022-04-23 13:29:14 +02:00
abalfoort
fae515c3a2
Improve todo comment
2022-04-23 13:21:27 +02:00
abalfoort
5d1b024237
Implement comments
...
- Unencrypted /boot check moved to generate_crypttab_line_info.
- has_luks in class FstabGenerator changed to luks_mapper_name.
2022-04-23 12:44:39 +02:00
Adriaan de Groot
a3bd0d8091
Docs: update GS key overviews
2022-04-22 12:46:19 +02:00
Adriaan de Groot
03f755d168
Merge branch 'calamares' into work-3.3
2022-04-22 11:17:59 +02:00
abalfoort
dcbb83ebe5
Replace tabs with 4 spaces
2022-04-21 17:13:50 +02:00
Adriaan de Groot
807dee54fd
[locale]: fix display of timezone for Dhaka
...
FIXES #1929
2022-04-21 17:12:02 +02:00
abalfoort
73d09977fc
Support unencrypted boot partition
2022-04-21 16:39:07 +02:00
Adriaan de Groot
47016765b3
[welcome] Fill backgrounds of failed requirements
2022-04-20 17:04:24 +02:00
Adriaan de Groot
217e4ab4f7
[welcome] Start improving the tooltips for missing requirements
2022-04-20 16:36:18 +02:00
Adriaan de Groot
b129cb0786
[libcalamares] Match roles from model to Qt standard roles
2022-04-20 16:25:28 +02:00
Adriaan de Groot
e102e2630e
[welcome] Rip out the "details" dialog for requirements
...
- The dialog gave very little extra information
- The text descriptions from the dialog are already available
as tooltips in the existing list view.
2022-04-20 16:19:34 +02:00
Adriaan de Groot
7650795f48
[welcome] Give the result-display somre more space
2022-04-20 16:16:20 +02:00
Adriaan de Groot
e5036da084
[welcome] Draw an icon for requirement-status
2022-04-20 16:03:42 +02:00
Adriaan de Groot
07f4ec529b
[libcalamares] Clean up requirements model API
...
- don't need friends
- made modify-the-model API public where it makes sense
- improve naming
2022-04-20 15:39:53 +02:00
Adriaan de Groot
0b2af86ec9
[welcome] Remove compensating-for-model-reset code
...
The model was emptied-and-refilled when re-checked, which
meant we needed to have some special handling when messages
changed to avoid re-creating widgets. Since we use a model
view now, we don't need the extra machinery.
2022-04-20 15:15:06 +02:00
Adriaan de Groot
8b917ace4d
[welcome] Replace widgets in dialog with model+listview
...
While here, remove unused vars and functions, tidy code.
2022-04-20 15:09:54 +02:00
Adriaan de Groot
ab1c78ca23
[welcome] Allow delegate to pick the text role to display
2022-04-20 13:29:19 +02:00
Adriaan de Groot
3679bb45f0
[welcome] Give the countdown a tooltip
2022-04-20 13:16:10 +02:00
Adriaan de Groot
15b4660d3e
[welcome] Rip out rest of ResultWidget
...
- this breaks the dialog showing details, but we'll switch
that to the delegate as well.
2022-04-20 13:12:02 +02:00
Adriaan de Groot
e457d099d8
[welcome] Replace manual widgets-creation by a listview with model
2022-04-20 12:00:21 +02:00
Adriaan de Groot
7686b89cd6
[welcome] Very basic model delegate for results / requirements
2022-04-20 12:00:21 +02:00
Adriaan de Groot
e757639669
[calamares] A progresstree isn't a tree
2022-04-20 12:00:21 +02:00
Adriaan de Groot
7b22546b14
[calamares] Don't need a method for painting, reduce API
2022-04-20 12:00:21 +02:00
Adriaan de Groot
7db14cb5cf
[libcalamaresui] Fix build for ::ceil
2022-04-20 12:00:21 +02:00
Adriaan de Groot
33b4fd3a20
[localecfg] It's ok to have a missing /etc/locale.gen for reading
2022-04-19 08:25:34 +02:00
Adriaan de Groot
87ff7ae0da
[libcalamaresui] Use Qt max, min, bound
2022-04-16 12:51:11 +02:00
Adriaan de Groot
58306de28a
[libcalamaresui] Private static methods can be hidden
2022-04-16 12:48:12 +02:00
Adriaan de Groot
56c27c4255
[libcalamaresui] Warnings--
2022-04-16 12:45:58 +02:00
Adriaan de Groot
18fef8dfe5
[libcalamaresui] Apply coding style
2022-04-16 12:39:21 +02:00
Adriaan de Groot
7e5df42fc0
Merge branch 'issue-1924' into work-3.3
...
This is a rather clunky implementation of re-check requirements.
"Clunky" because the UI parts are re-created each time, rather
than fishing from a model of checked (or unchecked) requirements.
The Widgets parts should be updated to use a full model, rather
than the recreate-list-of-Widgets implementation they have now.
Unrelated changes pull in a bunch of improvements to the
waiting spinner widget.
2022-04-16 12:34:40 +02:00
Adriaan de Groot
e11a0ee448
[libcalamaresui] Use delegating-constructor, drop initialize()
2022-04-16 12:25:28 +02:00
Adriaan de Groot
18f8633dd9
[libcalamaresui] Also modern-style initialize center and disable flags
...
- All constructors explicitly initialize these, so there's no
real change here.
2022-04-16 12:20:02 +02:00
Adriaan de Groot
497422e72c
[libcalamaresui] Don't disable parent while waiting
2022-04-16 12:18:49 +02:00
Adriaan de Groot
78a8993f38
[libcalamaresui] Move to more modern-style initializations
2022-04-16 12:11:52 +02:00
Adriaan de Groot
1f7dd2fcd5
[libcalamaresui] Convenience API
2022-04-16 12:02:56 +02:00
Adriaan de Groot
2ccd59e90b
[libcalamaresui] Move waitingspinnerwidget.* into calamaresui
...
Although this is 3rd-party code, it now diverges -- by merging the
stale PR from upstream, and from adding features of our own --
enough that we should not pretend that it is the original 3rdparty
code.
Chase a couple of include paths that called this from 3rdparty/
2022-04-16 11:59:31 +02:00
Adriaan de Groot
3bd610a838
[libcalamaresui] Port Countdown to spinner widget alone
2022-04-16 11:53:03 +02:00
Adriaan de Groot
5060a66d4e
[locale] Remove unused include
2022-04-16 11:29:49 +02:00
Adriaan de Groot
3c5ac535f1
[libcalamaresui] The waiting spinner now supports text, no need for extra label
2022-04-16 11:28:10 +02:00
Adriaan de Groot
82d721f455
[libcalamaresui] Display countdown
2022-04-16 00:05:01 +02:00
Adriaan de Groot
e351b1dafa
[libcalamaresui] Drop the countdown label
2022-04-15 12:50:18 +02:00
Adriaan de Groot
075185547a
[welcome] Display a countdown while (re)checking requirements
2022-04-15 12:47:12 +02:00
Adriaan de Groot
514b728449
[libcalamaresui] Tweak widget display for countdown
2022-04-15 12:41:29 +02:00
Adriaan de Groot
9a3d9feb30
[libcalamaresui] Add a countdown widget for limited waiting.
2022-04-15 12:13:16 +02:00
Adriaan de Groot
fcb893cd12
[welcome] Avoid growing more spacers
...
Insert spacers only once; avoid crashing when all the requirements
are satisfied immediately.
2022-04-14 22:06:36 +02:00
Adriaan de Groot
e79f29dc0e
[welcome] Update the explanation only when all the results are in.
2022-04-14 21:51:43 +02:00
Adriaan de Groot
11d7870d68
[welcome] Factor out check for a filled requirements-model
2022-04-14 21:48:55 +02:00
Adriaan de Groot
fc653adcc0
[welcome] Don't duplicate result widgets
2022-04-13 18:15:21 +02:00
Adriaan de Groot
ee925492d4
[welcome] Don't duplicate widgets
2022-04-13 17:12:25 +02:00
Adriaan de Groot
6348309936
[libcalamaresui] If requirements are not satisfied, recheck in 5 seconds
2022-04-13 17:09:43 +02:00
Adriaan de Groot
a9e098b0b4
[libcalamares] Allow resetting the requirements model
...
- When a requirements checker starts, it can reset the model
to clear it of previous entries.
2022-04-13 17:08:17 +02:00
Adriaan de Groot
8f5c3fa302
[welcome] Improve messages a little for bogus-checks.
...
Follow the guidelines for checker-messages, even though these
should never be displayed to real users.
2022-04-13 16:51:21 +02:00
Adriaan de Groot
cbd4bd9bbe
[welcome] Factor out is-this-check-required
...
While here, make it possible for the "screen" (screen-size) check
to be mandatory; there's no reason it shouldn't follow the same
logic as all the others (although denying users an install because
they have a VGA monitor seems a bit weak).
2022-04-13 16:47:54 +02:00
Adriaan de Groot
f4117881cd
[welcome] Add some more development-only checks
2022-04-13 16:45:32 +02:00
Adriaan de Groot
b0837b1a98
Docs: reformat table of GS keys
...
- add fullname key
- make table a little easier-on-the-eyes in text mode
While here, merge some 3.3 updates; just don't talk about PythonQt
any more.
2022-04-13 14:40:00 +02:00
Adriaan de Groot
f6b65b3b93
[shellprocess] CommandLine now quotes properly in variable expansion
2022-04-13 14:16:57 +02:00
Adriaan de Groot
bbea67ecb4
[libcalamares] Add an expand() to command lines and lists
...
- While this is primarily convenient for testing (e.g. checking
that a command is expanded the way we expect), it simplifies
some of the code because it's now clear that run() uses an
expanded copy of the command-list to do the actual work.
2022-04-13 14:08:21 +02:00
Victor Fuentes
cc3ab110ee
[users] add fullname to global storage
2022-04-12 23:38:51 -04:00
Adriaan de Groot
d76dd2f8e0
[libcalamares] Use new expander in CommandList
...
- This switches @@ROOT@@ for ${ROOT} and uses standard macro-
expansion mechanisms for the commands; undefined variables
will be logged as well.
2022-04-12 16:06:42 +02:00
Adriaan de Groot
f923dedc3f
[libcalamares] Add a word-expander
...
This is a variant on KMacroExpander, which allows for
reporting of errors after expansion.
2022-04-12 15:28:07 +02:00
Adriaan de Groot
576f244d2d
*: Chase new namespace Calamares::String
2022-04-12 14:15:52 +02:00
Adriaan de Groot
d03a8acc9d
[libcalamares] Create namespace Calamares::String
...
This is a step towards getting rid of CalamaresUtils and
using more structured namespaces overall, e.g. Calamares::String
for things related to string-handling.
2022-04-12 14:14:02 +02:00
Adriaan de Groot
2c0d9396e2
[users] Link to CoreAddons for KMacroExpander in config
2022-04-12 14:10:12 +02:00
Adriaan de Groot
bb278c7ba9
[shellprocess] Migrate towards 'standard' variable substitutions
2022-04-12 13:13:01 +02:00
Adriaan de Groot
82b5ca8bfc
Merge branch 'calamares' into work-3.3
2022-04-12 12:44:39 +02:00
Adriaan de Groot
baf8ef2c33
[bootloader] Document Debian GRUB
2022-04-12 12:38:20 +02:00
Adriaan de Groot
30139107de
Merge pull request #1918 from vtriolet/fix-readtargetfile
...
[libcalamares] Fix file-reading from target system
2022-04-11 16:22:10 +02:00
Adriaan de Groot
9c58f49c49
Merge branch 'issue-1654' into calamares
...
FIXES #1654
2022-04-11 15:08:33 +02:00
Adriaan de Groot
3b02115f8e
[users] Expand test to demo other template-keys
2022-04-11 15:03:48 +02:00
Adriaan de Groot
dad12a0e02
[users] Simplify test, fewer magic numbers
2022-04-11 14:55:05 +02:00
Adriaan de Groot
c28ba5ffb2
[users] Fix up test to match new strings written to /etc/hosts
2022-04-11 14:51:52 +02:00
Adriaan de Groot
9ca6d3c715
[users] Document new template setting for hostname
2022-04-11 14:26:29 +02:00
Adriaan de Groot
b95eb55994
[users] Add a template for hostname suggestion
2022-04-11 14:12:05 +02:00
Adriaan de Groot
1a8fc1feec
[users] Settle on 'hostname' as a single word for camel-casing
2022-04-11 12:16:03 +02:00
Adriaan de Groot
92b1341730
[users] Document new hostname.location setting
...
- add to schema
- add to tests
- mention in CHANGES
2022-04-11 12:05:00 +02:00
Adriaan de Groot
3524d4a0d0
[users] Add "transient" for hostname-location
2022-04-11 11:47:47 +02:00
Adriaan de Groot
3b0aa69ad3
[users] Write 127.0.1.1 entry only if there is a hostname
2022-04-11 11:39:14 +02:00
Adriaan de Groot
9299bedd7e
[users] Hostname is empty if it will not be set
2022-04-11 11:37:56 +02:00
Adriaan de Groot
a12c6de2ef
[users] Don't set GS hostname if hostname.location is None
2022-04-11 11:29:23 +02:00
Adriaan de Groot
2f78a37426
[welcome] Use cDebug() for logging
2022-04-11 11:19:38 +02:00
Adriaan de Groot
c5c546d290
[users] Warnings-- about unreachable code
2022-04-11 11:13:45 +02:00
Adriaan de Groot
854c711ac6
[users] Untangle setting-hostname from writing-/etc/hosts
...
Exactly one kind of setting-hostname is done, and that's
entirely independent of writing /etc/hosts. Don't make it
a set of flags, use an enum and a bool.
2022-04-11 11:10:40 +02:00
Adriaan de Groot
6a6aa8867b
[users] hostname.X takes precedence over legacy settings
2022-04-11 10:49:16 +02:00
Adriaan de Groot
b653b13002
[users] Hide hostname box when set to None
...
If the hostname will not be written, hide the input box.
While here, improve some naming in the designer file.
2022-04-11 10:42:00 +02:00
Adriaan de Groot
99bf5497ca
[users] Document change to config, document TODO:3.3
2022-04-11 10:14:32 +02:00
vt
73462d9214
[libcalamares] Fix file-reading from target system
...
readTargetFile was not fully reading files because of an incorrect
EOF check. This could cause /etc/openswap.conf files to be
truncated and hibernation to fail on installed systems.
2022-04-10 19:36:38 -04:00
Adriaan de Groot
8a8ac4fe2b
[users]: update config schema
2022-04-08 16:35:47 +02:00
Adriaan de Groot
4494a4b35a
[users] Expand tests with some legacy-settings
2022-04-08 11:30:57 +02:00
Adriaan de Groot
04f38ea661
[users] Put hostname settings in a *hostname* key
...
Move settings into a structured setting for *hostname*, with suitable
sub-keys. Legacy settings remain supported, produce a warning.
2022-04-08 11:30:57 +02:00
Adriaan de Groot
9e4b2d14cb
[libcalamares] Add a path parameter when creating descriptors
...
This allows us to print the path of a descriptor file in
error messages, which in turn makes it easier to find
problems with the descriptor files.
2022-03-28 12:29:47 +02:00
Adriaan de Groot
ec3282e15d
[libcalamares] Allow checking a Once object for repeat messages
2022-03-28 12:28:07 +02:00
Adriaan de Groot
f64938cb3f
[partition] Remove unnecessary methods
...
- _find and _each Doesn't need to be part of the class API
- Rename to *Transform() because that's more in-line with what it
does, applying an operation to the tree.
2022-03-22 18:47:27 +01:00
Adriaan de Groot
9b0ef5fce5
[partition] Use unsigned sizes
...
Reduce warnings by using unsigned consistently; this fights
the KPMCore API (which uses signed sizes for, e.g. sectorSize)
a little, but states more clearly that a disk cannot have a
negative size.
2022-03-22 15:23:24 +01:00
Adriaan de Groot
8ce92d450c
[partition] Warnings-- for int / double / size_t confusions
2022-03-22 15:23:24 +01:00
Adriaan de Groot
982f9c8458
[partition] Hide implementation function
2022-03-22 15:23:24 +01:00
Adriaan de Groot
f888cb87d1
[libcalamares] Start deprecating signed sizes
2022-03-22 15:23:24 +01:00
Adriaan de Groot
97031ea3e6
[libcalamares] The amount of memory in the system cannot be negative
2022-03-22 15:23:24 +01:00
Adriaan de Groot
a303efb174
[users] Warnings--
...
Remove unreachable code.
2022-03-22 13:12:23 +01:00
Adriaan de Groot
029bb3efdd
[calamares] Warnings--
...
The widget name is used (by moc) to inform the name of the
member variable storing the widget; having a :: in the name
yields a member variable with __ in it. Two _ is reserverd
to the implementation.
2022-03-22 13:08:07 +01:00
Adriaan de Groot
99b19b9539
[libcalamares] Always log to file, sometimes to terminal
2022-03-22 12:54:54 +01:00
Adriaan de Groot
aedb55ea36
[partition] Require modern KPMCore
2022-03-21 23:44:20 +01:00
Adriaan de Groot
49c56add7d
Merge branch 'calamares' into work-3.3
2022-03-21 23:21:54 +01:00
Adriaan de Groot
db3160145e
Merge remote-tracking branch 'origin/issue-1904' into calamares
...
This is mostly a confirmation that the subsequent changes
to #1905 were correct; the "name" key set in a partition
configuration is applied to the partition.
FIXES #1904
2022-03-21 15:09:50 +01:00
Adriaan de Groot
6f28120401
[partition] Fix typo in example configuration
2022-03-21 14:16:54 +01:00
Adriaan de Groot
1ee82e390b
[users] Adjust test to expect root to succeed
2022-03-21 14:15:15 +01:00
Adriaan de Groot
88d392f612
[users] Explain why the second setting-hostname test succeeds.
2022-03-21 14:12:18 +01:00
Adriaan de Groot
9b651b4f00
[users] Don't mangle the hostname with a test
2022-03-21 14:08:17 +01:00
Adriaan de Groot
f4a10a313c
[partition] Address default-labeling issues
2022-03-18 14:35:35 +01:00
Adriaan de Groot
7d89643146
[partition] More const in getters
2022-03-18 14:30:31 +01:00
Adriaan de Groot
fa28999561
Merge pull request #1905 from santoshmahto7/santo/avoid-root-naming
...
Avoid setting rootfs partition name to "root" by default.
2022-03-18 13:51:33 +01:00
Decator
b2aa5d8dea
Added spaces and line-breaks to fix formatting.
...
Fixes a formatting issue by adding some spaces and a line-break. Increases readability
2022-03-15 10:43:10 -04:00
Adriaan de Groot
b44091b4e3
SPDX: tag forgotten files
2022-03-15 14:59:05 +01:00
Adriaan de Groot
05468016a1
Merge branch 'work/adridg/improve-log-window' into calamares
2022-03-15 14:45:34 +01:00
Adriaan de Groot
f0d4788e6d
[libcalamaresui] SPDX-tagging for Bob
2022-03-15 14:42:27 +01:00
Adriaan de Groot
28bf8478c4
[libcalamaresui] Simplify log-window
...
Scrolling explicitly to the bottom isn't needed; leaving it
up to appendPlainText() has the following behavior:
- if the text is scrolled all the way down, follows the text
and scrolls further down (tailing)
- if it is not scrolled all the way down, keeps current position.
2022-03-15 14:39:59 +01:00
Adriaan de Groot
d998c9e24b
[libcalamaresui] Try to improve 'tailing' experience
2022-03-15 14:02:24 +01:00
Adriaan de Groot
26a613fff1
Merge branch 'issue-1894' into calamares
...
FIXES #1894
2022-03-15 13:30:40 +01:00
Adriaan de Groot
1a3f41ff33
[libcalamaresui] Allow more options for icon
2022-03-15 12:45:19 +01:00
Adriaan de Groot
d5e0fca490
[libcalamaresui] Allow starting and stopping the log-follower.
2022-03-15 12:45:19 +01:00
Adriaan de Groot
87c8c3e6ee
[libcalamaresui] Convenience for 'give-me-one-of-these-icons'
2022-03-15 12:44:19 +01:00
Adriaan de Groot
20c44ff99a
[partition] Obtain flag name from KPMCore
...
- makes the displayed flag name consistent between dialog and
pop-up and debug-messages.
2022-03-14 16:45:56 +01:00
Adriaan de Groot
1a6fb1c3d2
[libcalamaresui] Polish on LogWidget
...
- apply coding style
- reduce shadowed variables
- use Q_EMIT to mark signals
2022-03-14 16:14:40 +01:00
Adriaan de Groot
d89955f4b3
Merge pull request #1899 from bobvanderlinden/pr-log
...
allow viewing live log during execution
2022-03-14 14:19:43 +01:00
Adriaan de Groot
f60def5ecc
[partition] Don't reinitialize partition layout
...
Existing code reinitialized the layout, losing whatever
layout was set in the config. Refactor so that you can
access the partition-layout API, and change the default
FS through that -- which is the point of the code block
here in `doAutopartition()`, to look up the currently-
selected default FS.
Inspired by Santosh's work in #1903 , #1759 .
2022-03-14 11:27:00 +01:00
Santosh Mahto
4b905d5b52
Avoid setting rootfs partition name to "root" by default.
...
By default, calamares renames the label of root partition
to "root" overriding the name specified in partiton.conf
Signed-off-by: Santosh Mahto <santosh.mahto@collabora.com>
2022-03-14 12:01:06 +05:30
dalto
b5faf1be9b
[fstab] Fix empty UUID detection
2022-03-12 15:47:54 -06:00
Bob van der Linden
ea061ae239
destruct LogThread correctly
2022-03-10 20:33:22 +01:00
Bob van der Linden
9e522eddf8
replace text widget with log widget
2022-03-10 20:08:13 +01:00
Bob van der Linden
923379def6
use terminal icon for log toggle button
2022-03-10 20:07:16 +01:00
Bob van der Linden
53d3fcb2fd
introduce widget that shows logs
2022-03-10 20:06:37 +01:00
Bob van der Linden
a6afb6be7c
add log widget to ExecutionViewStep
2022-03-06 12:33:06 +01:00
Adriaan de Groot
569db7c018
[packages] Disable pacman progress-reporting, it is crashy
2022-03-04 14:28:07 +01:00
Huang Jia Wen
dca5d9b52b
[bootloader] Add loongarch64 support for bootloader
2022-03-04 10:57:38 +01:00
Adriaan de Groot
827d06df85
Merge pull request #1895 from loongarch64/la64/dev-work-3.3
...
[bootloader] Add loongarch64 support for bootloader
2022-03-03 22:14:30 +01:00
Huang Jia Wen
1793c627cd
[bootloader] Add loongarch64 support for bootloader
2022-03-03 14:11:32 +08:00
Adriaan de Groot
7aafeec2cb
[libcalamares] Fix entry-format, it was totally bogus
2022-03-01 16:14:45 +01:00
Adriaan de Groot
2f782f18c4
[libcalamares] Fix file reading
...
- atEnd() doesn't behave as expected
- drop the textstream, not needed
- rename variables to be more descriptive
2022-03-01 16:13:25 +01:00
Adriaan de Groot
53c4bbe4e0
[umount] Log briefly what is going to be unmounted
2022-03-01 16:03:28 +01:00
Adriaan de Groot
4fe55533d7
[partition] Log in more human-readable form
2022-03-01 14:37:52 +01:00
Adriaan de Groot
60630efa6a
[partition] Log DBus calls and switch to blocking calls to ensure they happen
2022-03-01 14:03:04 +01:00
Adriaan de Groot
7e51731167
[partititon] Slightly better debug-logging for automount
2022-03-01 13:52:50 +01:00
Adriaan de Groot
c5fec83f64
[libcalamares] Fix typo
2022-02-28 11:30:36 +01:00
Adriaan de Groot
f2a6736883
[libcalamares] More chatty when DBus fails
2022-02-28 11:29:45 +01:00
Adriaan de Groot
5b40f17b9c
[libcalamares] Prep-work for supporting non-Solid automounting
2022-02-28 11:26:57 +01:00
Calamares CI
05991c9ee9
i18n: [dummypythonqt] Automatic merge of Transifex translations
2022-02-25 14:11:58 +01:00
Adriaan de Groot
c3224e60d6
[users] Add a switch to write different styles of sudo file
2022-02-21 15:49:10 +01:00
Adriaan de Groot
c1f1934c27
Merge branch 'issue-1883' into calamares
...
FIXES #1883
2022-02-21 15:07:58 +01:00
Adriaan de Groot
23f501c071
[fstab] Recognize mmc and nvme disks correctly
...
- basename() returns the last path component, so never includes
the leading '/dev/'
- the check for mmc and nvme looked for device names starting
with '/dev/mmc' .. but '/dev/' has just been stripped away
by the call to basename, so this never matched
- stripped the trailing digits rather than trailing 'p[0-9]',
so 'nvme0n1p2' became 'nvme0n1p' which isn't a useful
device name.
FIXES #1883
2022-02-21 15:03:51 +01:00
Adriaan de Groot
92f4ab30ea
[partition] Add a note and an icon about unusually-configured partition module
2022-02-21 13:00:40 +01:00
Adriaan de Groot
682ae24b7d
[partition] Introduce skipping-partitioning-jobs
...
Don't do the actual KPM work, but pretend that they were done.
This can be useful -- independently of the existing unsafe-
options and failing partitioning entirely -- for testing
partition layouts in modules following the *partition* one.
2022-02-21 12:39:56 +01:00
Adriaan de Groot
7129a2239c
[partition] Tidy up description in prettyStatus
...
- the length parameter to diskDescription() is worse than
useless, because it doesn't say anything about what will
be done if there's more than one disk.
2022-02-21 12:30:34 +01:00
Adriaan de Groot
f04f0a7e1d
[partition] Remove unused text
2022-02-21 12:13:11 +01:00
Adriaan de Groot
99d11f754f
[partition] Tighten up determining job labels for description
2022-02-21 12:12:20 +01:00
Adriaan de Groot
62888f7984
[partition] Rename setting to BAIL_OUT
...
- unsafe partitioning will bail out (and end the installation)
if BAIL_OUT is set (previously _LAME).
2022-02-21 11:56:41 +01:00
Adriaan de Groot
240c89c585
[luksbootkeyfile] Merge pull request #1888 from dalto8/trailingslash
...
Ensure that a trailing slash doesn't cause issues with an unencrypted /boot
2022-02-21 11:43:11 +01:00
Adriaan de Groot
b1742876fd
[zfs] Correct user-visible spelling of ZFS
...
In Camel-cased source code, Zfs, but for user-visible strings,
ZFS (or zfs, but needs to be consistent).
2022-02-17 15:51:15 +01:00
dalto
f34008b518
[LuksBootKeyFile] Remove trailing slashes when matching mountpoint
2022-02-16 16:21:52 -06:00
Adriaan de Groot
03291fb726
[partition] Don't set empty labels
2022-02-08 19:01:41 +01:00
Adriaan de Groot
0be88f1453
[partition] Use signed sizes
2022-02-08 16:42:31 +01:00
Adriaan de Groot
a59c45d869
[users] Rename macro to avoid reserved-to-the-implementation names
2022-02-08 16:35:50 +01:00
Adriaan de Groot
7f14aa6bf1
[libcalamares] Avoid warnings about KPMCore headers
2022-02-08 16:35:23 +01:00
Adriaan de Groot
c7cc599a19
[umount] Remove/mark unused parameters
2022-02-08 16:35:04 +01:00
Adriaan de Groot
cf097850de
CMake: apply gersemi styling
2022-02-08 16:18:47 +01:00
Adriaan de Groot
b167d8da03
[libcalamares,ui] Make KF5::CoreAddons explicit
...
- libcalamares doesn't need it anymore, because it ported away
from KPluginLoader,
- libcalamaresui does need it, because of KMacroExpander.
2022-02-08 16:13:40 +01:00
Adriaan de Groot
e507a23795
Modules: make use of KF5::CoreAddons explicit
2022-02-08 16:12:25 +01:00
Adriaan de Groot
5160fdc26a
[libcalamares] Port away from KPluginFactory
2022-02-08 15:50:17 +01:00
Adriaan de Groot
8f769006d6
Merge branch 'calamares' into work-3.3
2022-02-08 13:28:20 +01:00
Adriaan de Groot
9f6f82405b
[libcalamaresui] Avoid crash if modules-list is empty
...
If there are no modules at all before an exec: section is
reached (e.g. right now due to a bug in module-loading)
then the last() call would crash. Instead, use a nullptr
for the last-module-loaded.
While here, apply code-formatting.
2022-02-07 19:05:55 +01:00
Adriaan de Groot
932ab17c9a
[libcalamares] Avoid parameter name 'stdin'
2022-02-07 12:54:16 +01:00
Adriaan de Groot
ebdcb15703
[libcalamares] Don't use reserved identifiers
2022-02-07 12:51:22 +01:00
Adriaan de Groot
660b198da0
[libcalamares] Avoid more moc warnings with recent Clang
2022-02-07 12:51:06 +01:00
Adriaan de Groot
fa7394723c
[users] Don't mess up cursor position when typing hostname
...
If the hostname changes while the field has focus, that means
that the user is typing in the field, and we shouldn't mess
with the cursor position.
FIXES #1884
2022-02-07 11:51:48 +01:00
Adriaan de Groot
3ea25a901e
[libcalamares] Avoid compiler warnings when stdin is defined to something else
2022-02-07 11:32:22 +01:00
Adriaan de Groot
d5c6a70442
[libcalamares] Use signed sizes
2022-02-07 11:22:13 +01:00
Adriaan de Groot
0fff01e36e
[partition] Use signed sizes
...
Unfortunate effect of having ints in some parts of the API
is that signedness trickles down everywhere; either cast
all over, or stick to signed ints.
2022-02-07 11:21:53 +01:00
Adriaan de Groot
d98027ad2f
Merge pull request #1865 from dalto8/mount-mount
...
Changes to mount module for 3.3
2022-02-02 16:24:34 +01:00
Adriaan de Groot
2bf43ffbf2
[unpackfs] Fix test validation (and document what the test is for)
2022-02-02 16:19:51 +01:00
Adriaan de Groot
0c7f06137a
CMake: validate all the test-configurations as well
2022-02-02 15:57:49 +01:00
Adriaan de Groot
a352bd946e
[grubcfg] snake-case one configuration key
...
This makes all the keys in grubcfg consistently
snake-case (rather than one being a camel).
2022-02-02 15:02:58 +01:00
Adriaan de Groot
d1e4740e70
Merge branch 'calamares' into work-3.3
2022-02-02 14:41:58 +01:00
Adriaan de Groot
9127b76e5f
[bootloader] Fix typo's
2022-02-01 16:49:18 +01:00
Adriaan de Groot
cf913b87ff
[partition] Apply coding style
...
This applies the new(er) style to the whole module,
rather than just the files that recently changed.
2022-02-01 16:35:19 +01:00
Adriaan de Groot
7f90b99388
[partition Simplify mountpoint-input
...
- if nothing is selected (index -1, which now shows the placeholder), the text is empty
- if something has been entered, return it (e.g. if the user is typing)
- if something is selected, the text gets set to that anyway
2022-02-01 16:01:04 +01:00
Adriaan de Groot
f4720ae02c
[partition] <pre> formatting is block-oriented
2022-02-01 14:54:49 +01:00
Adriaan de Groot
45fff23499
[partition] Move message closer to input field
...
The warning about the mount point -- that it was in-use or
invalid -- had been separated from the drop-down by the
FSLabel field. Move it back, rename the variable for
clarity while we're at it.
2022-02-01 14:50:53 +01:00
Adriaan de Groot
82dcc1b57b
[partition] Refactor common validate-the-mount-point logic
2022-02-01 14:42:18 +01:00
Adriaan de Groot
d8be9a9443
[partition] Mount points should start with a /
2022-02-01 14:07:38 +01:00
Adriaan de Groot
fbcd1ffbbe
[partition] Make the "no mount point" a placeholder
2022-02-01 14:06:30 +01:00
Adriaan de Groot
d8c875f351
[partition] UI-tweak mount-point and fs-label boxes
...
- make the boxes expand, rather than stick to a minimum
size that doesn't align with other boxes in the dialog,
and which may be too small to contain the text they display.
2022-02-01 13:13:29 +01:00
Adriaan de Groot
6f738813a6
[fstab] GS configuration for a btrfs setup
2022-02-01 12:15:49 +01:00
Adriaan de Groot
4a30aae9bb
[calamares] Tighten logging in 'loadmodule' test-executable
2022-02-01 12:15:49 +01:00
Adriaan de Groot
e9899d0345
[packagechooser,netinstall] Apply coding style
2022-01-31 23:42:20 +01:00
Adriaan de Groot
ffeab32403
[libcalamares] Apply coding style
2022-01-31 23:41:37 +01:00
Adriaan de Groot
80300e412c
[libcalamares] When logging extra lines to warning or error, suppress label
...
Avoid logs like
23:29:57 [2]: void Config::setConfigurationMap(const QVariantMap&)
WARNING: Configuration for *initialSwapChoice* is not one of the *userSwapChoices*
WARNING: .. Choice "small" added.
where the label is duplicated.
2022-01-31 23:27:35 +01:00
Adriaan de Groot
51f67f6c3e
[partition] If initialSwapChoice can't be satisfied, add it
...
There is a mismatch between how the configuration interprets
*initialSwapChoice* when it is not a valid choice, and how
the UI interprets it. If you e.g. do not have a *userSwapChoices*
setting at all, whatever *initialSwapChoice* is set is interpreted
by the UI as "suspend".
Avoid that by putting the choice in the configuration and
warning the user (which ought to be a warning to the distro).
FIXES #1881
2022-01-31 23:15:04 +01:00
Adriaan de Groot
cf2899b1e6
[netinstall] Avoid negative row indexes
2022-01-31 12:59:03 +01:00
Adriaan de Groot
c0f4b80cbe
[netinstall] Tighten up comments and code
...
- comment wandered away from the function it applies to
- use overloaded name for recursive helpers
- document this new feature
2022-01-31 12:55:54 +01:00
Adriaan de Groot
19afa46978
[netinstall] Match comment to code (casing of the identifier)
2022-01-31 12:51:56 +01:00
Adriaan de Groot
6a2e80a0b7
Merge pull request #1879 from dalto8/pkgchooser-netinstall
...
Allow the packagechooser module to modify the netinstall module
2022-01-31 12:44:02 +01:00
Adriaan de Groot
5b994f85c9
[grubcfg] Keep kernel_params as 'quiet' by default
...
- mark some TODO
- tighten up the YAML schema a little bit
- when unset, use 'quiet' rather than empty, to preserve compatibility
with existing configuration files.
SEE #1882
2022-01-31 12:38:20 +01:00
Adriaan de Groot
37e189992e
Merge pull request #1882 from dalto8/grub-defaults
...
[grubcfg] Add configuration for default kernel_params
2022-01-31 12:12:06 +01:00
dalto
e597998021
[packagechooser,netinstall] Clean up duplication and pruning logic for netinstall-add
2022-01-27 19:31:34 -06:00
dalto
f65feedcce
[grubcfg] Add configuration for default kernel_params
2022-01-27 15:53:34 -06:00
dalto
6be1208488
Document global storage keys
2022-01-25 17:52:45 -06:00
dalto
63ed2e5fb8
[packagechooser,netinstall] Change globalstorage keys to camel case
2022-01-25 17:43:19 -06:00
dalto
22c9d888b4
[packagechooser,netinstall] Proper implementation of source field
2022-01-24 17:01:16 -06:00
dalto
1db217931b
[netinstall] Minor changes from code review
2022-01-24 15:39:14 -06:00
dalto
a657d7388c
[packagechooser] Remove obsolete functionality from netinstall-add
2022-01-23 14:47:14 -06:00
dalto
f4c2db7f21
[packagechooser,netinstall] Fix issues where going back and forth between pkgchooser and netinstall produced unexpected behavior
2022-01-23 13:58:10 -06:00
Adriaan de Groot
95122fdcf5
[partition] Warn if the system won't support encryption in a useful way
...
This is the infrastructure bit; if someone can come up with a way
of **meaningfully** detecting support, the detection function can
be given a better implementation.
FIXES #1725
2022-01-22 22:52:50 +01:00
dalto
2aa8c2f0e0
[packagechooser] Ensure multiple instances don't override the GS values
2022-01-19 16:48:56 -06:00
Adriaan de Groot
929496552e
[bootloader] Optionally generate unique suffix for bootloader
2022-01-18 15:09:44 +01:00
Adriaan de Groot
c9156d41b1
[bootloader] Extend tests and docs with a few more error cases
2022-01-18 14:31:13 +01:00
Adriaan de Groot
7a462f4522
[bootloader] Fix issues identified by tests
...
- expectation derp11 was wrong, there were only 10 calls to next()
- using whole name instead of the not-the-suffix-bit was wrong
- phrase generator wrong length
2022-01-18 13:32:24 +01:00
Adriaan de Groot
ed5c4c9c87
[bootloader] Add generators for various suffix-flavors
2022-01-18 13:32:24 +01:00
Adriaan de Groot
b4b7deac2d
[bootloader] Document intentions
...
It may be easiest to modify the efiBootloaderId, since that does not
normally show up in the UI. I cannot quickly come up with a way to
do the same kind of suffixing on the user-visible name.
SEE #1820
2022-01-18 13:32:24 +01:00
Adriaan de Groot
c587145bdd
[umount] Drop all mention of removed configuration keys
2022-01-18 13:25:58 +01:00
dalto
4d5ae96db6
[umount] Add support for umount to be an emergency module
2022-01-18 13:25:00 +01:00
Adriaan de Groot
6034feb69d
[umount] Complete C++ implementation
...
- as a design decision, the deprecated "save some files" functionality
has been dropped from this implementation.
2022-01-18 13:22:45 +01:00
Adriaan de Groot
afa5e75d76
[umount] Start C++ port
2022-01-18 13:22:42 +01:00
Adriaan de Groot
5e4866c439
[partition] Simplify ClearTempMounts
...
- use the shared function for reading mtab entries
2022-01-18 13:22:20 +01:00
Adriaan de Groot
0070dd2c01
[libcalamares] Add a convenience for reading mtab
...
- used by umount and cleartempmounts (in future)
2022-01-18 13:22:20 +01:00
Adriaan de Groot
546780d7a8
Merge branch 'issue-1864' into calamares
...
FIXES #1864
2022-01-18 12:39:46 +01:00
Adriaan de Groot
da2612d2d9
[locale] Update language even if there is a current location
...
- the first time we arrive at locale, there isn't a current location
and the setCurrentLocation(...) method ends up calling setLanguage(),
usually. The second time, this call is skipped (not called from
the overloaded setCurrentLocation() which is called from onActivate),
so the language didn't update.
- now call setLanguage() unless there has been one set explicitly.
2022-01-18 12:28:57 +01:00
dalto
4811c59e33
[packages] Make pacman output more verbose
2022-01-17 16:24:56 -06:00
Adriaan de Groot
11f3f938d8
Merge pull request #1875 from dalto8/pacman-logs
...
[packages] Ensure all pacman output is available in debug log
2022-01-17 15:20:55 +01:00
Adriaan de Groot
6101dd9079
[locale] Code style
2022-01-17 14:51:42 +01:00
tjpark88
79a91b486a
[locale] Update language always
...
onActivate of locale updates the language only when currentLocation changed
or when onActivate of locale is called for the first time.
However, It is irrelevant solution since the language is set by the welcome.
So language should be updated always.
The language is used by keyboard module to guessing a layout of keyboard.
Once you face the locale, you can't change language in the welcome
if you don't change the timezone.
2022-01-17 14:51:42 +01:00
Adriaan de Groot
2aaaabe152
[partition] Set bigtime on XFS filesystems
...
FIXES #1874
2022-01-17 14:50:43 +01:00
Adriaan de Groot
a93126a6d0
[libcalamares] More meaningful name for JobResult success
2022-01-17 14:19:28 +01:00
dalto
112d0b2e90
[packages] Ensure all pacman output is available in debug log
2022-01-17 07:07:09 -06:00
Adriaan de Groot
e6813949af
[libcalamares] Hook up Python's error() to error, rather than warning
2022-01-17 13:47:47 +01:00
Adriaan de Groot
4be932ff9d
[umount] Now mark deprecated use as an error
2022-01-17 13:42:36 +01:00
dalto
b4ac6b73c8
[packagechooser,netinstall] Add documentation for packagechooser/netinstall integration
2022-01-15 11:13:17 -06:00
dalto
2eda55d3af
[packagechooser,netinstall] Add support for packagechooser to drive netinstall
2022-01-15 09:41:23 -06:00
Adriaan de Groot
a8f6596d38
Merge branch 'issue-1870' into calamares
...
- Improve the error messages in general
- Warn specifically if there isn't an *unpack* key
FIXES #1870
2022-01-12 14:39:54 +01:00
Adriaan de Groot
b227419f01
Merge pull request #1871 from dalto8/zfsfix-initcpiocfg
...
[initcpiocfg] Only add zfs hook if zfs is enabled
2022-01-12 11:31:53 +01:00
Adriaan de Groot
da03e12b7b
Merge pull request #1869 from dalto8/initramfs-fix
...
[initramfs] Fix condition when call to uname fails
2022-01-12 11:31:13 +01:00
Adriaan de Groot
624bb13736
Merge pull request #1868 from dalto8/fix-initcpio
...
initcpio module fixes
2022-01-12 11:19:36 +01:00
Adriaan de Groot
94bca61491
Docs: be a little more explicit about emergency mode
2022-01-12 11:16:42 +01:00
Adriaan de Groot
ee2fea74df
Merge pull request #1866 from dalto8/umount-emergency
...
[umount] Add support for umount to be an emergency module
2022-01-12 11:11:20 +01:00
dalto
1f9ae6cae6
[initcpiocfg] Only add zfshook if zfs is enabled
2022-01-07 14:49:26 -06:00
Adriaan de Groot
e14fa5de75
[unpackfs] Improve error messages
...
- the module is 'unpackfs', not 'unsquash'
- add a warning + specific error if there is no unpack key in the config
- the 'doing nothing' part isn't true: the module errors out instead
of doing nothing.
SEE #1870
2022-01-06 23:51:18 +01:00
dalto
626ab98949
[initramfs] Fix condition when call to uname fails
2022-01-02 08:41:47 -06:00
dalto
3be6946d93
[initcpio] Minor documentation updates
2022-01-01 12:14:42 -06:00
dalto
475c0d21a1
[initcpio] Spell mkinitcpio properly
2022-01-01 10:48:48 -06:00
dalto
c2ae5fad96
[initcpio] Make implementation match config description and remove broken uname option
2022-01-01 10:05:00 -06:00
dalto
4fe5f1c06f
[umount] Add support for umount to be an emergency module
2021-12-31 08:06:13 -06:00
dalto
5b483ab26f
[mount] Fix typo in mount.conf comments
2021-12-30 10:01:03 -06:00
dalto
3e1bc6cb22
[partition] Revert change to partition.conf
2021-12-30 09:36:54 -06:00
dalto
bb1d3022e0
[mount] Add additional documentation in mount.conf and main.py
2021-12-30 09:07:51 -06:00
dalto
a50ffa74e1
[mount,fstab] Fix bugs in moving mount options to the mount module
2021-12-30 09:07:51 -06:00
dalto
03f2e45605
[mount,fstab] Move mounting logic to the mount module
2021-12-30 09:07:51 -06:00
Adriaan de Groot
4e61f24960
[partition] Tidy up iso9660 detection
2021-12-25 18:27:13 +01:00
Adriaan de Groot
24a881ad75
Merge branch 'calamares' into work-3.3
2021-12-24 17:01:08 +01:00
demmm
7cfa654a68
[luksopenswaphookcfg] set plugin name according to module name
...
either this, or have all distros adjust settings.conf from luksopenswaphookcfg to luksopenswaphook
2021-12-22 22:17:13 +01:00
dalto
f0aba5db96
Update modules readme for Python emergency modules support
2021-12-19 15:29:42 -06:00
Adriaan de Groot
da72e815dc
[luksopenswaphookcfg] Fix build, missing include
2021-12-18 00:43:30 +01:00
Adriaan de Groot
7fc2859f23
[luksopenswaphookcfg] Port to C++
...
Merge pull request #1845 from calamares/issue-1659
FIXES #1659
FIXES #1644
2021-12-17 20:31:05 +01:00
Adriaan de Groot
587a18a6fa
[partition] Use runCommand() for future-proofing
2021-12-14 12:50:27 +01:00
Adriaan de Groot
f04394d014
[partition] Improve rendering of KPMCore errors
2021-12-13 20:02:52 +01:00
Adriaan de Groot
07354a26a9
[partition] Simplify debug calls to executables
...
- Use the Calamares support-functions for running lsblk and mount
(these might need to have privilege support if Cala is not
running as root, so this is future-proofing)
2021-12-13 20:02:52 +01:00
Adriaan de Groot
fdf0f208f0
[partition] Use lvalue-overload of execute() convenience
...
- These jobs may take a long time, and report progress; we need
the operation around to be able to connect the signals and slots
2021-12-13 20:02:52 +01:00
Adriaan de Groot
6680584724
[partition] Use convenience function execute()
...
This job needs the lvalue-overload of execute() because it needs to
call a method on the operation after execute() finishes successfully.
2021-12-13 20:02:52 +01:00
Adriaan de Groot
c5573a1997
[partition] Add non-const lvalue overload for execute()
2021-12-13 20:02:52 +01:00
Adriaan de Groot
b8ce21d572
[partition] Use convenience function for running operations
2021-12-13 20:02:52 +01:00
Adriaan de Groot
1356012fb4
[partition] With rvalue, code becomes even more compact
2021-12-13 20:02:52 +01:00
Adriaan de Groot
8bb2c5fc6b
[partition] Use convenience-method for running operation
2021-12-13 20:02:52 +01:00
Adriaan de Groot
dc7a1e43b7
[partition] Add helper for running a KPMCore operation
...
Most *partition* module jobs run an operation and turn that into
a JobResult -- ok if it succeeds, and with the report text otherwise.
Factor it out into a separate method that can be used as shorthand.
2021-12-13 20:02:52 +01:00
Adriaan de Groot
d3ed5663d0
[preservefiles] Add a schema-file
2021-12-13 16:56:07 +01:00
Adriaan de Groot
778c2855f4
[preservefiles] Introduce the notion of optionally-preserved files
2021-12-13 16:34:38 +01:00
Adriaan de Groot
445ed870cc
[preservefiles] Simplify code to help gcc warnings
2021-12-13 15:53:42 +01:00
Adriaan de Groot
3be52f8b37
[preservefiles] Expand tests with reading some existing config-items
2021-12-13 15:53:42 +01:00
Adriaan de Groot
a1b7ba0dc5
[preservefiles] Accessor for item-type (needed for tests)
2021-12-13 15:44:07 +01:00
Adriaan de Groot
8b5e49d980
[preservefiles] Add (stub) tests
2021-12-13 15:07:24 +01:00