Make the activation check for systemd user daemon more robust

This commit is contained in:
Sander van der Burg 2022-03-04 20:36:48 +01:00 committed by Sander van der Burg
parent 6f264ccb43
commit b476741b92
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ in
'' + pkgs.lib.optionalString profileSettings.params.forceDisableUserChange ''
machine.wait_for_unit("display-manager.service")
machine.wait_until_succeeds("pgrep -f 'systemd --user'")
machine.wait_for_file("/run/user/1000/systemd")
'';
deploySystem = ''

View File

@ -100,6 +100,7 @@ makeTest {
start_all()
machine.wait_for_unit("display-manager.service")
machine.wait_until_succeeds("pgrep -f 'systemd --user'")
machine.wait_for_file("/run/user/1000/systemd")
# Do an undeploy to force the state to get initialized
machine.succeed(