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
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
7e51731167
[partititon] Slightly better debug-logging for automount
2022-03-01 13:52:50 +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
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
e507a23795
Modules: make use of KF5::CoreAddons explicit
2022-02-08 16:12:25 +01:00
Adriaan de Groot
8f769006d6
Merge branch 'calamares' into work-3.3
2022-02-08 13:28:20 +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
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
e9899d0345
[packagechooser,netinstall] Apply coding style
2022-01-31 23:42:20 +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
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
dalto
112d0b2e90
[packages] Ensure all pacman output is available in debug log
2022-01-17 07:07:09 -06: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
Adriaan de Groot
90f6ea1fc8
[preservefiles] polish the documentation
2021-12-13 15:07:24 +01:00
Adriaan de Groot
238672ef78
[preservefiles] Split file-items into separate header
...
Put the Item class in a separate header; give it functionality
to create itself from Variants (e.g. from the configuration data)
and to run itself (do whatever the item is supposed to do).
This makes the polymorphic approach unnecessary: we just have
items that are sufficiently smart.
This moves do-a-thing to the Item, while the Job now has one
job: be a loop around creating Items and running items.
2021-12-13 15:05:05 +01:00
Adriaan de Groot
b1ecbb4151
[preservefiles] Start cleanup of structure, polymorphism
2021-12-13 15:05:05 +01:00
Johannes Kamprad
becb1d5710
Update preservefiles.conf
2021-12-12 01:22:22 +01:00
arcolinuxz
5b225cf960
[preservefiles] Put the logs in /var/log
2021-12-11 23:58:23 +01:00
Adriaan de Groot
132ebd2c2d
[networkcfg] NetworkManager files are UTF-8 encoded
...
The filenames don't matter, but the contents of the file are also
UTF-8, and depending on the default encoding of the Python
interpreter, this can fail on non-ASCII characters in the
file. Set the encoding explicitly while reading and writing
the NetworkManager configuration files.
FIXES #1848
2021-12-11 15:12:51 +01:00
Adriaan de Groot
03da766b39
[partition] Keep 64-bit integers for swap sizes
...
FIXES #1849
2021-12-11 13:19:08 +01:00
Adriaan de Groot
7ac42b5f40
[umount] Tests don't like an empty config
...
- modules with no configuration should be marked 'noconfig',
but umount is special: it has no **useful** configuration
(maybe no **non-deprecated** configuration), but isn't
marked 'noconfig' **yet**.
2021-12-10 16:44:01 +01:00
Adriaan de Groot
3870851074
[luksopenswaphookcfg] Remove Python implementation
2021-12-08 14:35:52 +01:00
Adriaan de Groot
046a228d62
[luksopenswaphookcfg] Expand tests with lines more-closely tailored to the actual file-format
2021-12-08 14:25:03 +01:00
Adriaan de Groot
2c20a00cc3
[luksopenswaphookcfg] Read GS for finding LUKS config
2021-12-08 14:12:25 +01:00
Adriaan de Groot
45d6eb36fb
[luksopenswaphookcfg] Extend info with btrfs subvol
...
This is a C++-ification of e8936392
from dalto8 . Add a line
for options to the empty-file-fallback.
2021-12-08 14:12:25 +01:00
Adriaan de Groot
7ea21663ca
[luksopenswaphookcfg] Partial implementation in C++
...
- Futz a bit with the string replacements -- do not assume #
will introduce a comment half-way through a line.
2021-12-08 14:12:20 +01:00
Adriaan de Groot
5ca029df25
[luksopenswaphookcfg] Start a C++ port
...
- this module needs work to handle BTRFS special-cases *anyway*
- limited in scope, few options: port it while doing the
special-cases
So far, this is just a C++ stub.
SEE #1659 #1644
2021-12-08 14:12:20 +01:00
Adriaan de Groot
bb948c47dc
[fstab] Cut the example btrfs flags to 'defaults'
...
Testing shows that the flags can influence -- maybe cause -- data
corruption when noatime is set.
FIXES #1846
2021-12-08 13:06:53 +01:00
Adriaan de Groot
f0eb7ffbda
[partition Untangle, Warnings--
...
The translations apply to labels and a tooltip, which depends on
the partition-table type. Move the strings together and make
the whole range of the switch explicitly.
2021-12-08 00:59:20 +01:00
Adriaan de Groot
e8ca298712
[partition] Reduce warnings
2021-12-08 00:15:01 +01:00
Adriaan de Groot
13700b18c8
[partition] Warnings--
...
- remove superfluous `break`
- massage types around partition sizes
2021-12-08 00:06:17 +01:00
Adriaan de Groot
1197d8c750
[interactiveterminal] Warnings-- with KF5 5.86-or-later
2021-12-07 18:19:32 +01:00
Adriaan de Groot
09f47b5762
[partition] Build tests with consistent flags (in particular, KPMCore4-API flags)
2021-12-07 15:51:45 +01:00
Adriaan de Groot
6e715205d7
[partition] Warnings-- by calling formatting consistently
2021-12-07 15:36:11 +01:00
Adriaan de Groot
09a03fbbc0
[partition] Warnings--: we don't care about one-byte-in-10^12
2021-12-07 15:31:49 +01:00
Adriaan de Groot
bb3f4442f5
[partition] Warnings-reduction
...
- use consistent size-formatting
- needs an out-of-line virtual function
2021-12-07 15:30:21 +01:00
Adriaan de Groot
5b05110351
[partition] Add convenience function formatByteSize
...
We want to use the KPMCore function consistently, but Calamares
uses a qint64 most of the time. Centralize the cast to double
in one place in the code.
2021-12-07 15:29:02 +01:00
Adriaan de Groot
eda85c176a
[tracking] Avoid unused-deprecated-methods warnings
...
- these are internal classes, with no real Qt machinery; remove
the Q_OBJECT macros.
- replace the tr() calls with calls with an explicit context,
so that translations do not change.
2021-12-07 15:07:07 +01:00
Adriaan de Groot
149f3ff3fe
[partition] Reduce warnings about shadowed variables
2021-12-06 14:52:33 +01:00
Adriaan de Groot
d89553a777
[partition] Avoid problems with MessageAndPath in containers (drop const)
2021-12-06 14:46:26 +01:00
Adriaan de Groot
47f2dd3c18
Merge pull request #1844 from dalto8/openswap
...
Add support for unlocking encrypted swap with root on a btrfs subvol
2021-12-06 10:42:44 +01:00
dalto
6e08da6c8d
[bootloader] Fix error with systemd-boot when path exists in the ESP
2021-12-06 10:31:58 +01:00
dalto
e8936392e3
[luksopenswaphookcfg] Add support unlocking swap with root on a btrfs subvol
2021-12-05 13:17:23 -06:00
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
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
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
ce23efae99
Merge branch 'calamares' into work-3.3
2021-11-30 11:39:30 +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
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
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
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
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
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
Adriaan de Groot
bd4bed1438
Merge branch 'calamares' into work-3.3
2021-11-09 15:31:37 +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
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