Merge pull request #38174 from dtzWill/fix/nixos-machine-pm-tweak-waitForX

Machine.pm: tweak to look for graphical target in waitForX
This commit is contained in:
Will Dietz
2018-04-03 21:08:19 -05:00
committed by GitHub

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;