Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 line
526B

  1. [Unit]
  2. Description=Setup {{ device_name }} device
  3. DefaultDependencies=no
  4. After=systemd-udev-settle.service
  5. Before=lvm2-activation-early.service
  6. Wants=systemd-udev-settle.service
  7. [Service]
  8. {# The command is prefixed with '-' to consider it a success if the loopback device is already setup #}
  9. ExecStart=-/sbin/losetup {{ device_name }} {{ file }}
  10. {# In order to Salt can recognize oneshot service as running, we need it to remain active after it exited #}
  11. RemainAfterExit=true
  12. Type=oneshot
  13. [Install]
  14. WantedBy=local-fs.target