Skip to content

Commit f6d39c0

Browse files
committed
Merge pull request #4082 from aledbf/fix-builder-script-error
fix(builder):wait until push-images script exists
2 parents 0bd2568 + 9f37107 commit f6d39c0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • builder/rootfs/bin

builder/rootfs/bin/boot

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ function gen_host_keys {
119119

120120
gen_host_keys
121121

122+
# wait until confd generates the push-images script
123+
while [[ ! -e /usr/local/bin/push-images ]]; do
124+
echo "waiting for confd to generate '/usr/local/bin/push-images'..."
125+
sleep 1
126+
done
127+
122128
# start an SSH daemon to process `git push` requests
123129
/usr/sbin/sshd -D -e &
124130
SSHD_PID=$!

0 commit comments

Comments
 (0)