New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gdm: remove "getty@tty1.service" conflict definition #30893
Conversation
- fix restart of display-manager due to a conflict with getty@tty1 - fixes NixOS#21439
This seems to solve the problem for me! |
@@ -125,7 +125,6 @@ in | |||
"getty@tty1.service" | |||
]; | |||
|
|||
systemd.services.display-manager.conflicts = [ "getty@tty1.service" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lheckemann @teh what was the motivation for this in the first place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@teh answered that here: #21439 (comment) (it comes from upstream service file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But what if @GDM_INITIAL_VT@ is != 1. Would that fix it too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After re-reading the systemd behaviour of Conflicts
IMO what should happen is that tty1 is started, and then replaced by GDM, and if GDM dies (the systemd unit fails) then tty1 should restart. I have a feeling that we're seeing some other interactions here but if removing that line works for people then I'm all for it! (better than a completely broken system, even if we don't necessarily understand why)
also backported to 17.09 in a47a5a7 |
Doh, didn't see your message. Thanks! |
This breaks booting into GDM again. |
@Mic92 Negative. You cannot mask "generator" service like that. I think I have finally found nice solution.
So making the tty number configurable or maybe the whole line optional will solve this. I have set it to tty6 and removed everything about getty@tty1.service in configuration (so no conflicts) and it works for me (both boot and switch/test).
Correction: |
Motivation for this change
Whenever I did a
nixos-rebuild (switch/test)
mydisplay-manager
service restarted. After some changes togdm.nix
I found that this was due to a conflict withgetty@tty1.service
.See #21439 for reference.
I just started to use NixOS, so I am not sure if it is a good idea to simply remove such a conflict definition.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)