pmbootstrap-meow/pmb/helpers
Jacob Ludvigsen 2bd1eb26d8
install: more comprehensive subdivision of btrfs subvols (MR 2233)
Why
Btrfs has some goodness (snapshots, switching between different rw snapshot)
which plays particularly well with certain "subvolume layouts".

What
This MR seeks to implement such a layout, namely a flat btrfs layout,
where the top level subvolume (i.e. the btrfs filesystem/partition itself)
remains unmounted in all situations,
except when making changes to direct child subvolumes of the filesystem.

- rename all subvols to follow the common @* btrfs subvol naming scheme.
- add subvol @root, because roots home directory shouldn't be rolled back.
- make subvol @var not Copy-on-Write (nodatacow) to avoid write
- multiplication on logs, VMs, databases, containers and flatpaks.
- add subvol @snapshots because that lets us change the root subvol to a
read-write snapshot of @ without affecting snapshots.
- add subvol @srv because it contains data for Web and FTP servers,
which shouldn't roll back together with root subvol.
- add subvol @tmp because we don't want to snapshot temporary files.
This subvol remains unmounted on the device,
unless conditions as laid out in pmaports!4737 are met.
- add check and error for btrfs when using rsync installation.
2024-02-06 12:04:20 +00:00
..
__init__.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
apk.py pmb.helpers.run_core: move flat_cmd here 2023-07-21 08:54:04 +02:00
aportupgrade.py Move version to pmb.__version__ 2023-04-15 01:44:37 +02:00
args.py pmb.helpers.args: Skip some initialisation code when running checksum (MR 2228) 2024-01-19 00:00:49 +00:00
cli.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
devices.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
file.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
frontend.py install: more comprehensive subdivision of btrfs subvols (MR 2233) 2024-02-06 12:04:20 +00:00
git.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
http.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
lint.py lint: drop call to pmb.build.init 2023-06-15 08:30:54 +02:00
logging.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
mount.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
other.py pmb.helpers.other.validate_hostname: allow periods 2023-04-15 01:44:31 +02:00
package.py pmb.helpers.pmaports.get: deal with operators 2023-11-29 22:31:11 +01:00
pkgrel_bump.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
pmaports.py pkg resolver: don't guess if pmaport was found 2023-12-03 20:11:25 +01:00
repo.py chroot: /mnt/pmbootstrap-* -> /mnt/pmbootstrap/* 2023-08-14 09:52:17 +02:00
repo_missing.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
run.py Fix preserving proxy variables (MR 2237) 2024-01-25 20:12:53 +00:00
run_core.py Fix preserving proxy variables (MR 2237) 2024-01-25 20:12:53 +00:00
status.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
ui.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00