Adriaan de Groot
8e19d6080d
mount: use False as default for "claimed"
...
The regular tests would fail, because the sample global
configuration does not set the "claimed" value of a partition.
2023-08-28 22:54:22 +02:00
dalto
d35e69c8a9
[mount] Warn on failure to activate swap partition
2023-03-11 10:16:20 -06:00
dalto
ce6f498358
[mount] Post-merge cleanup of swap enablement
2023-02-28 18:35:18 -06:00
Masato TOYOSHIMA
c296f67356
Update main.py
2023-02-26 07:48:51 +09:00
Masato TOYOSHIMA
5513ffcd1c
Update main.py
2023-02-26 07:24:12 +09:00
Masato TOYOSHIMA
0038751106
UAdded automatic enabling of swap partition before installation starts.
...
Mainly to suppress installer stoppages caused by oom killer.
2023-02-26 07:17:40 +09:00
Masato Toyoshima
6c25be670d
Added automatic enabling of swap partition before installation starts.
...
Mainly to suppress installer stoppages caused by oom killer.
2023-02-26 02:00:12 +09:00
Masato Toyoshima
77e1407c51
During installation, if a swap partition exists, enable swap.
...
If there is no swap at all when the partition of the installation destination device is mounted,
if a Swap partition exists, enable swap.
2023-02-14 04:30:24 +09:00
demmm
79d796a437
Merge pull request #2091 from calamares/issue-2090
...
Allow overriding greetd user/group
2023-02-14 04:30:04 +09:00
dalto
5a10c58c35
[mount] Remove duplicate subvol option
2022-10-15 17:31:50 -05:00
Adriaan de Groot
cdbc7fffca
[mount] Repair test-config files against schema
...
- can't use *bogus* as a key unless that's allowed by
the schema -- and it is not.
- can't supply empty config if there is supposed to be
an object there.
This makes it a little difficult to allow a config-file
that is actually no-configuration-at-all (or only-defaults).
Put in values for *btrfsSwapSubvol* since it isn't a fragile
setting.
2022-06-27 23:04:12 +02:00
Adriaan de Groot
2f3fb4a387
[fstab, mount] Warn when the mount options end up weird
2022-06-11 00:30:32 +02:00
dalto
85c67113b7
[mount] Update schema to use arrays
2022-05-09 06:50:33 -05:00
dalto
5b483ab26f
[mount] Fix typo in mount.conf comments
2021-12-30 10:01:03 -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
dalto
6e8779cbce
[mount] Ensure path is available when creating nested btrfs subvolumes
2021-12-04 08:53:15 -06: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
dalto
b0f6530a58
[mount][bootloader] Ensure root subvolume is set correctly for systemd-boot
2021-11-18 10:04:49 -06:00
dalto
87cca4053f
[zfs][mount] Refactor zfs dataset mounting logic
2021-11-16 13:59:24 -06:00
dalto
4778d9b2dd
[mount] zfs changes from review feedback
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
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
75c947c5a3
[mount] Fix zfs code and add support for encryption
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
Adriaan de Groot
6b9a1530f8
[mount] Add test exercising partial-filtering
2021-07-07 13:08:11 +02:00
Adriaan de Groot
eb4ffe737e
[mount] Fix logic
...
- filter() returns the items for which the predicate is True;
we want to keep the subvolumes that do not have an explicit
partition already associated.
- need list() to hammer it back into a list for appending swap subvol.
2021-07-07 12:57:08 +02:00
Adriaan de Groot
995646936f
[mount] Add test exercising refactored btrfs code
2021-07-07 12:38:41 +02:00
Adriaan de Groot
e800b2da2d
[mount] Factor out swap-subvolume setting
2021-07-06 16:48:46 +02:00
Adriaan de Groot
cc357140e5
[mount] Factor out the subvolume-filtering for partitions
2021-07-06 16:43:56 +02:00
Adriaan de Groot
6b2088c94e
[mount] Restore @home subvolume
...
In 942221c764
the fixed-setup
(with /@ and /@home) was replaced by the configurable btrfs
layout, but the default went away. Restore the two-subvolume
layout if nothing is configured.
2021-07-06 15:34:13 +02:00
Adriaan de Groot
3531896892
[mount] Factor out the default btrfs configuration
2021-07-06 15:31:00 +02:00
Adriaan de Groot
7b297a0e16
[mount] Rename test file, re-jig tests for mount
2021-06-15 21:11:07 +02:00
Adriaan de Groot
846936357b
[mount] If no btrfs layout at all, use something reasonable
...
This is related to https://invent.kde.org/neon/neon/calamares-settings/-/merge_requests/1
which adds .. the default things from the example configuration to the
configuration file KDE neon ships. The default layout doesn't add
any subvolumes at all, which seems to be non-functional.
If nothing is configured, complain and use /@ as the lone subvolume.
2021-06-15 20:43:44 +02:00
Chrysostomus
16eff98a06
Don't use f-strings yet.
2021-02-07 15:39:38 +02:00
Chrysostomus
0c92a36a53
Remove unnecessary comment
2021-02-07 15:29:30 +02:00
Chrysostomus
6d55005da0
Mount subvolumes to correct mountpoints
2021-02-07 00:16:26 +02:00
Chrysostomus
67aedd5582
Move comments closer to where they are used
2021-02-06 19:54:29 +02:00
Chrysostomus
16bf7925a2
Adjust comments
2021-02-06 19:48:09 +02:00
Chrysostomus
1896a38ccc
Fix a typo
2021-02-06 01:38:03 +02:00
Chrysostomus
1e0295dc65
Fix name error
2021-02-03 22:55:11 +02:00
Chrysostomus
fcf6e2fb25
fix typos
2021-02-02 23:07:35 +02:00
Chrysostomus
092374d08c
Add modified list to global storage
2021-01-26 22:48:02 +02:00
Chrysostomus
f53f43ad03
Remove some unnecessary bits
2021-01-26 22:42:35 +02:00
Chrysostomus
4b6718b354
Further generalize subvolume handling
2021-01-26 22:35:42 +02:00
Chrysostomus
942221c764
Generalize subvolume handling
2021-01-26 22:24:50 +02:00