We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e045831 commit e349bbaCopy full SHA for e349bba
environment/image_recipes/bare_metal/bare_metal.json
@@ -19,7 +19,8 @@
19
"s3_bucket": "tailor-artifacts",
20
"disk_size": "15",
21
22
- "iso_image": ""
+ "iso_image": "",
23
+ "nbd_wait_timeout": "60"
24
},
25
26
"builders": [
@@ -118,6 +119,7 @@
118
119
"inline": [
120
"echo 'Resize image'",
121
"qemu-nbd -c /dev/nbd0 images/{{user `image_name`}}.qcow2",
122
+ "timeout {{user `nbd_wait_timeout` }} bash -c \"while [ ! -b '/dev/nbd0p1' ]; do echo 'Waiting for nbd0p1 to be ready'; sleep 1; done\"",
123
"e2fsck -y -f /dev/nbd0p1",
124
"resize2fs /dev/nbd0p1 -M",
125
"qemu-nbd -d /dev/nbd0",
0 commit comments