github.com/arkadijs/deis@v1.5.1/contrib/azure/azure-user-data-template (about)

     1  #cloud-config
     2  coreos:
     3    units:
     4      - name: format-ephemeral.service
     5        command: start
     6        content: |
     7          [Unit]
     8          Description=Formats the ephemeral drive
     9          ConditionPathExists=!/etc/azure-formatted
    10          [Service]
    11          Type=oneshot
    12          RemainAfterExit=yes
    13          ExecStart=/usr/sbin/wipefs -f /dev/sdc
    14          ExecStart=/usr/sbin/mkfs.ext4 -i 4096 -b 4096 /dev/sdc
    15          ExecStart=/bin/touch /etc/azure-formatted
    16      - name: var-lib-docker.mount
    17        command: start
    18        content: |
    19          [Unit]
    20          Description=Mount ephemeral to /var/lib/docker
    21          Requires=format-ephemeral.service
    22          After=format-ephemeral.service
    23          Before=docker.service
    24          [Mount]
    25          What=/dev/sdc
    26          Where=/var/lib/docker
    27          Type=ext4