Rename scenarios to make room for the corresponding anti-tests.
First try at an anti-test for memory erasure.
Allow pidof to detect scripts too.
Add a pidof utility function.
Always use the pidof instead of pgrep.

As previously noted, pgrep sometimes detects itself, which breaks the detection
that all fillram instances have vanished.
Use spawn instead of execute to trigger a reboot over sysrq.

This command won't ever return anything to us, so it's useless (and broken) to
wait for the remote shell to reply anything to us.
Don't pretend we have filled all RAM.

We display something more precise (and generally < 100%) soon after, so it makes
no sense displaying "Memory fill progress: 100%".
Add a VM.reset utility method.

... using virsh as ruby-libvirt 0.4 does not support the reset method :(
Force reboot the VM with libvirt instead of using sysrq.

This should be more robust.
Wait for a dedicated boot splash screenshot at post-VM-reset time.

At this time, the display resolution is different from the one on startup,
so Sikuli can't find TailsBootSplash.png.
Add memory erasure anti-test for non-PAE too.
Optimization: don't dump guest memory twice in the anti-test.

We already grep for the pattern after rebooting, no need to do it
before.
Drop the Tails Upgrader launcher, to limit users' confusion (Closes: #6513).
Create /var/run/tails-upgrader at boot time.

Tails Upgrader is run as a non-privileged user, so it cannot create its run
directory itself.
Allow tails-upgrade-frontend to run tor-has-bootstrapped as the debian-tor user.
Wait for Tor to have fully bootstrapped before checking for upgrades (partly closes: #6728).
Wait 30 more seconds after Tor has bootstrapped, before checking for upgrades (Closes: #6728).

We run many things in parallel at session startup, and in some cases we are not
able to check for upgrades due to memory exhaustion. Waiting a bit might help.
Do not parse the Tor log file entirely every second until it has bootstrapped.

This is especially important as we are adding consumers of the
tor-has-bootstrapped script, and we don't want to add three of them hammering
the system at the same time.
Wait for Tor to have fully bootstrapped before checking for unfixed known security issues.
Make indentation consistent.