- sfdisk - partitions the disk - mkfs - formats partitions - mkswap - formats partitions for swap - systemd.mount - explicit creation of systemd mount units - systemd.swap - explicit creation of systemd swap units Signed-off-by: Jonathon Anderson <janderson@ciq.com>
12 lines
346 B
Plaintext
12 lines
346 B
Plaintext
{{- $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 }}
|