diff options
Diffstat (limited to 'roles/space_server')
-rw-r--r-- | roles/space_server/templates/cmdline.j2 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/roles/space_server/templates/cmdline.j2 b/roles/space_server/templates/cmdline.j2 index 36b1e15..d3bd2e7 100644 --- a/roles/space_server/templates/cmdline.j2 +++ b/roles/space_server/templates/cmdline.j2 @@ -1,5 +1,8 @@ -{% 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 +{% if 'subvolume' in root %} +{% set subvol = root.subvolume %} +{% elif ansible_distribution_release == 'Rawhide' %} +{% set subvol = '/rawhide' %} {% 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 +{% set subvol = '/%s%s' % (ansible_distribution.lower(), ansible_distribution_version) %} {% endif %} +console=ttyS0,115200n8 ro root={{ root.device }} rootfstype=btrfs ro rootflags={{ root.options|regex_replace('noatime,','') }},subvol={{ subvol }} rootwait audit=0 |