Skip to content

Commit

Permalink
units: when spawning a getty configure TERM explicitly
Browse files Browse the repository at this point in the history
This way we can make use of our logic to automatically determine an
appropriate TERM for a specific tty.
  • Loading branch information
poettering committed Dec 18, 2013
1 parent 7cae38c commit ccf22d4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion units/console-getty.service.m4.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ After=rc-local.service
Before=getty.target

[Service]
ExecStart=-/sbin/agetty --noclear --keep-baud console 115200,38400,9600
ExecStart=-/sbin/agetty --noclear --keep-baud console 115200,38400,9600 $TERM
Type=idle
Restart=always
RestartSec=0
Expand Down
2 changes: 1 addition & 1 deletion units/container-getty@.service.m4.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Before=getty.target
IgnoreOnIsolate=yes

[Service]
ExecStart=-/sbin/agetty --noclear --keep-baud pts/%I 115200,38400,9600
ExecStart=-/sbin/agetty --noclear --keep-baud pts/%I 115200,38400,9600 $TERM
Type=idle
Restart=always
RestartSec=0
Expand Down
2 changes: 1 addition & 1 deletion units/getty@.service.m4
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ConditionPathExists=/dev/tty0

[Service]
# the VT is cleared by TTYVTDisallocate
ExecStart=-/sbin/agetty --noclear %I
ExecStart=-/sbin/agetty --noclear %I $TERM
Type=idle
Restart=always
RestartSec=0
Expand Down
2 changes: 1 addition & 1 deletion units/serial-getty@.service.m4
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Before=getty.target
IgnoreOnIsolate=yes

[Service]
ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600
ExecStart=-/sbin/agetty --keep-baud %I 115200,38400,9600 $TERM
Type=idle
Restart=always
RestartSec=0
Expand Down

0 comments on commit ccf22d4

Please sign in to comment.