From 3791c7520b51f6c565e9035b8b9db359c4d62802 Mon Sep 17 00:00:00 2001 From: Kevin Carter Date: Tue, 13 Mar 2018 10:59:48 -0500 Subject: [PATCH] fix swap/mount section name when type = swap Signed-off-by: Kevin Carter --- templates/systemd-mount.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/systemd-mount.j2 b/templates/systemd-mount.j2 index 82a2633..2902fac 100644 --- a/templates/systemd-mount.j2 +++ b/templates/systemd-mount.j2 @@ -6,7 +6,7 @@ Description=Auto mount for {{ (item.where | default(item.what)).strip('/') | rep {% endfor %} {% endfor %} -[Mount] +[{{ (item.type == 'swap') | ternary('Swap', 'Mount') }}] What={{ item.what }} {% if item.type == 'swap' %} Priority={{ item.priority | default(0) }}