Commit bc8914bc authored by Raphaël Hertzog's avatar Raphaël Hertzog Committed by Raphaël Hertzog

Avoid deadlock during boot by using systemctl --no-block.

By default systemctl waits until the requested action has been completed,
however live-config itselfs runs as a service managed by systemd and
the requested action cannot complete until live-config itself has
finished... this creates a deadlock during boot.

To avoid this we use the --no-block option of systemctl which
instructs systemd to enqueue the requested operation and systemctl
to not wait its completion.
parent 0e9ffb28
...@@ -86,8 +86,8 @@ EOF ...@@ -86,8 +86,8 @@ EOF
for NUMBER in $(seq 1 6) for NUMBER in $(seq 1 6)
do do
systemctl daemon-reload systemctl --no-block daemon-reload
systemctl restart getty@tty${NUMBER}.service systemctl --no-block restart getty@tty${NUMBER}.service
done done
fi fi
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