nixos/agetty: override upstream default

Also see c2cf696430.
This commit is contained in:
Franz Pletz 2017-08-13 19:07:38 +02:00
parent 05212cd4d6
commit 2d5a04e5bd
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -85,12 +85,18 @@ in
};
systemd.services."container-getty@" =
{ serviceConfig.ExecStart = gettyCmd "--noclear --keep-baud pts/%I 115200,38400,9600 $TERM";
{ serviceConfig.ExecStart = [
"" # override upstream default with an empty ExecStart
(gettyCmd "--noclear --keep-baud pts/%I 115200,38400,9600 $TERM")
];
restartIfChanged = false;
};
systemd.services."console-getty" =
{ serviceConfig.ExecStart = gettyCmd "--noclear --keep-baud console 115200,38400,9600 $TERM";
{ serviceConfig.ExecStart = [
"" # override upstream default with an empty ExecStart
(gettyCmd "--noclear --keep-baud console 115200,38400,9600 $TERM")
];
serviceConfig.Restart = "always";
restartIfChanged = false;
enable = mkDefault config.boot.isContainer;