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:
commit
374d7cfb8e
1 changed files with 1 additions and 1 deletions
|
@ -612,7 +612,7 @@ sub waitForX {
|
||||||
my ($self, $regexp) = @_;
|
my ($self, $regexp) = @_;
|
||||||
$self->nest("waiting for the X11 server", sub {
|
$self->nest("waiting for the X11 server", sub {
|
||||||
retry 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;
|
return 0 if $status != 0;
|
||||||
($status, $out) = $self->execute("[ -e /tmp/.X11-unix/X0 ]");
|
($status, $out) = $self->execute("[ -e /tmp/.X11-unix/X0 ]");
|
||||||
return 1 if $status == 0;
|
return 1 if $status == 0;
|
||||||
|
|
Loading…
Reference in a new issue