From 7bffa044716001612495d9c044722d176fbb3d7c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 17:36:55 +0200 Subject: Starting agetty with --nohostname option. Signed-off-by: Daniel Baumann --- .../progress-linux/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 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..05af733 --- /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 an option to preserve environment (-p), + # followed by '--' for safety, and then the entered username. +-ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --keep-baud - 115200,38400,9600 $TERM ++ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear --nohostname --keep-baud - 115200,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 an option to preserve environment (-p), + # followed by '--' for safety, and then the entered username. +-ExecStart=-/sbin/agetty -o '-p -- \\u' --noclear - $TERM ++ExecStart=-/sbin/agetty -o '-p -- \\u' --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 +@@ -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 - $TERM ++ExecStart=-/sbin/agetty -o '-p -- \\u' --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 +@@ -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 - $TERM ++ExecStart=-/sbin/agetty -o '-p -- \\u' --nohostname --keep-baud 115200,57600,38400,9600 - $TERM + Type=idle + Restart=always + UtmpIdentifier=%I diff --git a/debian/patches/series b/debian/patches/series index 661f0c4..438f54d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -18,3 +18,4 @@ debian/Move-sysusers.d-sysctl.d-binfmt.d-modules-load.d-back-to-.patch debian/systemctl-do-not-shutdown-immediately-on-scheduled-shutdo.patch debian/Downgrade-a-couple-of-warnings-to-debug.patch debian/Skip-flaky-test_resolved_domain_restricted_dns-in-network.patch +progress-linux/0001-agetty-nohostname.patch -- cgit v1.2.3