diff --git a/local/patches/base/P4-initfs-getty-services.patch b/local/patches/base/P4-initfs-getty-services.patch new file mode 100644 index 00000000..f81f751f --- /dev/null +++ b/local/patches/base/P4-initfs-getty-services.patch @@ -0,0 +1,33 @@ +--- a/init.d/25_serial_getty.service 1970-01-01 00:00:00.000000000 +0000 ++++ b/init.d/25_serial_getty.service 2026-05-03 11:30:02.804864646 +0100 +@@ -0,0 +1,8 @@ ++[unit] ++description = "Serial console getty" ++requires_weak = ["00_base.target"] ++ ++[service] ++cmd = "getty" ++args = ["ttyS0"] ++type = "oneshot_async" +--- a/init.d/29_activate_console.service 1970-01-01 00:00:00.000000000 +0000 ++++ b/init.d/29_activate_console.service 2026-05-03 11:30:02.805544603 +0100 +@@ -0,0 +1,8 @@ ++[unit] ++description = "Activate console VT" ++requires_weak = ["00_base.target"] ++ ++[service] ++cmd = "inputd" ++args = ["-A", "2"] ++type = "oneshot_async" +--- a/init.d/30_console.service 1970-01-01 00:00:00.000000000 +0000 ++++ b/init.d/30_console.service 2026-05-03 11:30:02.806099127 +0100 +@@ -0,0 +1,8 @@ ++[unit] ++description = "Console getty on VT2" ++requires_weak = ["29_activate_console.service"] ++ ++[service] ++cmd = "getty" ++args = ["2"] ++type = "oneshot_async" diff --git a/recipes/core/base/P4-initfs-getty-services.patch b/recipes/core/base/P4-initfs-getty-services.patch new file mode 120000 index 00000000..1a09b3bf --- /dev/null +++ b/recipes/core/base/P4-initfs-getty-services.patch @@ -0,0 +1 @@ +../../../local/patches/base/P4-initfs-getty-services.patch \ No newline at end of file diff --git a/recipes/core/base/recipe.toml b/recipes/core/base/recipe.toml index 2fd2b569..57a1bc11 100644 --- a/recipes/core/base/recipe.toml +++ b/recipes/core/base/recipe.toml @@ -15,6 +15,7 @@ patches = [ "P4-acpi-shutdown-hardening.patch", "P4-initfs-usb-drm-services.patch", "P4-initfs-network-services.patch", + "P4-initfs-getty-services.patch", ] [build]