Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(contrib/gce): fix docker storage being wiped on boot
Browse files Browse the repository at this point in the history
Ref: #1868
  • Loading branch information
Xe committed Sep 21, 2014
1 parent 5afb880 commit d6f7dd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contrib/gce/gce-user-data-template
Expand Up @@ -6,11 +6,13 @@ coreos:
content: |
[Unit]
Description=Formats the ephemeral drive
ConditionPathExists=!/etc/gce-formatted
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/wipefs -f /dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker
ExecStart=/usr/sbin/mkfs.btrfs -f /dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker
ExecStart=/bin/touch /etc/gce-formatted
- name: var-lib-docker.mount
command: start
content: |
Expand Down

0 comments on commit d6f7dd0

Please sign in to comment.