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:
parent
a217d65640
commit
bb9de502ce
6 changed files with 112 additions and 0 deletions
30
roles/filesystem/defaults/main.yaml
Normal file
30
roles/filesystem/defaults/main.yaml
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue