Adriaan de Groot
c834a5066d
[umount] Make it much more clear that the logfiles-thing is going away.
2021-12-05 02:26:23 +01:00
Artem Grinev
6bf0da7230
[libcalamaresui] Initial rework of error dialog
2021-12-05 04:50:13 +04:00
Adriaan de Groot
1d96c5af46
[partition] Table type 'none' is a late addition.
2021-12-05 01:32:51 +01:00
dalto
6e8779cbce
[mount] Ensure path is available when creating nested btrfs subvolumes
2021-12-04 08:53:15 -06:00
Philip Müller
b7763f0427
Merge branch 'calamares' of https://github.com/calamares/calamares into development
2021-12-04 10:48:56 +01:00
Adriaan de Groot
ceb9ec4115
[fstab] Avoid KeyError when no subvol is set (from dalto8)
2021-12-04 02:15:33 +01:00
Adriaan de Groot
c22bbea528
[packages] Fix tests; YAML interpretation of 'yes' is not a bool
2021-12-04 02:04:24 +01:00
Adriaan de Groot
f26c81700d
[fstab] Suppress empty subvol= options in fstab
2021-12-02 22:08:17 +01:00
Adriaan de Groot
96ccf256b2
[mount] Add documentation to the config file
2021-12-02 22:02:14 +01:00
Adriaan de Groot
951ddfb72a
[mount] Experimental: accept 'no' for subvolumes
...
If there is no subvolume set, skip creation of that subvolume.
This allows root to be on a bare FS, without a tag or subvolume
name. To achieve this, use
subvolume: no
(no quotes there) in the YAML.
2021-12-01 23:06:02 +01:00
Adriaan de Groot
3845e05834
[locale] Correct timezone 5.0 / 5.5
...
Timezones 5.0 and 5.5 have considerable overlap; clear up most
of it. Since a pixel is about 55x55km on the ground, and the
translation of latitude and longitude is sketchy at best,
accuracy on this timezone map is not very good.
FIXES #1832
2021-11-29 22:04:31 +01:00
Adriaan de Groot
cdc3a9aad2
Merge pull request #1834 from dalto8/btrfs-swap
...
[fstab] Use different options for the btrfs swap subvolume
2021-11-29 15:16:17 +01:00
Adriaan de Groot
dfd13b4948
[packages] Remove bad config-lines
...
- rootMountPoint is a global thing, not a job-configuration item
2021-11-29 15:02:05 +01:00
Adriaan de Groot
28bd737062
[packages] Validate test-configs, too
...
- The config-files has a typo, so didn't validate, so
the loaded data was wrong, leading to test-failures.
See 61e0d538e9
.
2021-11-29 14:59:43 +01:00
Adriaan de Groot
61e0d538e9
[packages] Be more explicit in test failures, fix test data
2021-11-29 14:44:12 +01:00
Adriaan de Groot
474aaf7603
[packages] Fix loading of the subkeys for pacman
2021-11-29 14:23:15 +01:00
Adriaan de Groot
65488ca174
[libcalamares] More verbose when loading YAML for Python
2021-11-29 14:19:06 +01:00
Adriaan de Groot
1260d3fcb9
[packages] Expand tests for PM-specifics more
2021-11-29 13:21:50 +01:00
Adriaan de Groot
3e0c9ba056
[packages] Expand tests with PM-specific bits
2021-11-29 13:04:44 +01:00
Adriaan de Groot
fcbe8d3a3e
[libcalamares] API for YAML-loading from Python
2021-11-29 12:59:30 +01:00
Adriaan de Groot
7f643010b2
[libcalamares] Expose error() and warn() to Python
2021-11-29 12:26:07 +01:00
Adriaan de Groot
e9970474f5
[libcalamares] Allow Python to log an Error as well
2021-11-29 12:22:02 +01:00
Adriaan de Groot
8a1e5d35fa
[packages] Move pacman-options into their own key with subkeys
2021-11-29 11:59:09 +01:00
Adriaan de Groot
90459e434f
Merge pull request #1833 from dalto8/pacman
...
[packages] Additional pacman options
2021-11-29 11:39:01 +01:00
dalto
bd07db544f
[packages] Update doumentation for run_pacman() to be more complete
2021-11-28 15:56:16 -06:00
dalto
6b838bbf3d
[fstab] Add comment explaining logic
2021-11-26 13:00:30 -06:00
dalto
df3e049e1c
[fstab] Use different options for the btrfs swap subvolume
2021-11-26 12:36:15 -06:00
dalto
bb24ee1b3b
[packages] Fix location of call to reset_progress()
2021-11-26 10:56:32 -06:00
dalto
c80b4ff4c2
[packages] Make callback logic more sensible
2021-11-26 08:30:18 -06:00
dalto
e1e29780f2
[packages] Change callbacks
2021-11-25 15:55:22 -06:00
dalto
fa10bb8dd3
[packages] Add support for more pacman options
2021-11-25 11:52:41 -06:00
Philip Müller
fe2d8f3262
Merge branch 'calamares' of https://github.com/calamares/calamares into development
2021-11-24 11:53:45 +01:00
dalto
ee032b43fe
[zfs] Fix spelling error in readme
2021-11-19 14:24:36 -06:00
dalto
f37a775977
[zfs] Update module documentation
2021-11-19 10:46:23 -06:00
Adriaan de Groot
8ca6a7caef
[displaymanager] Fix tests (don't overwrite developer host configuration)
2021-11-16 17:30:28 +01:00
Adriaan de Groot
b0d951d7e5
[grubcfg] Avoid UnboundLocal, always set zfs_root_path to something
2021-11-16 17:22:43 +01:00
Adriaan de Groot
8652fc5f6d
[zfs] Fix schema
...
- typo (canmount vs canMount)
- the canMount property is nominally a string, but YAML is 'special'
and interprets 'on' and 'off' and 'yes' and 'no' and other strings
as booleans unless quoted.
2021-11-16 17:14:12 +01:00
Adriaan de Groot
b00177bd65
[zfs] SPDX tag the documentation
2021-11-19 12:55:23 +01:00
Adriaan de Groot
bcd8ebd614
[displaymanager] SPDX tags for tests
2021-11-19 12:53:42 +01:00
Adriaan de Groot
2f2271aad6
[mount][bootloader] Communicate btrfs root subvolume
...
Ensure root subvolume is set correctly for systemd-boot.
FIXES #1821
2021-11-19 11:20:09 +01:00
dalto
f5b882a075
[partition] Remove setState call to resolve compat issue with older kpmcore
2021-11-18 13:36:23 -06:00
dalto
b0f6530a58
[mount][bootloader] Ensure root subvolume is set correctly for systemd-boot
2021-11-18 10:04:49 -06:00
Adriaan de Groot
ece1e338e0
Merge pull request #1822 from dalto8/zfs-wip
...
[zfs] Support for installing to root-on-ZFS
2021-11-17 12:20:34 +01:00
dalto8
e814920bca
[zfs] Fix typo in README
2021-11-17 00:17:59 +00:00
dalto
c70e31a919
[zfs] Add README.md with some implementation notes
2021-11-16 18:16:32 -06:00
dalto
7e17106f34
[bootloader] Cleanup zfs support from testing
2021-11-16 17:48:49 -06:00
dalto
9603cbef14
[grubcfg] Add zfs entry to kernel_params
2021-11-16 17:48:02 -06:00
dalto
87cca4053f
[zfs][mount] Refactor zfs dataset mounting logic
2021-11-16 13:59:24 -06:00
dalto
b65321d80b
[bootloader] Add zfs support for grub-install
2021-11-16 13:48:34 -06:00
dalto
3ee388526d
[zfs] Cleanup code based on review feedback
2021-11-16 09:06:42 -06:00
Adriaan de Groot
efe84bc6c0
[partition] Don't log private names
...
- log device node (/dev/sdb) instead of its name
- don't log job's prettyName() because that's translated, and also
contains user-visible private names (introducing a non-translated,
nicely redacted version of prettyName() seems like too much effort
for something that can be reconstructed from bits earlier in the log)
2021-11-16 15:31:35 +01:00
Adriaan de Groot
5a4e2b73ab
[libcalamares][partition] Give RedactedName a convert-to-QString
...
- use hex-trailer
- while here, convert DebugRow to use a copy rather than a reference,
to avoid dangling references when applied to temporaries
- convert *partition* module to use the RedactedNames
2021-11-16 15:22:04 +01:00
Adriaan de Groot
152b3c333b
[libcalamares] Introduce redaction-of-names class for logging
...
- redacted names are stable inside of one run of Calamares
- random, private displays of a given string for a context
SEE #1593
2021-11-16 14:47:13 +01:00
Adriaan de Groot
7b3c4db8f0
[libcalamares] Redacted -> RedactedCommand
...
- For logging (shell) commands where a password might become visible, use
RedactedCommand. Rename it to allow for other kinds of redaction, too.
2021-11-16 14:21:46 +01:00
Adriaan de Groot
7cc84b89be
[partition] Clarify the meaning of the various UUIDs in debug-output
2021-11-16 14:15:00 +01:00
Adriaan de Groot
4db4e983e3
[partition] Don't format tables of attributes in source
2021-11-16 14:04:00 +01:00
Adriaan de Groot
3aac4dea67
[partition] Remove logging-of-a-pointer during device detection
2021-11-16 13:52:10 +01:00
dalto
0a7262148e
[umount] Convert zfs export call to use host_env_process_output
2021-11-15 19:03:20 -06:00
dalto
4778d9b2dd
[mount] zfs changes from review feedback
2021-11-15 18:41:35 -06:00
dalto
3a90382699
[partition] zfs changes from review feedback
2021-11-15 18:41:35 -06:00
dalto
3ebe695a23
[fstab] Exclude zfs partitions from fstab
2021-11-15 18:41:35 -06:00
dalto
ebae698a6e
[mount] Move zfs code into a seperate function to improve readability
2021-11-15 18:41:35 -06:00
dalto
18ad188ef6
[zfs] Ensure overlapping datasets don't get created and code cleanup
2021-11-15 18:41:35 -06:00
dalto
6e440bf9bb
[umount] Export zpools after unmounting
2021-11-15 18:41:35 -06:00
dalto
490ac8d086
[partition] Ensure format is selected for existing zfs partitions
2021-11-15 18:41:35 -06:00
dalto
c48c91a5bd
[partition] Add support for zfs encryption when erase disk is selected
2021-11-15 18:41:35 -06:00
dalto
ee99ee48f6
Add support for multiple zpools
2021-11-15 18:41:35 -06:00
dalto
a5b21b2500
[zfs] Fix typo and add missing continue
2021-11-15 18:41:34 -06:00
dalto
75c947c5a3
[mount] Fix zfs code and add support for encryption
2021-11-15 18:41:34 -06:00
dalto
1ccabf1b13
[zfs] Export zpool so it can later be mounted at the correct location
2021-11-15 18:41:34 -06:00
dalto
6da9bad272
[partition][zfs] Add support for zfs encryption
2021-11-15 18:41:34 -06:00
dalto
074941e2bd
[bootloader] Add initial support for zfs
2021-11-15 18:41:34 -06:00
dalto
5d71723aec
[mount] Improve error handling for zfs
2021-11-15 18:41:34 -06:00
dalto
de0bbbe90a
[mount] Add support for zfs datasets
2021-11-15 18:41:34 -06:00
dalto
7f05096611
[zfs] Add delay before creating the zpool
2021-11-15 18:41:34 -06:00
dalto
7635b76352
[zfs] Add datasets to global storage for other modules
2021-11-15 18:41:34 -06:00
dalto
b9559a9d82
[zfs] Update to Calamares coding standards
2021-11-15 18:41:34 -06:00
dalto
76892136cf
[initcpiocfg] Add support for zfs
2021-11-15 18:41:34 -06:00
dalto
11bf84bac7
[zfs] Initial commit for zfs module
2021-11-15 18:41:34 -06:00
dalto
24a376493b
[partition] Add support for manually creating a partition for zfs
2021-11-15 18:41:34 -06:00
dalto
ca3f0e2892
[partition] Add zfs to the filesystem list if the zfs modules is enabled
2021-11-15 18:41:34 -06:00
Adriaan de Groot
3dd02edc78
[libcalamares] Document how to interpret percents
...
- use 0..1 in floats for percentages (I suppose you could
call that a perunage, but that would be weird).
2021-11-15 23:16:58 +01:00
Adriaan de Groot
d5bef9efb5
Python: document which exception is thrown on process failure
2021-11-15 21:48:17 +01:00
Adriaan de Groot
5f7b221e11
[displaymanager] Fix greetd commands
...
- since default_desktop_environment isn't a string, need
to pick the string -- the command -- out of the object first.
2021-11-15 13:38:46 +01:00
Adriaan de Groot
16a029abd2
[displaymanager] Adjust tests to match real runtime
...
- the default_desktop_environment isn't a string, but an
object; it is unusual for it to be used in set_autologin
2021-11-15 13:37:23 +01:00
Adriaan de Groot
f3e85efd41
[displaymanager] Add tests that run parts of the DM code
...
- load and set autologin for greetd (this was used to shake out
code bugs in load/save)
- load and set autologin for sddm
2021-11-15 13:00:40 +01:00
Adriaan de Groot
ce6aec158a
[displaymanager] Fix config loading-and-saving
...
- toml.dump() takes a file-like object
- toml.loads() takes a whole string to parse, (e.g. the TOML data),
not a pathname, so change to toml.load() which takes a file-like
object.
2021-11-15 12:23:17 +01:00
Adriaan de Groot
54fd81a87e
[displaymanager] Handle case where config file doesn't exist or has no key
...
- If the config file doesn't exist, the dictionary is empty
- If it **does** exist, it might not have key 'default_session' in it
Either case should avoid a KeyError by using get() (or setdefault,
in this context). Subsequent use of os.path.exists() is strange,
since the value is a **group** (e.g. a dictionary) in the config
file. Just check if it exists, and then fill something in.
2021-11-15 12:21:27 +01:00
Adriaan de Groot
11424195ef
[displaymanager] Missing method call
...
- Add `()` to call the config_path() method, because we need a path
to pass to os.path.exists().
2021-11-15 12:20:54 +01:00
Adriaan de Groot
fad2f6ea88
[displaymanager] Add simple test
2021-11-15 11:52:24 +01:00
Adriaan de Groot
58cf9ffeeb
[displaymanager] Import toml only for the DMs that actually need it
2021-11-15 11:43:47 +01:00
Adriaan de Groot
85f36c77b1
[displaymanager] Import configparser only for the DMs that actually need it
2021-11-15 11:42:25 +01:00
Adriaan de Groot
138db1c817
Merge branch 'feat/greetd-support' of git://github.com/boredland/calamares into boredland-feat/greetd-support
2021-11-15 11:40:18 +01:00
dalto
daa5731acf
[fstab] Improve comment about space_cache
2021-11-12 09:29:04 -06:00
dalto
9ef520f862
Add comment describing the situation with space_cache on btrfs
2021-11-12 08:58:43 -06:00
dalto
0bef2a91a1
[fstab] Remove space_cache from btrfs mount options
2021-11-10 17:16:09 -06:00
Adriaan de Groot
4fb8993a38
[finishedq] Add sample QML for mobile usage
...
This has a countdown-timer that automatically restarts;
the rest of the settings follow the finishedq.conf values.
FIXES #1601
2021-11-09 23:08:40 +01:00
Adriaan de Groot
8639c9a79f
[partition] Fix up tests
2021-11-09 16:37:25 +01:00
Adriaan de Groot
cd0785164b
[partition] Fix compatibility with Qt 5.12
2021-11-09 15:57:20 +01:00
Philip Müller
fad0503696
Merge branch 'calamares' of https://github.com/calamares/calamares into development
2021-11-09 01:59:17 +01:00
Philip Müller
21641bd2a2
[partition] offer /boot also when other EFI partition was specified
...
- it still makes sense to offer /boot in EFI
- example: /boot ext4, /boot/efi vfat
- this partly reverts 60f8a7c5fb
2021-11-09 01:59:06 +01:00
Adriaan de Groot
ead641c344
[summary] Prefer a step's widget over text
...
- the partition module makes a nice descriptive widget,
which includes the text it **also** has for the summary;
(the text is intended for the QML summary).
- In general, if a module has a widget for the summary, assume
that that is the **whole** summary and use it instead of text.
This resolves duplicate summaries -- showing the text of the
partitioning-step, followed by its widget -- introduced in July.
2021-11-08 14:44:12 +01:00
Adriaan de Groot
2a86e86817
[packages] Make package-installation messages slightly less scary.
...
From a test with XeroLinux, at some point it says 'reinstalling linux...'
which is a message from pacman about the package called 'linux'.
2021-11-09 15:25:06 +01:00
Adriaan de Groot
e4b44b5f85
[packages] Look for other progress indicators
...
- the (n/m) lines are output of specific steps, not actual package-
installation. So look for "<action> <packagename> ..." lines instead.
This means we keep some state around, and need extra machinery to
report those lines rather than the generic progress reporting
that reports on groups.
2021-11-09 14:42:12 +01:00
Adriaan de Groot
4821f450f3
[packages] Report progress by scanning pacman output
...
- during install and remove, check for (n/m) output lines which
report progress of the pacman actions and turn those into progress
reports for the *packages* module.
2021-11-09 13:07:29 +01:00
Adriaan de Groot
575654941f
[partition] Move required partition table type to Config
...
- remove from GS
- remove duplication across Config and ChoicePage
- improve translations (presumably "msdos or gpt" is the most
complicated it will get)
FIXES #1735
2021-11-09 12:25:47 +01:00
Philip Müller
0486e48c4e
[partition] offer /boot also when other EFI partition was specified
...
- it still makes sense to offer /boot in EFI
- example: /boot ext4, /boot/efi vfat
- this partly reverts 60f8a7c5fb
2021-11-09 01:51:49 +01:00
Adriaan de Groot
6130a9c51f
[unpackfs] Re-jig process-return-value in Python
...
- make the installation work,
- special case because rsync can return error 23 (which throws, from
inside the Python API) which still means "it was ok".
2021-11-05 16:52:18 +01:00
Adriaan de Groot
c79bb3cd10
[unpacks] PARTIAL conversion to newer API with callback
2021-11-05 16:33:10 +01:00
Adriaan de Groot
b9691c339e
S also docs
2021-11-05 16:32:40 +01:00
Adriaan de Groot
5e6d292235
FIXUP
2021-11-05 16:31:47 +01:00
Adriaan de Groot
faf1d68d32
[libcalamares] Tidy up processing of process output
...
- force C locale on processes
- split trailing output if output per-line-processing is active
2021-11-05 16:26:45 +01:00
Adriaan de Groot
94039c19bb
[unpackfs] Use callback instead of building giant string in memory
...
SEE #1740
By processing each line in turn (and just counting is) rather
than collecting all of the lines of output from the tools,
we end up with lower memory usage.
2021-11-03 16:09:11 +01:00
Adriaan de Groot
e8209089c6
Merge branch 'issue-1740' into calamares
...
FIXES #1740
2021-11-03 15:49:03 +01:00
Adriaan de Groot
fe582fb94d
Docs: document the Python APIs for modules
2021-11-03 15:48:26 +01:00
Adriaan de Groot
74d65d8338
Docs: touch-ups and typos
2021-11-03 13:51:17 +01:00
Adriaan de Groot
2800128a8d
[libcalamares] Expand the output-processing API
...
- support host and target runs
- add stdin and timeout values
- allow automatic output to list
2021-11-03 13:45:15 +01:00
Adriaan de Groot
3120abbce8
[libcalamares] Introduce host_env_process_output, too
...
- run commands consistently, with optional output-processing,
in host or target;
- raises exception on error, like the check_* functions.
2021-11-03 12:23:39 +01:00
Adriaan de Groot
e5323ec487
[libcalamares] Expand Runner documentation
...
- document a bit more of the methods
- provide convenience method enableOutputProcessing() alongside
an explicit setter; adjust tests to the changed API.
- add an executable() information method.
2021-11-03 12:20:36 +01:00
Adriaan de Groot
f2142bc4b3
[libcalamares] Move Python callback to utils submodule
...
- don't need the job to do the callback
- allow callable objects from Python
- doesn't actually run the process yet
2021-11-03 11:53:44 +01:00
Adriaan de Groot
a0cb4b63a8
[partition] Fix build for old Qt
2021-11-03 11:14:22 +01:00
Adriaan de Groot
344948b5ab
Modules: clean up QProcess (part 1)
2021-11-02 23:46:26 +01:00
Adriaan de Groot
2088502e57
[libcalamares] Don't use QProcess directly outside of Runner
2021-11-02 23:46:26 +01:00
Adriaan de Groot
57c174c37f
[libcalamares] Clean up QProcess includes
2021-11-02 23:46:26 +01:00
Adriaan de Groot
5c82cb32ab
[libcalamares] Expand tests to show last-output-line
2021-11-02 23:20:22 +01:00
Adriaan de Groot
aa315c0696
[libcalamares] Handle last-output-line without newline
2021-11-02 22:58:41 +01:00
Adriaan de Groot
0a339a5402
[libcalamares] Test Runner output-processing
2021-11-02 22:55:41 +01:00
Adriaan de Groot
953b899f75
[libcalamares] Allow Runner instances to collect output
2021-11-02 22:50:13 +01:00
Adriaan de Groot
870009e815
[libcalamares] Replace runCommand internals by Runner
2021-11-02 22:27:33 +01:00
Adriaan de Groot
89824a9e0d
[libcalamares] Fix up Runner (as a replacement for current system code)
2021-11-02 22:27:33 +01:00
Adriaan de Groot
24ca64deac
[libcalamares] Chase moved redacted-logging
2021-11-02 22:27:33 +01:00
Adriaan de Groot
85debfc69b
[libcalamares] Add Redacted logging
...
- this was an internal class for logging commands, let's lift
it up to the Logger framework where it might be more generally
useful (or not .. everything needs special-casing for actual
redaction).
2021-11-02 22:27:33 +01:00
Adriaan de Groot
f0104af1c3
[libcalamares] Expand tests on Runner internals
2021-11-02 22:27:33 +01:00
Adriaan de Groot
e5fa58b890
[libcalamares] Add tests for relativeCangeDirectory()
2021-11-02 22:27:32 +01:00
Adriaan de Groot
0b943e801c
[libcalamares] Begin implementing Runner
...
This copies a bunch of code from the System methods for running,
and then #if 0's them to get it to compile. Add some basic
directory-management.
2021-11-02 22:27:32 +01:00
Adriaan de Groot
b9dac6eef8
[libcalamares] Small step in implementation
2021-11-02 22:27:32 +01:00
Adriaan de Groot
e0fdde06c9
[libcalamares] Python API for callbacks from processes
...
This is an experiment in Python API that will allow a callback
function in the Python module to be called for each output line.
It builds on the run-a-process extensions that are being built
simultaneously.
2021-11-02 22:27:32 +01:00
Adriaan de Groot
2de09d4001
[libcalamares] Start refactor of running-a-process support
...
The background idea is that, while CalamaresUtils::System::runCommand()
is a useful general API, it is
- still missing flexibility
- lacking a way to process output from the command "as it happens"
Waiting until the process ends, and then reading all stdout, is
inconvenient for processes that produce a **lot** of output,
and also makes it impossible to report progress. One module
in calamares-extensions has its own run-a-process implementation
for reading output, and this branch aims to introduce something
similar into Calamares core.
2021-11-02 22:27:32 +01:00
Adriaan de Groot
b5dba9108c
[partition] Check for LVs that will be formatted, don't close them
...
- when (manually) using an existing LV, it shouldn't be closed
prior to formatting, since that kills the volume and then the
path (/dev/myvg/mylv) no longer exists. Then creating the
filesysytem on that device path fails.
2021-11-02 15:33:34 +01:00
Adriaan de Groot
7b45793b60
[partition] Allow exceptions when closing /dev/mapper
...
- some names should not be closed, like "control"
- allow a list of names to be added which should not be closed
2021-11-02 15:26:25 +01:00
Adriaan de Groot
1410157356
[partition] Simplify and document ClearMounts
...
- note that the job indiscriminately closes all LUKS and LV
- don't hang on to lists we don't need
2021-11-02 11:55:13 +01:00
Adriaan de Groot
0253977778
[partition] Coding style
2021-11-02 11:50:51 +01:00
Adriaan de Groot
ca4a187d1a
[partition] Extract the get-PV-groups code to its own function
...
- get the list (once)
- move the lambda to a named function for readability
2021-11-02 11:18:14 +01:00
Adriaan de Groot
7fa02fd41c
[partition] Extract the get-LVM-volumes code to its own function
2021-11-02 11:10:09 +01:00
Adriaan de Groot
2a1ec84c87
[partition] Don't hang on to pointer longer than needed
2021-11-02 11:03:10 +01:00
Adriaan de Groot
04b119b051
[partition] Crypto device-list needn't be a member, either
2021-11-02 00:25:37 +01:00
Adriaan de Groot
f49389a408
[partition] Fix logic errors in stringification of MessageAndPath
2021-11-02 00:09:52 +01:00
Adriaan de Groot
c322eaa430
[partition] Fix translation issues
...
- Strings were being used as logical values, and then logged
(which should be in English) and also used in the UI (which
should be localized). Replace with a MessageAndPath class,
used only locally, that defers the translation until called-
upon explicitly.
- Replace some VG stuff with similar calls to apply().
2021-11-01 23:59:39 +01:00
Adriaan de Groot
e56158f5b4
[partition] Generate partition paths with /dev/
...
Returning partition full-paths instead of only the block-device-name
simplifies later code -- which would prepend /dev/ to the block-
device-name and umount that.
2021-11-01 20:54:48 +01:00
Adriaan de Groot
6c2b2b0daa
[partition] Factor out loops, document return values
...
- the tryX() functions weirdly return a string that is used for
debug-logging. Document that. The untranslated string is
later used for user-facing messages. Mark that as FIXME.
- factor out the loop-over-names-and-append to news, because that
makes the overall story of what is happening hard to read.
- all calls to tryCryptoClose() called tryUnmount() first, so
put that call inside tryCryptoClose(), so the interface is simpler.
2021-11-01 20:54:18 +01:00
Adriaan de Groot
0c84a87c67
[partition] Make internal methods static
2021-11-01 20:28:47 +01:00
Adriaan de Groot
105517fed7
[partition] Coding style
2021-11-01 20:24:47 +01:00
Adriaan de Groot
ac34cfadea
[partition] Factor out finding the swap-partitions
2021-11-01 20:23:49 +01:00
Adriaan de Groot
3e58639a68
[partition] Improve logging in ClearMountsJob
...
- mark internal bits as static
- explain what is being looked-for
SEE #1817
SEE #1564
2021-11-01 16:44:28 +01:00
Adriaan de Groot
218c1d9344
[fstab] Weaken the prescription against / in crypttab
...
FIXES #1811
2021-11-01 14:52:04 +01:00
Adriaan de Groot
0df288f647
[welcome] Improve logging of unsatisfied requirements
...
- improve descriptive-strings in logging ("set?" is not very
meaningful)
- log only the unsatisfied entries, since the preceding
log-message suggests that that is what is happening.
2021-11-01 14:24:50 +01:00
Philip Müller
3fba6cf57e
[merge] with upstream
2021-10-31 16:02:33 +01:00
Jonas Strassel
5701937883
fix(greetd): deal with no existing config
2021-10-29 00:02:16 +02:00
Philip Müller
e36df22323
[postcfg] we should also check for folders
2021-10-28 13:39:27 +02:00
Philip Müller
0fbdaa5756
Merge branch 'calamares' of https://github.com/calamares/calamares into development
2021-10-28 13:37:58 +02:00
Jonas Strassel
fbdb9e6779
feat(greetd): add more greeter fallbacks
2021-10-28 08:14:04 +02:00
Jonas Strassel
e5f5ef0d17
feat(greetd): add greetd to displaymanagers
2021-10-28 08:12:45 +02:00
Adriaan de Groot
c90b9786c6
[packagechooser] Also resize the introductory image
...
- resize the intro image
- when an invalid index is selected, *still* update the
images, so it shows the intro image (resized) at the
right time.
2021-10-26 17:05:31 +02:00
Adriaan de Groot
b9a243028b
[packagechooser] Make scaled screenshots nicer
...
- patch suggested by flyingcakes85
- patch tested by killajoe
FIXES #1807
2021-10-26 16:08:20 +02:00
Adriaan de Groot
748b16ba7f
[packagechooser] Look for screenshots in more places.
...
It is easier to put screenshots somewhere where
they can be searched-for, rather than requiring either
absolute paths (inconvenient to try out someone's
settings) or relative paths (because who knows where
Calamares will be run during testing).
2021-10-26 16:08:20 +02:00
Adriaan de Groot
be398d7edb
[packagechooser] Log loading of screenshots
...
- start of indirection in loading, so that we can do a little more
work searching for the screenshot.
2021-10-26 15:23:14 +02:00
Adriaan de Groot
d10a952065
[keyboard] Make debug output more readable
2021-10-26 15:19:02 +02:00
dalto
5f55784137
Add getList function to Variant
2021-10-23 14:02:47 -05:00
Adriaan de Groot
cd56bab622
[partition] Merge pull request #1808 from dalto8/zfs-delete-fix
...
Fix for zfs partition deletion
2021-10-30 14:44:39 +02:00
dalto
13a2d25b24
Add separate functions for zfs
2021-10-29 16:54:09 -05:00
Adriaan de Groot
e9083ecabb
[services-systemd] Add a schema file for the configuration
2021-10-29 16:41:03 +02:00
Adriaan de Groot
7aaefa42d1
Merge pull request #1815 from dalto8/timer
...
[services-systemd] Add support for timers
2021-10-29 14:29:50 +02:00
Adriaan de Groot
9e1b8622f2
[packagechooser] Replace smartClip() with just-do-it
...
QLabel allows scaling of the Pixmap by itself, and we have a
FixedAspectRatioLabel that scales a pixmap nicely. Use that.
(The new label type needed to be introduced to designer)
The screenshot should expand more agressively, so that it
does not get margins -- that just leave space around the
name and description -- when the window expands. Adjust some
of the stretching and layout in the UI file.
2021-10-29 13:15:07 +02:00
Adriaan de Groot
d3d4690a81
[libcalamares] Move const to a better spot
2021-10-29 11:25:13 +02:00
Adriaan de Groot
ebf8d63669
Merge pull request #1809 from dalto8/ismoduleenabled
...
[libcalamares] Add isModuleEnabled function
2021-10-29 11:20:07 +02:00
dalto
f7d8384bff
Use key().module() instead of key().first
2021-10-28 14:49:44 -05:00
dalto
be513813e6
Clean-up from initial review
2021-10-28 14:46:38 -05:00
dalto
24fbd3ab90
More doc changes for services-systemd module
2021-10-28 07:40:05 -05:00
dalto
96f3de12b3
Update documentation for services-systemd module
2021-10-28 07:33:32 -05:00
dalto
a1699e28a2
Add support for timers
2021-10-26 16:05:49 -05:00
dalto
e22efab1b3
Add isModuleEnabled function
2021-10-23 13:57:24 -05:00
dalto
be47b5e59c
Fix for zfs partition deletion
2021-10-23 13:40:47 -05:00
Philip Müller
682d3b087f
[postcfg] deal with symlinks
2021-10-17 17:10:56 +02:00
Philip Müller
33643b5c6b
Merge branch 'calamares' of https://github.com/calamares/calamares into development
2021-10-08 09:54:21 +02:00
Adriaan de Groot
6b38985a5f
[summary] Start using the model
2021-10-04 14:52:23 +02:00
Adriaan de Groot
3bc90e6c06
[summary] Factor out widget creation
2021-10-04 14:29:54 +02:00
Adriaan de Groot
d951a9d317
[summary] Improve role names in SummaryModel
2021-10-04 12:59:50 +02:00
Adriaan de Groot
4731d79a4f
[summary] Reduce code-duplication
...
The summary page can rely on the Config object to create
lists of relevant steps; this code was declared but not
defined / implemented for Config (but also not called, so
it was ok). This is basically shuffling bits around in
preparation for using the model directly, rather than
re-implementing the widget-creation code.
While here, split off the page-resizing into a free function
so that the code reads nicer.
2021-10-04 12:48:16 +02:00
Adriaan de Groot
763f29e2b8
[summary] Improve naming, shuffle parameters
...
- the page doesn't need to remember what step it belongs to,
if the step tells it when creating widgets.
- detach naming from the viewstep API that calls it.
2021-10-04 12:23:17 +02:00
Adriaan de Groot
87af923638
[summary] Make widgets-use explicit
2021-10-04 12:15:15 +02:00
Adriaan de Groot
2fdb6fdf37
[summary] Clear model on leave
2021-10-04 12:10:17 +02:00
Adriaan de Groot
8f4ba8c21f
[summary] Tighten up scope of declarations, simplify
2021-10-04 11:27:10 +02:00
Adriaan de Groot
329f21093b
[libcalamaresui] More careful in unmarginLayout
2021-10-04 00:27:03 +02:00
Adriaan de Groot
d556dae415
[partition] Document how the configurable EFI size is coordinated
2021-09-28 21:31:12 +02:00
Adriaan de Groot
05f287ebbb
[partition] Use the configured EFI size
...
The `partition.conf` file contains an EFI-size. The default is 300MiB,
but distributions might like to use a bigger (or smaller) value.
Apply the configuration consistently everywhere where we need
"the size of the EFI partition". Extend the internal method
to look at the configured size.
2021-09-28 18:23:19 +02:00
Adriaan de Groot
90eb0cd844
[partition] Fix build
2021-09-28 18:16:34 +02:00
Adriaan de Groot
a72fc06502
[partition] Fix message (use MiB instead of bytes)
...
Reported by cfinnberg.
FIXES : #1796
2021-09-28 16:55:35 +02:00
Adriaan de Groot
6b460ce440
[partition] Compare size with the canonical source of "right EFI size"
...
While here, note that the canonical source returns bytes (not MiB).
2021-09-28 16:55:35 +02:00
Adriaan de Groot
51898ea32b
[unpackfs] Fix typo
...
Apparently everyone shipping a squashfs image also has the tools
installed, because the error message reporting that the tools-are-
missing contained a reference to an undefined variable.
Fix that, and while here improve the error message so you
don't get a whole path as a title in the error message.
The slightly weird error-message construction is so that no
messages change and no translation work is needed.
2021-09-27 21:04:26 +02:00
Adriaan de Groot
16f8243fb3
[unpackfs] Move to conventional python-libcalamares use
...
All **other** modules fully specify libcalamares; only unpackfs
was importing shortcuts. Change to conventional usage (partly
because that's easier on the pylint implementation, partly because
it's then consistent with the rest).
2021-09-27 21:04:26 +02:00