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