aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/templates/fstab.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/templates/fstab.j2')
-rw-r--r--roles/space_server/templates/fstab.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/space_server/templates/fstab.j2 b/roles/space_server/templates/fstab.j2
new file mode 100644
index 0000000..ba4f69d
--- /dev/null
+++ b/roles/space_server/templates/fstab.j2
@@ -0,0 +1,9 @@
+{{ boot.device }} /boot vfat defaults,{{ boot.options }} 0 2
+
+{% if ansible_distribution_release == 'Rawhide' %}
+{{ root.device }} / btrfs defaults,{{ root.options }},subvol=/rawhide 0 1
+{% else %}
+{{ root.device }} / btrfs defaults,{{ root.options }},subvol=/{{ ansible_distribution.lower() }}{{ ansible_distribution_version }} 0 1
+{% endif %}
+{{ root.device }} /home btrfs defaults,{{ root.options }},subvol=/home 0 2
+{{ root.device }} /mnt btrfs defaults,{{ root.options }},subvol=/ 0 2