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
nixos-rebuild switch --upgrade goes to tty1 #39791
Comments
Is there any reason that you have both those session variable settings, but I don't think the main issue is related to the locale though. Is there anything in the journal that might explain why X (I'm assuming you're using it?) stops? |
@lheckemann Yes, I'm using X.
|
I have the same issue, with a similar locale issue in my log:
Most of the time it reboots directly, but sometimes I land to a broken tty. This is highly similar to bug #18158 no? (Edit: more details. I'm not using |
Also getting this, nothing fancy with locales in my configuration. Here's some journal dumps:
At some point I ctrl-alt-del to reboot and that's not visible from those messages, probably because it says "journal stopped" at the end, but it's a bit confusing. |
Might be related to #38991 somehow after all? |
Ok, I've managed to find the reason for this. Due to an upstream change that removed the [...]
if (-e $prevUnitFile && ($state->{state} eq "active" || $state->{state} eq "activating")) {
if (! -e $newUnitFile || abs_path($newUnitFile) eq "/dev/null") {
my $unitInfo = parseUnit($prevUnitFile);
$unitsToStop{$unit} = 1 if boolIsTrue($unitInfo->{'X-StopOnRemoval'} // "yes");
}
[...] This is unfortunate but at least it means that this won't happen again. |
Great, thanks @primeos! |
Problem: Restarting (stopping) system.slice would not only stop X11 but also most system units/services. We obviously don't want this happening to users when they switch from 18.03 to 18.09 or nixos-unstable. Reason: The following change in systemd: systemd/systemd@d8e5a93 The commit adds system.slice to the perpetual units, which means removing the unit file and adding it to the source code. This is done so that system.slice can't be stopped anymore but in our case it ironically would cause this script to stop system.slice because the unit file was removed (and an older systemd version is still running). Related issue: #39791
Problem: Restarting (stopping) system.slice would not only stop X11 but also most system units/services. We obviously don't want this happening to users when they switch from 18.03 to 18.09 or nixos-unstable. Reason: The following change in systemd: systemd/systemd@d8e5a93 The commit adds system.slice to the perpetual units, which means removing the unit file and adding it to the source code. This is done so that system.slice can't be stopped anymore but in our case it ironically would cause this script to stop system.slice because the unit file was removed (and an older systemd version is still running). Related issue: #39791 (cherry picked from commit 7098b0f) Reason: Make sure that this problem wouldn't occur if we would update the systemd version.
@magnetophon Sorry, I've completely forgotten to answer... :o There was no need to test it (but ofc it never hurts) but thanks for your offer :) I initially thought that this wouldn't matter anymore but it turned out that 18.03 still has a unit file for |
Issue description
When I run
nixos-rebuild switch --upgrade
, NixOS goes to tty1, and I can't login there: nothing I type shows up in the screen.I get the following output:
It might be related to these lines in my config.
Technical details
"x86_64-linux"
Linux 4.16.5, NixOS, 18.09pre138687.1b1be29bf82 (Jellyfish)
no
yes
nix-env (Nix) 2.0.1
""
"nixos"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
The text was updated successfully, but these errors were encountered: