20 lines
681 B
Plaintext
20 lines
681 B
Plaintext
# This file is autogenerated by warewulf
|
|
# Host: {{.BuildHost}}
|
|
# Time: {{.BuildTime}}
|
|
# Source: {{.BuildSource}}
|
|
[Unit]
|
|
Description=mount ww4 disks
|
|
# make sure that the disks are available
|
|
Requires=ignition-ww4-disks.service
|
|
After=ignition-ww4-disks.service
|
|
Prequisite=ignition-ww4-disks.service
|
|
# Get the mounts
|
|
{{- range $fsdevice,$fs := .FileSystems }}
|
|
{{- $prefix := $fsdevice }}{{ $suffix := "mount" }}
|
|
{{- if eq $fs.Format "swap"}}
|
|
{{- $prefix = tr $fsdevice "/dev/disk/by-partlabel/" "dev-disk-by\\x2dpartlabel-"}}{{ $suffix = "swap"}}
|
|
{{- else }}
|
|
{{- if $fs.Path }}{{ $prefix = tr $fs.Path "/" "" }}{{ end }}
|
|
{{- end }}
|
|
Wants={{ print $prefix "." $suffix }}
|
|
{{- end }} |