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.

setup-loopback-device.upstart 209B

123456789101112
  1. description "Setup {{ device_name }} device"
  2. start on filesystem
  3. task
  4. pre-start script
  5. if /sbin/losetup {{ device_name }}; then
  6. stop ; exit 0
  7. fi
  8. end script
  9. exec losetup {{ device_name }} {{ file }}