flag in init and background only if not in init

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher 2017-07-18 16:37:05 +03:00
parent 90d1866bdc
commit af0331d382
2 changed files with 5 additions and 3 deletions

View File

@ -2,4 +2,6 @@
# if we are here, then we need to debug a linuxkit build # if we are here, then we need to debug a linuxkit build
# so we always run in INSECURE mode # so we always run in INSECURE mode
INSECURE=true /usr/bin/rungetty.sh export INITGETTY=true
export INSECURE=true
/usr/bin/rungetty.sh

View File

@ -56,5 +56,5 @@ for opt in $(cat /proc/cmdline); do
esac esac
done done
# wait for all our child process to exit; tini will handle subreaping, if necessary # if we are in a container (not in root init) wait for all our child process to exit; tini will handle subreaping, if necessary
wait [ -z "$INITGETTY" ] && wait