Skip to content

Commit d6f7dd0

Browse files
committed
fix(contrib/gce): fix docker storage being wiped on boot
Ref: #1868
1 parent 5afb880 commit d6f7dd0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

contrib/gce/gce-user-data-template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ coreos:
66
content: |
77
[Unit]
88
Description=Formats the ephemeral drive
9+
ConditionPathExists=!/etc/gce-formatted
910
[Service]
1011
Type=oneshot
1112
RemainAfterExit=yes
1213
ExecStart=/usr/sbin/wipefs -f /dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker
1314
ExecStart=/usr/sbin/mkfs.btrfs -f /dev/disk/by-id/scsi-0Google_PersistentDisk_coredocker
15+
ExecStart=/bin/touch /etc/gce-formatted
1416
- name: var-lib-docker.mount
1517
command: start
1618
content: |

0 commit comments

Comments
 (0)