Machine.pm: tweak to look for graphical target in waitForX

Current message may not be printed
(nothing in systemd contains that string,
 it comes from elsewhere)
This commit is contained in:
Will Dietz 2018-03-29 09:27:38 -05:00
parent 8422a14493
commit 0086036141

View File

@ -612,7 +612,7 @@ sub waitForX {
my ($self, $regexp) = @_;
$self->nest("waiting for the X11 server", sub {
retry sub {
my ($status, $out) = $self->execute("journalctl -b SYSLOG_IDENTIFIER=systemd | grep 'session opened'");
my ($status, $out) = $self->execute("journalctl -b SYSLOG_IDENTIFIER=systemd | grep 'Reached target Current graphical'");
return 0 if $status != 0;
($status, $out) = $self->execute("[ -e /tmp/.X11-unix/X0 ]");
return 1 if $status == 0;