From 3654ba5955c009709b00e7410d9301a15b04e25b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 25 Jun 2025 18:10:44 +0200 Subject: [PATCH] Starting agetty with --nohostname option. Signed-off-by: Daniel Baumann --- .../0001-agetty-nohostname.patch | 51 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 52 insertions(+) create mode 100644 debian/patches/progress-linux/0001-agetty-nohostname.patch create mode 100644 debian/patches/series diff --git a/debian/patches/progress-linux/0001-agetty-nohostname.patch b/debian/patches/progress-linux/0001-agetty-nohostname.patch new file mode 100644 index 0000000..fccbb13 --- /dev/null +++ b/debian/patches/progress-linux/0001-agetty-nohostname.patch @@ -0,0 +1,51 @@ +Author: Daniel Baumann +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 diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..67a36a3 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +progress-linux/0001-agetty-nohostname.patch