mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
flag in init and background only if not in init
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
parent
90d1866bdc
commit
af0331d382
@ -2,4 +2,6 @@
|
||||
|
||||
# if we are here, then we need to debug a linuxkit build
|
||||
# so we always run in INSECURE mode
|
||||
INSECURE=true /usr/bin/rungetty.sh
|
||||
export INITGETTY=true
|
||||
export INSECURE=true
|
||||
/usr/bin/rungetty.sh
|
||||
|
@ -56,5 +56,5 @@ for opt in $(cat /proc/cmdline); do
|
||||
esac
|
||||
done
|
||||
|
||||
# wait for all our child process to exit; tini will handle subreaping, if necessary
|
||||
wait
|
||||
# if we are in a container (not in root init) wait for all our child process to exit; tini will handle subreaping, if necessary
|
||||
[ -z "$INITGETTY" ] && wait
|
||||
|
Loading…
Reference in New Issue
Block a user