{{- $abort := true }} {{- range $fs := .ThisNode.FileSystemList }} {{- if and $fs.Path (ne $fs.Format "swap") }} {{- $abort = false }} {{- file (print ($fs.Path | SystemdEscapePath) ".mount") -}} {{ softlink (print "/etc/systemd/system/" ($fs.Path | SystemdEscapePath) ".mount") }} {{- end }} {{- end }} {{- if $abort }} {{ abort }} {{- end }}