aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/templates/cmdline.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/space_server/templates/cmdline.j2')
-rw-r--r--roles/space_server/templates/cmdline.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/space_server/templates/cmdline.j2 b/roles/space_server/templates/cmdline.j2
new file mode 100644
index 0000000..36b1e15
--- /dev/null
+++ b/roles/space_server/templates/cmdline.j2
@@ -0,0 +1,5 @@
+{% if ansible_distribution_release == 'Rawhide' %}
+console=ttyS0,115200n8 ro root={{ root.device }} rootfstype=btrfs ro rootflags={{ root.options|regex_replace('noatime,','') }},subvol=/rawhide rootwait audit=0
+{% else %}
+console=ttyS0,115200n8 ro root={{ root.device }} rootfstype=btrfs ro rootflags={{ root.options|regex_replace('noatime,','') }},subvol=/{{ ansible_distribution.lower() }}{{ ansible_distribution_version }} rootwait audit=0
+{% endif %}