Saltstack Official Linux Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

17 lines
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