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.

15 lines
396B

  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. Type=oneshot
  11. [Install]
  12. WantedBy=local-fs.target