mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-05 00:42:54 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user