aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/templates/fstab.j2
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2017-11-07 16:27:49 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2017-11-12 14:56:32 +0100
commite8cdba85c48dcbbd42e6fcb5be3aa2912008cb84 (patch)
tree41ba5163cf6f110521f2ebc9035f77d2754796a0 /roles/space_server/templates/fstab.j2
downloadlabitat-ansible-e8cdba85c48dcbbd42e6fcb5be3aa2912008cb84.tar.gz
labitat-ansible-e8cdba85c48dcbbd42e6fcb5be3aa2912008cb84.tar.xz
labitat-ansible-e8cdba85c48dcbbd42e6fcb5be3aa2912008cb84.zip
initial commit
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