Commit f8d1869c authored by Martin Peres's avatar Martin Peres
Browse files

initscript: sync to the disk before starting the container

By syncing, we make sure that the layers get stored on the disk, before
we potentially crash.
parent fae0449f
......@@ -316,6 +316,10 @@ function start_container {
create_container $@ || return 1
# Make sure that the layers got pushed to the drive before running the
# container
# HACK: Figure out how to use "podman wait" to wait for the container to be
# ready for execution. Without this sleep, we sometimes fail to attach the
# stdout/err to the container. Even a one ms sleep is sufficient in my
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment