Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Commit

Permalink
Revert "Get rid of ExecStart=agetty lines"
Browse files Browse the repository at this point in the history
This reverts commit 62bc981.

Reason:
- it is possible to override ExecStart for quite some time in systemd.
- upstream added some useful reasoning how ExecStart arguments were chosen.
  • Loading branch information
Mic92 authored and fpletz committed Feb 11, 2018
1 parent d90fc4d commit 74e8210
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions units/console-getty.service.m4.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ Before=getty.target
ConditionPathExists=/dev/console

[Service]
# The '-o' option value tells agetty to replace 'login' arguments with an
# option to preserve environment (-p), followed by '--' for safety, and then
# the entered username.
ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud console 115200,38400,9600 $TERM
Type=idle
Restart=always
UtmpIdentifier=cons
Expand Down
4 changes: 4 additions & 0 deletions units/container-getty@.service.m4.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ Conflicts=rescue.service
Before=rescue.service

[Service]
# The '-o' option value tells agetty to replace 'login' arguments with an
# option to preserve environment (-p), followed by '--' for safety, and then
# the entered username.
ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud pts/%I 115200,38400,9600 $TERM
Type=idle
Restart=always
RestartSec=0
Expand Down
4 changes: 4 additions & 0 deletions units/getty@.service.m4
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ ConditionVirtualization=|lxc-libvirt

[Service]
# the VT is cleared by TTYVTDisallocate
# The '-o' option value tells agetty to replace 'login' arguments with an
# option to preserve environment (-p), followed by '--' for safety, and then
# the entered username.
ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear %I $TERM
Type=idle
Restart=always
RestartSec=0
Expand Down
4 changes: 4 additions & 0 deletions units/serial-getty@.service.m4
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Conflicts=rescue.service
Before=rescue.service

[Service]
# The '-o' option value tells agetty to replace 'login' arguments with an
# option to preserve environment (-p), followed by '--' for safety, and then
# the entered username.
ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,38400,9600 %I $TERM
Type=idle
Restart=always
UtmpIdentifier=%I
Expand Down

0 comments on commit 74e8210

Please sign in to comment.