From d319701c5ae47318be072541d331caa2dcf97cb9 Mon Sep 17 00:00:00 2001 From: Vasilito Date: Sun, 3 May 2026 11:33:56 +0100 Subject: [PATCH] fix: add serial getty and console activation services to init.d MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Boot process now includes: - 25_serial_getty.service: getty on serial console (visible in QEMU -nographic) - 29_activate_console.service: inputd -A 2 (activate VT2) - 30_console.service: getty on VT2 (framebuffer console) Fixed hunk counts (7→8, 8→9) for correct patch application. Services use 'oneshot_async' type for fire-and-forget startup. ZSH is the default shell for all user accounts (base.toml, mini, full, greeter). --- .../base/P4-initfs-getty-services.patch | 33 +++++++++++++++++++ .../core/base/P4-initfs-getty-services.patch | 1 + recipes/core/base/recipe.toml | 1 + 3 files changed, 35 insertions(+) create mode 100644 local/patches/base/P4-initfs-getty-services.patch create mode 120000 recipes/core/base/P4-initfs-getty-services.patch 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]