Skip to content

Commit e87cd99

Browse files
DevelopmentCatsbrymut
authored andcommitted
fix(hetzner-linux): add wait for volume device before mounting in cloud-config template
1 parent 3295911 commit e87cd99

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

registry/brymut/templates/hetzner-linux/cloud-config.yaml.tftpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ write_files:
4949
[Install]
5050
WantedBy=multi-user.target
5151
runcmd:
52+
%{ if home_volume_label != "" ~}
53+
- |
54+
until [ -e /dev/disk/by-id/scsi-0HC_Volume_${volume_id} ]; do
55+
echo "Waiting for volume device..."
56+
sleep 2
57+
done
58+
%{ endif ~}
5259
- mount -a
5360
- chown ${username}:${username} /home/${username}
5461
- systemctl enable coder-agent

0 commit comments

Comments
 (0)