Skip to content

Commit

Permalink
kmscon: reset ExecStart to allow override
Browse files Browse the repository at this point in the history
The getty@.service unit already has an ExecStart so we cannot simply set a new
one in order to override it or we will get this error:

systemd[1]: getty@tty1.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.

Instead "reset" ExecStart by setting it to empty which is the systemd way of
doing it.

(cherry picked from commit 6558f81)
  • Loading branch information
peterhoeg committed Sep 21, 2017
1 parent 5f5eb7f commit 34efc5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/ttys/kmscon.nix
Expand Up @@ -60,6 +60,7 @@ in {
ConditionPathExists=/dev/tty0
[Service]
ExecStart=
ExecStart=${pkgs.kmscon}/bin/kmscon "--vt=%I" ${cfg.extraOptions} --seats=seat0 --no-switchvt --configdir ${configDir} --login -- ${pkgs.shadow}/bin/login -p
UtmpIdentifier=%I
TTYPath=/dev/%I
Expand Down

0 comments on commit 34efc5b

Please sign in to comment.