summaryrefslogtreecommitdiffstats
path: root/debian/patches/progress-linux/0001-agetty-nohostname.patch
blob: f25886b06a438a0cb4a9c8da7e116ef9da5c7c52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
Description: Starting agetty with --nohostname option.

diff -Naurp systemd.orig/units/console-getty.service.m4 systemd/units/console-getty.service.m4
--- systemd.orig/units/console-getty.service.m4
+++ systemd/units/console-getty.service.m4
@@ -23,7 +23,7 @@ ConditionPathExists=/dev/console
 # 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
+ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --nohostname --keep-baud console 115200,38400,9600 $TERM
 Type=idle
 Restart=always
 UtmpIdentifier=cons
diff -Naurp systemd.orig/units/container-getty@.service.m4 systemd/units/container-getty@.service.m4
--- systemd.orig/units/container-getty@.service.m4
+++ systemd/units/container-getty@.service.m4
@@ -28,7 +28,7 @@ Before=rescue.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
+ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --nohostname --keep-baud pts/%I 115200,38400,9600 $TERM
 Type=idle
 Restart=always
 RestartSec=0
diff -Naurp systemd.orig/units/getty@.service.m4 systemd/units/getty@.service.m4
--- systemd.orig/units/getty@.service.m4
+++ systemd/units/getty@.service.m4
@@ -38,7 +38,7 @@ ConditionPathExists=/dev/tty0
 # 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
+ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --nohostname %I $TERM
 Type=idle
 Restart=always
 RestartSec=0
diff -Naurp systemd.orig/units/serial-getty@.service.m4 systemd/units/serial-getty@.service.m4
--- systemd.orig/units/serial-getty@.service.m4
+++ systemd/units/serial-getty@.service.m4
@@ -33,7 +33,7 @@ Before=rescue.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,57600,38400,9600 %I $TERM
+ExecStart=-/sbin/agetty -o '-p -- \\u' --nohostname --keep-baud 115200,57600,38400,9600 %I $TERM
 Type=idle
 Restart=always
 UtmpIdentifier=%I