1
0
Fork 0

Starting agetty with --nohostname option.

Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
This commit is contained in:
Daniel Baumann 2025-06-25 18:10:44 +02:00
parent b1862b3cd0
commit 3654ba5955
Signed by: daniel.baumann
GPG key ID: BCC918A2ABD66424
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,51 @@
Author: Daniel Baumann <daniel.baumann@progress-linux.org>
Description: Starting agetty with --nohostname option.
diff -Naurp systemd.orig/units/console-getty.service.in systemd/units/console-getty.service.in
--- systemd.orig/units/console-getty.service.in
+++ systemd/units/console-getty.service.in
@@ -22,7 +22,7 @@ ConditionPathExists=/dev/console
[Service]
# The '-o' option value tells agetty to replace 'login' arguments with '--' for
# safety, and then the entered username.
-ExecStart=-/sbin/agetty -o '-- \\u' --noreset --noclear --keep-baud 115200,57600,38400,9600 - ${TERM}
+ExecStart=-/sbin/agetty -o '-- \\u' --noreset --noclear --nohostname --keep-baud 115200,57600,38400,9600 - ${TERM}
Type=idle
Restart=always
UtmpIdentifier=cons
diff -Naurp systemd.orig/units/container-getty@.service.in systemd/units/container-getty@.service.in
--- systemd.orig/units/container-getty@.service.in
+++ systemd/units/container-getty@.service.in
@@ -27,7 +27,7 @@ Before=rescue.service
[Service]
# The '-o' option value tells agetty to replace 'login' arguments with '--' for
# safety, and then the entered username.
-ExecStart=-/sbin/agetty -o '-- \\u' --noreset --noclear - ${TERM}
+ExecStart=-/sbin/agetty -o '-- \\u' --noreset --noclear --nohostname - ${TERM}
Type=idle
Restart=always
RestartSec=0
diff -Naurp systemd.orig/units/getty@.service.in systemd/units/getty@.service.in
--- systemd.orig/units/getty@.service.in
+++ systemd/units/getty@.service.in
@@ -36,7 +36,7 @@ ConditionPathExists=/dev/tty0
[Service]
# The '-o' option value tells agetty to replace 'login' arguments with '--' for
# safety, and then the entered username.
-ExecStart=-/sbin/agetty -o '-- \\u' --noreset --noclear - ${TERM}
+ExecStart=-/sbin/agetty -o '-- \\u' --noreset --noclear --nohostname - ${TERM}
Type=idle
Restart=always
RestartSec=0
diff -Naurp systemd.orig/units/serial-getty@.service.in systemd/units/serial-getty@.service.in
--- systemd.orig/units/serial-getty@.service.in
+++ systemd/units/serial-getty@.service.in
@@ -32,7 +32,7 @@ Before=rescue.service
[Service]
# The '-o' option value tells agetty to replace 'login' arguments with '--' for
# safety, and then the entered username.
-ExecStart=-/sbin/agetty -o '-- \\u' --noreset --noclear --keep-baud 115200,57600,38400,9600 - ${TERM}
+ExecStart=-/sbin/agetty -o '-- \\u' --noreset --noclear --nohostname --keep-baud 115200,57600,38400,9600 - ${TERM}
Type=idle
Restart=always
UtmpIdentifier=%I

1
debian/patches/series vendored Normal file
View file

@ -0,0 +1 @@
progress-linux/0001-agetty-nohostname.patch