Don't restart container shells in switch-to-configuration
This commit is contained in:
parent
abdd87da3c
commit
596bd37163
@ -28,6 +28,7 @@ with lib;
|
|||||||
ExecStart = "${pkgs.socat}/bin/socat -t0 - exec:${pkgs.shadow}/bin/login,pty,setsid,setpgid,stderr,ctty";
|
ExecStart = "${pkgs.socat}/bin/socat -t0 - exec:${pkgs.shadow}/bin/login,pty,setsid,setpgid,stderr,ctty";
|
||||||
TimeoutStopSec = 1; # FIXME
|
TimeoutStopSec = 1; # FIXME
|
||||||
};
|
};
|
||||||
|
restartIfChanged = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Also provide a root login prompt on /var/lib/root-login.socket
|
# Also provide a root login prompt on /var/lib/root-login.socket
|
||||||
@ -52,6 +53,7 @@ with lib;
|
|||||||
ExecStart = "${pkgs.socat}/bin/socat -t0 - \"exec:${pkgs.shadow}/bin/login -f root,pty,setsid,setpgid,stderr,ctty\"";
|
ExecStart = "${pkgs.socat}/bin/socat -t0 - \"exec:${pkgs.shadow}/bin/login -f root,pty,setsid,setpgid,stderr,ctty\"";
|
||||||
TimeoutStopSec = 1; # FIXME
|
TimeoutStopSec = 1; # FIXME
|
||||||
};
|
};
|
||||||
|
restartIfChanged = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Provide a daemon on /var/lib/run-command.socket that reads a
|
# Provide a daemon on /var/lib/run-command.socket that reads a
|
||||||
@ -82,6 +84,7 @@ with lib;
|
|||||||
eval "command=($c)"
|
eval "command=($c)"
|
||||||
exec "''${command[@]}"
|
exec "''${command[@]}"
|
||||||
'';
|
'';
|
||||||
|
restartIfChanged = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.container-startup-done =
|
systemd.services.container-startup-done =
|
||||||
|
Loading…
Reference in New Issue
Block a user