mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-01 06:04:12 +08:00
51395f01ce
Whilst we want to reuse the same init and job environment for LAVA and bare-metal, LAVA needs to additionally inject wget and tar jobs, so we can actually get our per-job environment, as the rootfs we run in is just the container-generated base rootfs. Split the init script into two stages, with the first stage doing very base bringup of devices and networking, and the second stage setting the job environment and running the jobs. Signed-off-by: Daniel Stone <daniels@collabora.com> Acked-by: Martin Peres <martin.peres@mupuf.org> Acked-by: Emma Anholt <emma@anholt.net> Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11337>
14 lines
322 B
Bash
Executable File
14 lines
322 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Init entrypoint for bare-metal devices; calls common init code.
|
|
|
|
# First stage: very basic setup to bring up network and /dev etc
|
|
/init-stage1.sh
|
|
|
|
# Second stage: run jobs
|
|
test $? -eq 0 && /init-stage2.sh
|
|
|
|
# Wait until the job would have timed out anyway, so we don't spew a "init
|
|
# exited" panic.
|
|
sleep 6000
|