Sync
This commit is contained in:
parent
d8669c0b8a
commit
460780358a
1 changed files with 3 additions and 4 deletions
|
@ -5,6 +5,7 @@ echo "Starting QEMU for Docker v${VERSION}..."
|
||||||
|
|
||||||
STORAGE="/storage"
|
STORAGE="/storage"
|
||||||
[ ! -d "$STORAGE" ] && echo "Storage folder (${STORAGE}) not found!" && exit 69
|
[ ! -d "$STORAGE" ] && echo "Storage folder (${STORAGE}) not found!" && exit 69
|
||||||
|
[ ! -f "/run/run.sh" ] && echo "Script must run inside Docker container!" && exit 60
|
||||||
|
|
||||||
if [ -f "$STORAGE/boot.img" ]; then
|
if [ -f "$STORAGE/boot.img" ]; then
|
||||||
. /run/install.sh
|
. /run/install.sh
|
||||||
|
@ -40,7 +41,5 @@ set -m
|
||||||
)
|
)
|
||||||
set +m
|
set +m
|
||||||
|
|
||||||
# Since we have to start the process with -m, we need to poll every intervall if it's still running
|
pidwait -F "${_QEMU_PID}" &
|
||||||
while [ -d "/proc/$(cat ${_QEMU_PID})" ]; do
|
wait $!
|
||||||
snore 1
|
|
||||||
done
|
|
||||||
|
|
Loading…
Reference in a new issue