Commit 4371edd4 authored by intrigeri's avatar intrigeri

Have the security check and the upgrader wait for Tor having bootstrapped with...

Have the security check and the upgrader wait for Tor having bootstrapped with systemd unit files ordering.

Two less ugly while/sleep loops, two.
parent 76be86f2
[Unit]
Description=Check Tails known, unfixed security issues
Documentation=https://tails.boum.org/contribute/design/
After=tails-wait-until-tor-has-bootstrapped.service
[Service]
ExecStart=/usr/local/bin/tails-security-check-wrapper
......
[Unit]
Description=Check available Tails upgrades
Documentation=https://tails.boum.org/contribute/design/incremental_upgrades/
After=tails-wait-until-tor-has-bootstrapped.service
[Service]
ExecStart=/usr/local/bin/tails-upgrade-frontend-wrapper
......
#!/bin/sh
while ! sudo -n -u debian-tor /usr/local/sbin/tor-has-bootstrapped ; do
sleep 10
done
exec /usr/local/bin/tails-security-check
......@@ -60,10 +60,6 @@ See https://tails.boum.org/doc/first_steps/upgrade#manual\"`"
### Main
while ! sudo -n -u debian-tor /usr/local/sbin/tor-has-bootstrapped ; do
sleep 10
done
sleep 30
check_free_memory "$MIN_MEMFREE" "$MIN_TOTAL_MEMFREE"
......
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