github.com/inflatablewoman/deis@v1.0.1-0.20141111034523-a4511c46a6ce/contrib/gce/gce-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/gce-formatted 10 [Service] 11 Type=oneshot 12 RemainAfterExit=yes 13 ExecStart=/usr/sbin/wipefs -f /dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker 14 ExecStart=/usr/sbin/mkfs.btrfs -f /dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker 15 ExecStart=/bin/touch /etc/gce-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 Before=docker.service 23 [Mount] 24 What=/dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker 25 Where=/var/lib/docker 26 Type=btrfs