Skip to content

Commit af3a8c5

Browse files
committed
init in.tftpd
1 parent f884a25 commit af3a8c5

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

runner.sh

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,10 @@ shell_generate_compose_file() {
11261126
" else" \
11271127
" echo \"Download failed, continuing with existing files if any...\"" \
11281128
" fi" \
1129+
" if command -v in.tftpd >/dev/null 2>&1 && [ -d /home/runner/tftp ]; then" \
1130+
" echo \"Starting in.tftpd serving /home/runner/tftp...\"" \
1131+
" /usr/sbin/in.tftpd --listen --user root --address :69 --secure /home/runner/tftp >/tmp/in.tftpd.log 2>&1 &" \
1132+
" fi" \
11291133
" ${runner_entrypoint_phytiumpi}" \
11301134
" devices:" \
11311135
" - /dev/loop-control:/dev/loop-control" \
@@ -1182,6 +1186,10 @@ shell_generate_compose_file() {
11821186
" else" \
11831187
" echo \"Download failed, continuing with existing files if any...\"" \
11841188
" fi" \
1189+
" if command -v in.tftpd >/dev/null 2>&1 && [ -d /home/runner/tftp ]; then" \
1190+
" echo \"Starting in.tftpd serving /home/runner/tftp...\"" \
1191+
" /usr/sbin/in.tftpd --listen --user root --address :69 --secure /home/runner/tftp >/tmp/in.tftpd.log 2>&1 &" \
1192+
" fi" \
11851193
" ${runner_entrypoint_roc}" \
11861194
" devices:" \
11871195
" - /dev/loop-control:/dev/loop-control" \
@@ -1218,7 +1226,16 @@ shell_generate_compose_file() {
12181226
" ${RUNNER_NAME_PREFIX}runner-x86_64-pc:" \
12191227
" <<: *runner_base" \
12201228
" container_name: \"${RUNNER_NAME_PREFIX}runner-x86_64-pc\"" \
1221-
" command: [\"${runner_entrypoint_x86_64}\"]" \
1229+
" command:" \
1230+
" - /bin/bash" \
1231+
" - -c" \
1232+
" - |" \
1233+
" set -e" \
1234+
" if command -v in.tftpd >/dev/null 2>&1 && [ -d /home/runner/tftp ]; then" \
1235+
" echo \"Starting in.tftpd serving /home/runner/tftp...\"" \
1236+
" /usr/sbin/in.tftpd --listen --user root --address :69 --secure /home/runner/tftp >/tmp/in.tftpd.log 2>&1 &" \
1237+
" fi" \
1238+
" ${runner_entrypoint_x86_64}" \
12221239
" devices:" \
12231240
" - /dev/loop-control:/dev/loop-control" \
12241241
" - /dev/loop0:/dev/loop0" \
@@ -1270,6 +1287,10 @@ shell_generate_compose_file() {
12701287
" else" \
12711288
" echo \"Download failed, continuing with existing files if any...\"" \
12721289
" fi" \
1290+
" if command -v in.tftpd >/dev/null 2>&1 && [ -d /home/runner/tftp ]; then" \
1291+
" echo \"Starting in.tftpd serving /home/runner/tftp...\"" \
1292+
" /usr/sbin/in.tftpd --listen --user root --address :69 --secure /home/runner/tftp >/tmp/in.tftpd.log 2>&1 &" \
1293+
" fi" \
12731294
" ${runner_entrypoint_visionfive2}" \
12741295
" devices:" \
12751296
" - /dev/loop-control:/dev/loop-control" \

0 commit comments

Comments
 (0)