pmbootstrap-meow/pmb
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
..
aportgen aportgen: Only warn if binary version > APKBUILD version 2023-12-10 14:41:53 +01:00
build build: use native abuild-apk (MR 2242) 2024-02-06 00:26:13 +01:00
chroot build: use host native gzip (MR 2242) 2024-02-06 00:23:19 +01:00
ci Use ruff for linting 2023-06-04 10:56:22 +02:00
config flasher: heimdall-bootimg: add support for '--no-reboot' and '--resume' 2024-01-16 21:16:07 +00:00
data init: allow all locales 2023-06-12 08:46:22 +02:00
export install: rename --sdcard arg to --disk 2023-11-19 20:27:37 +01:00
flasher pmb.flasher.variables: use getattr instead of hasattr (MR 2232) 2024-01-18 23:24:30 +00:00
helpers install: more comprehensive subdivision of btrfs subvols (MR 2233) 2024-02-06 12:04:20 +00:00
install install: more comprehensive subdivision of btrfs subvols (MR 2233) 2024-02-06 12:04:20 +00:00
netboot chroot: /mnt/pmbootstrap-* -> /mnt/pmbootstrap/* 2023-08-14 09:52:17 +02:00
parse flasher: heimdall-bootimg: add support for '--no-reboot' and '--resume' 2024-01-16 21:16:07 +00:00
qemu treewide: fix typos found with codespell 2023-07-13 10:07:53 +02:00
sideload pmb.helpers.run_core: move flat_cmd here 2023-07-21 08:54:04 +02:00
__init__.py Prepare 2.1.0 release 2023-12-03 20:14:47 +01:00