From 54345bffeb41864d8b37394b05a77e8ba21d485d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 6 May 2024 04:39:47 +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 (limited to 'debian/patches') 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..8bce76c --- /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.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,38400,9600 %I $TERM ++ExecStart=-/sbin/agetty -o '-p -- \\u' --nohostname --keep-baud 115200,38400,9600 %I $TERM + Type=idle + Restart=always + UtmpIdentifier=%I diff --git a/debian/patches/series b/debian/patches/series index 3952047..375a772 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -77,3 +77,4 @@ debian/Revert-core-enable-TasksMax-for-all-services-by-default-a.patch debian/Let-graphical-session-pre.target-be-manually-started.patch debian/Add-env-variable-for-machine-ID-path.patch debian/Drop-seccomp-system-call-filter-for-udev.patch +progress-linux/0001-agetty-nohostname.patch -- cgit v1.2.3