- Control root device using the node/profile root field - Add support for `/warewulf/wwinit.d` to run scripts during first stage - Move first-stage ignition support to `/warewulf/wwinit.d/` - Add `wwctl <node|profile> set --parttype` - Add overlay template functions `SystemdEscape` and `SystemdEscapePath` - Support configuring ignition with resources Signed-off-by: Jonathon Anderson <janderson@ciq.com>
27 lines
789 B
Plaintext
27 lines
789 B
Plaintext
# This file is autogenerated by warewulf
|
|
|
|
[Unit]
|
|
Description=mount ww4 disks
|
|
# make sure that the disks are available
|
|
Requires=ignition-ww4-disks.service
|
|
After=ignition-ww4-disks.service
|
|
Requisite=ignition-ww4-disks.service
|
|
# Get the mounts
|
|
{{- if .FileSystems }}
|
|
{{- range $fsdevice, $fs := .FileSystems }}
|
|
{{- if eq $fs.Format "swap" }}
|
|
Wants={{ $fsdevice | SystemdEscapePath }}.swap
|
|
{{- else if ne $fs.Path "" }}
|
|
Wants={{ $fs.Path | SystemdEscapePath }}.mount
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- else if .Resources.ignition.storage.filesystems }}
|
|
{{- range $fs := .Resources.ignition.storage.filesystems }}
|
|
{{- if eq $fs.format "swap" }}
|
|
Wants={{ $fs.device | SystemdEscapePath }}.swap
|
|
{{- else if ne $fs.path "" }}
|
|
Wants={{ $fs.path | SystemdEscapePath }}.mount
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|