This got broken by RHBZ #1222413. Fix that, and while we're at
it, make a method for getting a console in anaconda and re-use
it in a couple of other places.
I first tried to make a sort of all-singing, all-dancing tower
of methods for switching to a console and logging in that took
parameters for tty and user and password and handled both
anaconda and installed system cases, but it rapidly got messy
and unwieldy, so let's keep it simple.
This fiddles with the various needles for 'are we at a root
console?' just enough to make the tests work again, I'm planning
a follow-up commit to remove the duplication (I think just one
sufficiently careful needle should cover all cases).
I have made similar (but not the same) functionality for installed system here https://bitbucket.org/rajcze/openqa_fedora/src/2e4c1c2325357068e8f2cb79bd545fa969727599/lib/fedoralog.pm?at=develop#fedoralog.pm-6. I wonder if we could (and should) merge all this functionality into one big parent class someday.