pmbootstrap-meow/pmb/install
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
_install.py install: more comprehensive subdivision of btrfs subvols (MR 2233) 2024-02-06 12:04:20 +00:00
blockdevice.py install: rename --sdcard arg to --disk 2023-11-19 20:27:37 +01:00
format.py install: more comprehensive subdivision of btrfs subvols (MR 2233) 2024-02-06 12:04:20 +00:00
losetup.py Bump copyright to 2023 2023-01-22 19:18:06 +01:00
partition.py install: rename --sdcard arg to --disk 2023-11-19 20:27:37 +01:00
recovery.py treewide: rename _system to _rootfs in various places 2023-06-12 08:46:22 +02:00
ui.py pmb.install: support pmb_recommends for any package 2024-01-09 16:55:47 +01:00