2022-03-08 19:42:28 +01:00
|
|
|
[Unit]
|
|
|
|
DefaultDependencies=no
|
2023-06-23 08:12:05 +02:00
|
|
|
BindsTo=dev-disk-by\x2dpartlabel-{{ part }}.device
|
2022-03-08 19:42:28 +01:00
|
|
|
Conflicts=shutdown.target
|
2023-06-23 08:12:05 +02:00
|
|
|
After=dev-disk-by\x2dpartlabel-{{ part }}.device
|
|
|
|
{% if format == 'swap' %}
|
2022-03-08 19:42:28 +01:00
|
|
|
Before=shutdown.target dev-disk-by\x2dpartlabel-swap.swap
|
2023-06-23 08:12:05 +02:00
|
|
|
{% else %}
|
|
|
|
Before=shutdown.target systemd-fsck@dev-disk-by\x2dpartlabel-{{ part }}.service {{ name }}.mount
|
|
|
|
{% endif %}
|
2022-03-08 19:42:28 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2023-06-23 08:12:05 +02:00
|
|
|
ExecStart=/usr/lib/systemd/systemd-makefs {{ format }} /dev/disk/by-partlabel/{{ part }}
|
2022-03-08 19:42:28 +01:00
|
|
|
TimeoutSec=0
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|