feat: Set up filesystems

Automatically set up btrfs root and data filesystem, as well as external
HDD.

This automation change assumes a layout exactly as in current bob to
function by default, can be changed to any btrfs layout with the
`btrfs_mounts` configuration option, however.
This commit is contained in:
Marty Oehme 2025-11-18 21:54:43 +01:00
parent a217d65640
commit bb9de502ce
Signed by: Marty
GPG key ID: 4E535BC19C61886E
6 changed files with 112 additions and 0 deletions

View file

@ -0,0 +1,30 @@
---
should_mount_external_hdd: true
should_reboot_machine: false
btrfs_mounts:
- path: "/"
subvol: "@rootfs"
uuid: "3204f33f-5fa7-4c11-bdd8-979c539fce91"
opts: "defaults,ssd,noatime,compress=zstd:3,space_cache=v2"
- path: "/home"
subvol: "@home"
uuid: "3204f33f-5fa7-4c11-bdd8-979c539fce91"
opts: "defaults,ssd,noatime,compress=zstd:3,space_cache=v2"
- path: "/srv/media"
subvol: "@media"
uuid: "2256bd23-7751-486a-bfc4-b216a6b0c4f4"
opts: "defaults,noatime,compress=zstd:3,space_cache=v2"
- path: "/srv/files"
subvol: "@files"
uuid: "2256bd23-7751-486a-bfc4-b216a6b0c4f4"
opts: "defaults,noatime,compress=zstd:3,space_cache=v2"
- path: "/srv/documents"
subvol: "@documents"
uuid: "2256bd23-7751-486a-bfc4-b216a6b0c4f4"
opts: "defaults,noatime,compress=zstd:3,space_cache=v2"
- path: "/srv/wolf"
subvol: "@wolf"
uuid: "2256bd23-7751-486a-bfc4-b216a6b0c4f4"
opts: "defaults,noatime,compress=zstd:1,space_cache=v2"